{
  "components": {
    "schemas": {
      "__schema0": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          },
          {
            "items": {
              "$ref": "#/components/schemas/__schema0"
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/__schema0"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          }
        ]
      }
    },
    "securitySchemes": {
      "apiKey": {
        "bearerFormat": "TatTool API key",
        "description": "Authorization: Bearer <user-owned-api-key>. Cookies do not authorize this surface. TatTool permissions are descriptive metadata, not OAuth scopes.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "User-owned API keys act as the current user in one selected studio. Permissions narrow live TatTool authority. Only implemented REST routes are documented.",
    "title": "TatTool external API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/bookings": {
      "post": {
        "description": "Reuses the existing appointment command, version check and durable receipt; scheduling changes recheck current occupancy.",
        "operationId": "create_booking",
        "parameters": [
          {
            "description": "UUID retry key; reuse the same key and body for retries.",
            "in": "header",
            "name": "idempotency-key",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "artistId": {
                    "description": "Current studio participant user ID.",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "clientId": {
                    "description": "Existing client ID; contact information is edited separately.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "description": {
                    "description": "Appointment description.",
                    "maxLength": 5000,
                    "type": "string"
                  },
                  "end": {
                    "description": "End instant, exclusive, with an explicit UTC offset.",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "flowIds": {
                    "description": "Existing Flow IDs, validated by the domain command.",
                    "items": {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  "locationId": {
                    "description": "Studio location ID.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "price": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "amount": {
                            "description": "Integer amount in currency minor units, including zero.",
                            "maximum": 2147483647,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "currency": {
                            "description": "Uppercase three-letter currency code.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "amount",
                          "currency"
                        ],
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Booking price in minor units; null means unset and clears a price on update."
                  },
                  "start": {
                    "description": "Start instant, inclusive, with an explicit UTC offset.",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  "tagIds": {
                    "description": "Existing studio tag IDs.",
                    "items": {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  "timeZone": {
                    "description": "IANA time zone.",
                    "maxLength": 50,
                    "type": "string"
                  },
                  "title": {
                    "description": "Appointment title.",
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "required": [
                  "timeZone",
                  "locationId",
                  "start",
                  "end",
                  "clientId",
                  "artistId"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Mutation receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Created record receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Unresolved operation; retain the same retry key.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "create booking",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "write",
            "request": {
              "body": {
                "artistId": "artist-example",
                "clientId": "00000000-0000-4000-8000-000000000225",
                "end": "2026-10-05T11:00:00Z",
                "locationId": "00000000-0000-4000-8000-000000000225",
                "price": null,
                "start": "2026-10-05T09:00:00Z",
                "timeZone": "Europe/Copenhagen"
              },
              "headers": {
                "idempotency-key": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:write"
        ]
      }
    },
    "/api/v1/bookings/{bookingId}": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "get_booking",
        "parameters": [
          {
            "description": "Booking ID.",
            "in": "path",
            "name": "bookingId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "artistId": "artist-example",
                    "clientId": "00000000-0000-4000-8000-000000000225",
                    "description": null,
                    "end": "2026-10-05T11:00:00Z",
                    "id": "00000000-0000-4000-8000-000000000225",
                    "locationIds": [
                      "00000000-0000-4000-8000-000000000225"
                    ],
                    "organizationId": "studio-example",
                    "price": null,
                    "start": "2026-10-05T09:00:00Z",
                    "status": "SCHEDULED",
                    "timeZone": "Europe/Copenhagen",
                    "title": "Booking",
                    "type": "BOOKING",
                    "url": null,
                    "version": "opaque-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "oneOf": [
                        {
                          "properties": {
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "clientId": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Existing client ID; contact information is edited separately."
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "price": {
                              "anyOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "amount": {
                                      "description": "Integer amount in currency minor units, including zero.",
                                      "maximum": 2147483647,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "currency": {
                                      "description": "Uppercase three-letter currency code.",
                                      "pattern": "^[A-Z]{3}$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "currency"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Booking price in minor units; null means unset and clears a price on update."
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "tags": {
                              "default": [],
                              "description": "tags",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "color": {
                                    "description": "Tag display color, or null.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "description": "Studio tag ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Tag display name.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "title": {
                              "description": "Appointment title.",
                              "type": "string"
                            },
                            "type": {
                              "const": "BOOKING",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "clientId",
                            "title",
                            "description",
                            "price"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "clientId": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Existing client ID; contact information is edited separately."
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "tags": {
                              "default": [],
                              "description": "tags",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "color": {
                                    "description": "Tag display color, or null.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "description": "Studio tag ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Tag display name.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "title": {
                              "description": "Appointment title.",
                              "type": "string"
                            },
                            "type": {
                              "const": "CONSULTATION",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "clientId",
                            "title",
                            "description"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "allDay": {
                              "description": "Whether time off covers local calendar days.",
                              "type": "boolean"
                            },
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "type": {
                              "const": "TIME_OFF",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "description",
                            "allDay"
                          ],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get booking",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "bookingId": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:read"
        ]
      },
      "patch": {
        "description": "Reuses the existing appointment command, version check and durable receipt; scheduling changes recheck current occupancy.",
        "operationId": "update_booking",
        "parameters": [
          {
            "description": "Booking ID.",
            "in": "path",
            "name": "bookingId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "UUID retry key; reuse the same key and body for retries.",
            "in": "header",
            "name": "idempotency-key",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expectedVersion": {
                    "description": "Latest opaque version returned by an authorized read.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "patch": {
                    "additionalProperties": false,
                    "description": "Explicit supported changes; send start and end together.",
                    "properties": {
                      "artistId": {
                        "description": "Current studio participant user ID.",
                        "maxLength": 128,
                        "minLength": 1,
                        "type": "string"
                      },
                      "clientId": {
                        "description": "Existing client ID; contact information is edited separately.",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "type": "string"
                      },
                      "description": {
                        "description": "Appointment description.",
                        "maxLength": 5000,
                        "type": "string"
                      },
                      "end": {
                        "description": "End instant, exclusive, with an explicit UTC offset.",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "flowIds": {
                        "description": "Existing Flow IDs, validated by the domain command.",
                        "items": {
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "maxItems": 100,
                        "type": "array"
                      },
                      "locationId": {
                        "description": "Studio location ID.",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "type": "string"
                      },
                      "price": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "amount": {
                                "description": "Integer amount in currency minor units, including zero.",
                                "maximum": 2147483647,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "currency": {
                                "description": "Uppercase three-letter currency code.",
                                "pattern": "^[A-Z]{3}$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "amount",
                              "currency"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Booking price in minor units; null means unset and clears a price on update."
                      },
                      "start": {
                        "description": "Start instant, inclusive, with an explicit UTC offset.",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "type": "string"
                      },
                      "timeZone": {
                        "description": "IANA time zone.",
                        "maxLength": 50,
                        "type": "string"
                      },
                      "title": {
                        "description": "Appointment title.",
                        "maxLength": 255,
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "expectedVersion",
                  "patch"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Mutation receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Created record receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Unresolved operation; retain the same retry key.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "update booking",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "write",
            "request": {
              "body": {
                "expectedVersion": "opaque-version",
                "patch": {
                  "title": "Updated booking"
                }
              },
              "headers": {
                "idempotency-key": "00000000-0000-4000-8000-000000000225"
              },
              "path": {
                "bookingId": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:write"
        ]
      }
    },
    "/api/v1/bookings/{bookingId}/cancel": {
      "post": {
        "description": "Reuses the existing appointment command, version check and durable receipt; scheduling changes recheck current occupancy.",
        "operationId": "cancel_booking",
        "parameters": [
          {
            "description": "Booking ID.",
            "in": "path",
            "name": "bookingId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "UUID retry key; reuse the same key and body for retries.",
            "in": "header",
            "name": "idempotency-key",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expectedVersion": {
                    "description": "Latest opaque version returned by an authorized read.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "expectedVersion"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Mutation receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Created record receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Unresolved operation; retain the same retry key.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "cancel booking",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "write",
            "request": {
              "body": {
                "expectedVersion": "opaque-version"
              },
              "headers": {
                "idempotency-key": "00000000-0000-4000-8000-000000000225"
              },
              "path": {
                "bookingId": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:write"
        ]
      }
    },
    "/api/v1/bookings/{bookingId}/consent-status": {
      "get": {
        "description": "Read the booking's consent statuses without filled content. If truncated, use list_consents with bookingId and pagination.",
        "operationId": "getEventConsentStatus",
        "parameters": [
          {
            "description": "Consent or message bookingId.",
            "in": "path",
            "name": "bookingId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "truncated": false
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Consent or message data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "bookingId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message bookingId."
                          },
                          "clientId": {
                            "description": "Consent or message clientId.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message completedAt."
                          },
                          "createdAt": {
                            "description": "Consent or message createdAt.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "id": {
                            "description": "Consent or message id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "requestedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message requestedAt."
                          },
                          "status": {
                            "description": "Consent or message status.",
                            "enum": [
                              "pending",
                              "awaiting_approval",
                              "approved",
                              "rejected",
                              "declined"
                            ],
                            "type": "string"
                          },
                          "templateId": {
                            "description": "Consent or message templateId.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "version": {
                            "description": "Consent or message version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "templateId",
                          "bookingId",
                          "clientId",
                          "status",
                          "createdAt",
                          "requestedAt",
                          "completedAt",
                          "version"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "truncated": {
                      "description": "Consent or message truncated.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "truncated"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read the booking's consent statuses without filled content. If truncated, use list_consents with bookingId and pagination.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read the booking's consent statuses without filled content. If truncated, use list_consents with bookingId and pagination.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "bookingId": "00000000-0000-4000-8000-000000000227"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "consents:read"
        ]
      }
    },
    "/api/v1/bookings/{bookingId}/inks": {
      "get": {
        "description": "List booking ink registrations",
        "operationId": "listBookingInks",
        "parameters": [
          {
            "description": "Booking ID from get_booking or list_calendar_events.",
            "in": "path",
            "name": "bookingId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Page size, default 50, maximum 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from the previous page.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Permitted records for this page.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "description": "Database-generated record UUID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "ink": {
                            "additionalProperties": false,
                            "properties": {
                              "batchNumber": {
                                "description": "Manufacturer batch number.",
                                "type": "string"
                              },
                              "brand": {
                                "description": "Recorded manufacturer.",
                                "type": "string"
                              },
                              "color": {
                                "description": "Recorded ink colour.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Database-generated record UUID.",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "identifier": {
                                "description": "Printed numeric bottle identifier.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "name": {
                                "description": "Display name.",
                                "type": "string"
                              },
                              "userId": {
                                "description": "Assigned artist ID or null.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "userName": {
                                "description": "Assigned artist display name.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "identifier",
                              "name",
                              "batchNumber",
                              "brand",
                              "color",
                              "userId",
                              "userName"
                            ],
                            "type": "object"
                          },
                          "inkId": {
                            "description": "Resolved bottle UUID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "version": {
                            "description": "Opaque persisted record version.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "inkId",
                          "version",
                          "ink"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Opaque continuation or null when exhausted.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "List booking ink registrations",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List booking ink registrations",
        "tags": [
          "Inks"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "bookingId": "00000000-0000-4000-8000-000000000233"
              }
            }
          }
        ],
        "x-required-permissions": [
          "inks:read"
        ]
      }
    },
    "/api/v1/bookings/{bookingId}/reactivate": {
      "post": {
        "description": "Reuses the existing appointment command, version check and durable receipt; scheduling changes recheck current occupancy.",
        "operationId": "reactivate_booking",
        "parameters": [
          {
            "description": "Booking ID.",
            "in": "path",
            "name": "bookingId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "UUID retry key; reuse the same key and body for retries.",
            "in": "header",
            "name": "idempotency-key",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expectedVersion": {
                    "description": "Latest opaque version returned by an authorized read.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "expectedVersion"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Mutation receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Created record receipt.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000225",
                    "replayed": false,
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "price": {
                                  "anyOf": [
                                    {
                                      "additionalProperties": false,
                                      "properties": {
                                        "amount": {
                                          "description": "Integer amount in currency minor units, including zero.",
                                          "maximum": 2147483647,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "description": "Uppercase three-letter currency code.",
                                          "pattern": "^[A-Z]{3}$",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Booking price in minor units; null means unset and clears a price on update."
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "BOOKING",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "clientId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Existing client ID; contact information is edited separately."
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "default": [],
                                  "description": "tags",
                                  "items": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "color": {
                                        "description": "Tag display color, or null.",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "id": {
                                        "description": "Studio tag ID.",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "name": {
                                        "description": "Tag display name.",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "name",
                                      "color"
                                    ],
                                    "type": "object"
                                  },
                                  "type": "array"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "title": {
                                  "description": "Appointment title.",
                                  "type": "string"
                                },
                                "type": {
                                  "const": "CONSULTATION",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "clientId",
                                "title",
                                "description"
                              ],
                              "type": "object"
                            },
                            {
                              "properties": {
                                "allDay": {
                                  "description": "Whether time off covers local calendar days.",
                                  "type": "boolean"
                                },
                                "artistId": {
                                  "description": "Current studio participant user ID.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "description": "Appointment description.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "end": {
                                  "description": "End instant, exclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "locationIds": {
                                  "description": "Associated studio location IDs.",
                                  "items": {
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "organizationId": {
                                  "description": "Selected studio ID.",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Start instant, inclusive, with an explicit UTC offset.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "status": {
                                  "description": "Current lifecycle status.",
                                  "enum": [
                                    "SCHEDULED",
                                    "CANCELLED",
                                    "DELETED"
                                  ],
                                  "type": "string"
                                },
                                "timeZone": {
                                  "description": "IANA time zone.",
                                  "maxLength": 50,
                                  "type": "string"
                                },
                                "type": {
                                  "const": "TIME_OFF",
                                  "description": "Event kind.",
                                  "type": "string"
                                },
                                "url": {
                                  "description": "Authenticated application link, or null if unavailable.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Opaque optimistic concurrency version.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "organizationId",
                                "start",
                                "end",
                                "timeZone",
                                "status",
                                "version",
                                "url",
                                "artistId",
                                "locationIds",
                                "type",
                                "description",
                                "allDay"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Unresolved operation; retain the same retry key.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "price": {
                                      "anyOf": [
                                        {
                                          "additionalProperties": false,
                                          "properties": {
                                            "amount": {
                                              "description": "Integer amount in currency minor units, including zero.",
                                              "maximum": 2147483647,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            "currency": {
                                              "description": "Uppercase three-letter currency code.",
                                              "pattern": "^[A-Z]{3}$",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency"
                                          ],
                                          "type": "object"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Booking price in minor units; null means unset and clears a price on update."
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "BOOKING",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description",
                                    "price"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "clientId": {
                                      "anyOf": [
                                        {
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ],
                                      "description": "Existing client ID; contact information is edited separately."
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "tags": {
                                      "default": [],
                                      "description": "tags",
                                      "items": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "color": {
                                            "description": "Tag display color, or null.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Studio tag ID.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Tag display name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "color"
                                        ],
                                        "type": "object"
                                      },
                                      "type": "array"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "title": {
                                      "description": "Appointment title.",
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "CONSULTATION",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "clientId",
                                    "title",
                                    "description"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "allDay": {
                                      "description": "Whether time off covers local calendar days.",
                                      "type": "boolean"
                                    },
                                    "artistId": {
                                      "description": "Current studio participant user ID.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "description": "Appointment description.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "end": {
                                      "description": "End instant, exclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "id": {
                                      "description": "Stable record ID.",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    "locationIds": {
                                      "description": "Associated studio location IDs.",
                                      "items": {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      "type": "array"
                                    },
                                    "organizationId": {
                                      "description": "Selected studio ID.",
                                      "type": "string"
                                    },
                                    "start": {
                                      "description": "Start instant, inclusive, with an explicit UTC offset.",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    "status": {
                                      "description": "Current lifecycle status.",
                                      "enum": [
                                        "SCHEDULED",
                                        "CANCELLED",
                                        "DELETED"
                                      ],
                                      "type": "string"
                                    },
                                    "timeZone": {
                                      "description": "IANA time zone.",
                                      "maxLength": 50,
                                      "type": "string"
                                    },
                                    "type": {
                                      "const": "TIME_OFF",
                                      "description": "Event kind.",
                                      "type": "string"
                                    },
                                    "url": {
                                      "description": "Authenticated application link, or null if unavailable.",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "version": {
                                      "description": "Opaque optimistic concurrency version.",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "organizationId",
                                    "start",
                                    "end",
                                    "timeZone",
                                    "status",
                                    "version",
                                    "url",
                                    "artistId",
                                    "locationIds",
                                    "type",
                                    "description",
                                    "allDay"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "reactivate booking",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "write",
            "request": {
              "body": {
                "expectedVersion": "opaque-version"
              },
              "headers": {
                "idempotency-key": "00000000-0000-4000-8000-000000000225"
              },
              "path": {
                "bookingId": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:write"
        ]
      }
    },
    "/api/v1/bookings/{id}/payment-state": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "get_event_payment_state",
        "parameters": [
          {
            "description": "Finance id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "bookingId": "00000000-0000-4000-8000-000000000226",
                    "totalsByCurrency": []
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Finance data.",
                      "properties": {
                        "bookingId": {
                          "description": "Finance bookingId.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "totalsByCurrency": {
                          "description": "Finance totalsByCurrency.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "currency": {
                                "description": "Uppercase currency code; currencies are never combined.",
                                "pattern": "^[A-Z]{3}$",
                                "type": "string"
                              },
                              "outstandingAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "paidAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "receivedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "refundedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "requestedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "currency",
                              "paidAmountMinor",
                              "receivedAmountMinor",
                              "refundedAmountMinor",
                              "requestedAmountMinor",
                              "outstandingAmountMinor"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "bookingId",
                        "totalsByCurrency"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get event payment state",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "id": "00000000-0000-4000-8000-000000000226"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/bookings/missing-ink": {
      "get": {
        "description": "List past bookings without ink registrations",
        "operationId": "listBookingsMissingInk",
        "parameters": [
          {
            "description": "Page size, default 50, maximum 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from the previous page.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Inclusive booking start; convert relative dates using the studio timezone from get_connection.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Exclusive booking start; explicit offset required, maximum range 93 days.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Comma-separated authorized record IDs.",
            "in": "query",
            "name": "artistIds",
            "schema": {
              "maxLength": 4096,
              "type": "string"
            }
          },
          {
            "description": "Comma-separated authorized record IDs.",
            "in": "query",
            "name": "locationIds",
            "schema": {
              "maxLength": 4096,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Permitted records for this page.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "artist": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Assigned artist or null for shared inventory."
                          },
                          "client": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Permitted client identification only."
                          },
                          "end": {
                            "description": "Booking end instant.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "id": {
                            "description": "Database-generated record UUID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "location": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Assigned location or null for shared inventory."
                          },
                          "registrationCount": {
                            "const": 0,
                            "description": "Zero registered inks; actual usage is unknown.",
                            "type": "number"
                          },
                          "requiredForCompletion": {
                            "description": "Existing ink-completion setting.",
                            "type": "boolean"
                          },
                          "start": {
                            "description": "Booking start instant.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "status": {
                            "description": "Recorded booking status.",
                            "type": "string"
                          },
                          "timeZone": {
                            "description": "Booking IANA timezone.",
                            "type": "string"
                          },
                          "url": {
                            "description": "Studio calendar link or null.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "start",
                          "end",
                          "timeZone",
                          "status",
                          "artist",
                          "location",
                          "client",
                          "url",
                          "registrationCount",
                          "requiredForCompletion"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Opaque continuation or null when exhausted.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "List past bookings without ink registrations",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List past bookings without ink registrations",
        "tags": [
          "Inks"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {
                "from": "2026-10-05T00:00:00+02:00",
                "limit": "50",
                "to": "2026-10-06T00:00:00+02:00"
              }
            }
          }
        ],
        "x-required-permissions": [
          "inks:read"
        ]
      }
    },
    "/api/v1/calendar/events": {
      "get": {
        "description": "List safe summaries overlapping a half-open range of at most 93 days. An event can start before from; for start-date counts retain only returned events whose start is within the requested period. Ordering is start instant, event type, then ID. Follow nextCursor with the same filters; pages are not a snapshot export or change feed.",
        "operationId": "listCalendarEvents",
        "parameters": [
          {
            "description": "Repeat for each booking action filter, using app calendar action keys.",
            "in": "query",
            "name": "actionStatuses",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "missing_ink_registration",
                    "missing_approved_consent",
                    "pending_client_consent",
                    "awaiting_client_consent_approval",
                    "rejected_client_consent",
                    "pending_payment",
                    "expired_payment",
                    "rejected_payment"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "missing_ink_registration",
                      "missing_approved_consent",
                      "pending_client_consent",
                      "awaiting_client_consent_approval",
                      "rejected_client_consent",
                      "pending_payment",
                      "expired_payment",
                      "rejected_payment"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Match any selected booking tag; repeat for multiple IDs.",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Inclusive ISO timestamp, with an explicit UTC offset.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Exclusive ISO timestamp. Range must be positive and at most 93 days.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Repeat this query parameter for each artist ID, up to 20.",
            "in": "query",
            "name": "artistIds",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 20,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Repeat this query parameter for each location ID, up to 20.",
            "in": "query",
            "name": "locationIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 20,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Repeat this query parameter for calendar event types.",
            "in": "query",
            "name": "types",
            "schema": {
              "anyOf": [
                {
                  "description": "Calendar summary source type.",
                  "enum": [
                    "BOOKING",
                    "CONSULTATION",
                    "TIME_OFF",
                    "GUEST",
                    "LOCATION_CLOSURE",
                    "ANNOUNCEMENT"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Calendar summary source type.",
                    "enum": [
                      "BOOKING",
                      "CONSULTATION",
                      "TIME_OFF",
                      "GUEST",
                      "LOCATION_CLOSURE",
                      "ANNOUNCEMENT"
                    ],
                    "type": "string"
                  },
                  "maxItems": 6,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Repeat this query parameter for scheduled/cancelled status filters.",
            "in": "query",
            "name": "statuses",
            "schema": {
              "anyOf": [
                {
                  "description": "Current calendar event status.",
                  "enum": [
                    "SCHEDULED",
                    "CANCELLED"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Current calendar event status.",
                    "enum": [
                      "SCHEDULED",
                      "CANCELLED"
                    ],
                    "type": "string"
                  },
                  "maxItems": 2,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Limit summaries to this authorized client.",
            "in": "query",
            "name": "clientId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Page size, default 50 and maximum 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque nextCursor from the previous page, bound to this operation, caller, studio, filters and sort. Do not inspect or modify.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null,
                  "timeZone": "Europe/Copenhagen"
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized calendar summary records for this page.",
                      "items": {
                        "properties": {
                          "actionStatuses": {
                            "default": [],
                            "description": "Current booking actions, using the same keys as the app calendar filters.",
                            "items": {
                              "enum": [
                                "missing_ink_registration",
                                "missing_approved_consent",
                                "pending_client_consent",
                                "awaiting_client_consent_approval",
                                "rejected_client_consent",
                                "pending_payment",
                                "expired_payment",
                                "rejected_payment"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "allDay": {
                            "description": "Whether the source event spans whole local calendar days.",
                            "type": "boolean"
                          },
                          "artist": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Authorized artist reference, or null."
                          },
                          "client": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Authorized client reference, or null."
                          },
                          "end": {
                            "description": "UTC ISO exclusive end instant.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "id": {
                            "description": "Stable record ID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "locations": {
                            "description": "Authorized location references.",
                            "items": {
                              "properties": {
                                "id": {
                                  "description": "Stable record ID.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "start": {
                            "description": "UTC ISO start instant.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "status": {
                            "description": "Current calendar event status.",
                            "enum": [
                              "SCHEDULED",
                              "CANCELLED"
                            ],
                            "type": "string"
                          },
                          "tags": {
                            "default": [],
                            "description": "Assigned booking tags; empty for untagged or non-booking events.",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "color": {
                                  "description": "Tag display color, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "id": {
                                  "description": "Studio tag ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Tag display name.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "timeZone": {
                            "description": "IANA time zone.",
                            "type": "string"
                          },
                          "title": {
                            "description": "Bounded calendar summary title.",
                            "maxLength": 255,
                            "type": "string"
                          },
                          "type": {
                            "description": "Calendar summary source type.",
                            "enum": [
                              "BOOKING",
                              "CONSULTATION",
                              "TIME_OFF",
                              "GUEST",
                              "LOCATION_CLOSURE",
                              "ANNOUNCEMENT"
                            ],
                            "type": "string"
                          },
                          "url": {
                            "description": "Authenticated studio calendar link, or null if unavailable.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "description": "Current record version when supported, or null.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "title",
                          "start",
                          "end",
                          "timeZone",
                          "allDay",
                          "status",
                          "artist",
                          "locations",
                          "client",
                          "url",
                          "version"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Opaque cursor for the next page, or null when complete.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "timeZone": {
                      "description": "Studio time zone for interpreting local dates.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor",
                    "timeZone"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Bounded, authorized calendar summaries.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List authorized calendar summaries",
        "tags": [
          "Calendar"
        ],
        "x-request-examples": [
          {
            "name": "pagination",
            "request": {
              "query": {
                "from": "2026-10-05T00:00:00Z",
                "limit": "50",
                "to": "2026-10-06T00:00:00Z"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:read"
        ]
      }
    },
    "/api/v1/calendar/gaps": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "find_calendar_gaps",
        "parameters": [
          {
            "description": "Search start instant, inclusive, with an explicit UTC offset.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Search end instant, exclusive; at most 93 days after from.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Studio location ID.",
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Opaque continuation cursor bound to the caller and filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "One to twenty studio participant user IDs.",
            "in": "query",
            "name": "artistIds",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 20,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Required duration in minutes, from 1 to 1440.",
            "in": "query",
            "name": "durationMinutes",
            "required": true,
            "schema": {
              "maximum": 1440,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum results on this page.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 5,
              "maximum": 20,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Optional local daily start in HH:mm; requires dailyEnd.",
            "in": "query",
            "name": "dailyStart",
            "schema": {
              "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
              "type": "string"
            }
          },
          {
            "description": "Optional local daily end in HH:mm; requires dailyStart.",
            "in": "query",
            "name": "dailyEnd",
            "schema": {
              "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
              "type": "string"
            }
          },
          {
            "description": "Kind of the authorized event to exclude; requires excludeEventId.",
            "in": "query",
            "name": "excludeEventType",
            "schema": {
              "enum": [
                "BOOKING",
                "CONSULTATION",
                "TIME_OFF"
              ],
              "type": "string"
            }
          },
          {
            "description": "Authorized event ID to exclude; requires excludeEventType.",
            "in": "query",
            "name": "excludeEventId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "assumptions": [],
                  "coverage": {
                    "from": "2026-10-05T00:00:00Z",
                    "to": "2026-10-06T00:00:00Z"
                  },
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "assumptions": {
                      "description": "Working-hour assumptions; a free interval is not a reservation.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "coverage": {
                      "description": "Bounded time range examined.",
                      "properties": {
                        "from": {
                          "description": "Search start instant, inclusive, with an explicit UTC offset.",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "to": {
                          "description": "Search end instant, exclusive; at most 93 days after from.",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "from",
                        "to"
                      ],
                      "type": "object"
                    },
                    "data": {
                      "description": "Authorized safe result.",
                      "items": {
                        "properties": {
                          "artistId": {
                            "description": "Current studio participant user ID.",
                            "maxLength": 128,
                            "minLength": 1,
                            "type": "string"
                          },
                          "availableMinutes": {
                            "description": "Actual elapsed free minutes, including time-zone transitions.",
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          "end": {
                            "description": "End instant, exclusive, with an explicit UTC offset.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "locationId": {
                            "description": "Studio location ID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "start": {
                            "description": "Start instant, inclusive, with an explicit UTC offset.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "timeZone": {
                            "description": "IANA time zone.",
                            "maxLength": 50,
                            "type": "string"
                          }
                        },
                        "required": [
                          "artistId",
                          "locationId",
                          "start",
                          "end",
                          "availableMinutes",
                          "timeZone"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Continuation cursor, or null when the result is complete.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor",
                    "coverage",
                    "assumptions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "find calendar gaps",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "next",
            "request": {
              "query": {
                "artistIds": "artist-example",
                "dailyEnd": "17:00",
                "dailyStart": "09:00",
                "durationMinutes": "120",
                "from": "2026-10-05T00:00:00Z",
                "limit": "1",
                "locationId": "00000000-0000-4000-8000-000000000225",
                "to": "2026-10-06T00:00:00Z"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:read"
        ]
      }
    },
    "/api/v1/clients": {
      "get": {
        "description": "Search supported name/contact fields with last-artist/location filters. Active clients only; deterministic order, default 50/max 100, opaque caller/filter-bound cursors.",
        "operationId": "listClients",
        "parameters": [
          {
            "description": "Search name, family name, email or phone.",
            "in": "query",
            "name": "query",
            "schema": {
              "maxLength": 256,
              "type": "string"
            }
          },
          {
            "description": "Latest past-booking artist IDs; repeat query parameter for several.",
            "in": "query",
            "name": "lastArtistIds",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 20,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Latest past-booking location IDs; repeat query parameter for several.",
            "in": "query",
            "name": "lastLocationIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 20,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Deterministic sort field.",
            "in": "query",
            "name": "sortField",
            "schema": {
              "default": "createdAt",
              "enum": [
                "createdAt",
                "name"
              ],
              "type": "string"
            }
          },
          {
            "description": "Sort direction, with stable ID tie breaker.",
            "in": "query",
            "name": "sortOrder",
            "schema": {
              "default": "desc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page size; default 50, maximum 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from the previous page with unchanged filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Client identification candidates.",
                      "items": {
                        "properties": {
                          "capabilities": {
                            "default": [],
                            "description": "Currently permitted client actions; merged originals are immutable.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "createdAt": {
                            "description": "UTC ISO creation instant.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "email": {
                            "anyOf": [
                              {
                                "format": "email",
                                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Client contact email, or null."
                          },
                          "id": {
                            "description": "Stable record ID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "lastName": {
                            "description": "Client family name, or null.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "description": "Display name.",
                            "type": "string"
                          },
                          "phone": {
                            "description": "Client phone number, or null.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phoneCountry": {
                            "description": "Client phone country prefix, or null.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "url": {
                            "anyOf": [
                              {
                                "format": "uri",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null,
                            "description": "Canonical TatTool client profile link, without authentication material."
                          },
                          "version": {
                            "description": "Opaque persisted-state version required for external edits/removals.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "lastName",
                          "email",
                          "phone",
                          "phoneCountry",
                          "createdAt",
                          "version"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Opaque continuation cursor, or null when exhausted.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Identification candidates, without journal or consent contents.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Search and list clients",
        "tags": [
          "Clients"
        ],
        "x-request-examples": [
          {
            "name": "search",
            "request": {
              "query": {
                "limit": "50",
                "query": "Emma"
              }
            }
          }
        ],
        "x-required-permissions": [
          "clients:read"
        ]
      },
      "post": {
        "description": "Requires Idempotency-Key UUID. Replays the original result; studio email policy, phone normalization and duplicate-email/shared-phone rules apply.",
        "operationId": "createClient",
        "parameters": [
          {
            "description": "Required UUID; reuse unchanged for retries.",
            "in": "header",
            "name": "idempotency-key",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "email": {
                    "description": "Email, subject to studio policy and duplicate checks.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lastName": {
                    "description": "Optional family name.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Client given name.",
                    "minLength": 1,
                    "type": "string"
                  },
                  "phone": {
                    "description": "Phone to normalize using phoneCountry.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "phoneCountry": {
                    "anyOf": [
                      {
                        "maxLength": 2,
                        "minLength": 2,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "ISO country used for phone normalization."
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "capabilities": [],
                    "createdAt": "2026-10-05T00:00:00.000Z",
                    "email": null,
                    "id": "00000000-0000-4000-8000-000000000213",
                    "lastName": null,
                    "name": "Example client",
                    "phone": null,
                    "phoneCountry": null,
                    "url": "https://app.tattool.io/example-studio/clients/00000000-0000-4000-8000-000000000213",
                    "version": "opaque-example-version"
                  },
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000214",
                    "replayed": true,
                    "status": "completed"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "properties": {
                            "capabilities": {
                              "default": [],
                              "description": "Currently permitted client actions; merged originals are immutable.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "createdAt": {
                              "description": "UTC ISO creation instant.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "format": "email",
                                  "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Client contact email, or null."
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "lastName": {
                              "description": "Client family name, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "description": "Display name.",
                              "type": "string"
                            },
                            "phone": {
                              "description": "Client phone number, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phoneCountry": {
                              "description": "Client phone country prefix, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "default": null,
                              "description": "Canonical TatTool client profile link, without authentication material."
                            },
                            "version": {
                              "description": "Opaque persisted-state version required for external edits/removals.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "lastName",
                            "email",
                            "phone",
                            "phoneCountry",
                            "createdAt",
                            "version"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Original result replayed.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "capabilities": [],
                    "createdAt": "2026-10-05T00:00:00.000Z",
                    "email": null,
                    "id": "00000000-0000-4000-8000-000000000213",
                    "lastName": null,
                    "name": "Example client",
                    "phone": null,
                    "phoneCountry": null,
                    "url": "https://app.tattool.io/example-studio/clients/00000000-0000-4000-8000-000000000213",
                    "version": "opaque-example-version"
                  },
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000214",
                    "replayed": false,
                    "status": "completed"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "properties": {
                            "capabilities": {
                              "default": [],
                              "description": "Currently permitted client actions; merged originals are immutable.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "createdAt": {
                              "description": "UTC ISO creation instant.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "format": "email",
                                  "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Client contact email, or null."
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "lastName": {
                              "description": "Client family name, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "description": "Display name.",
                              "type": "string"
                            },
                            "phone": {
                              "description": "Client phone number, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phoneCountry": {
                              "description": "Client phone country prefix, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "default": null,
                              "description": "Canonical TatTool client profile link, without authentication material."
                            },
                            "version": {
                              "description": "Opaque persisted-state version required for external edits/removals.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "lastName",
                            "email",
                            "phone",
                            "phoneCountry",
                            "createdAt",
                            "version"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "First completed creation.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000214",
                    "replayed": false,
                    "status": "unknown"
                  },
                  "retryAfterSeconds": 5
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "properties": {
                            "capabilities": {
                              "default": [],
                              "description": "Currently permitted client actions; merged originals are immutable.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "createdAt": {
                              "description": "UTC ISO creation instant.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "format": "email",
                                  "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Client contact email, or null."
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "lastName": {
                              "description": "Client family name, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "description": "Display name.",
                              "type": "string"
                            },
                            "phone": {
                              "description": "Client phone number, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phoneCountry": {
                              "description": "Client phone country prefix, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "default": null,
                              "description": "Canonical TatTool client profile link, without authentication material."
                            },
                            "version": {
                              "description": "Opaque persisted-state version required for external edits/removals.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "lastName",
                            "email",
                            "phone",
                            "phoneCountry",
                            "createdAt",
                            "version"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Unresolved receipt; retain the same key.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a client",
        "tags": [
          "Clients"
        ],
        "x-request-examples": [
          {
            "name": "create",
            "request": {
              "body": {
                "email": "fixture@example.com",
                "name": "Example client"
              },
              "headers": {
                "idempotency-key": "00000000-0000-4000-8000-000000000224"
              }
            }
          }
        ],
        "x-required-permissions": [
          "clients:write"
        ]
      }
    },
    "/api/v1/clients/{clientId}": {
      "get": {
        "description": "Return the authorized client's basic contact fields. Inaccessible IDs return 404. Journals, private notes and completed consent contents are excluded.",
        "operationId": "getClient",
        "parameters": [
          {
            "description": "Authorized client ID.",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "createdAt": "2026-10-05T00:00:00.000Z",
                    "email": null,
                    "id": "00000000-0000-4000-8000-000000000213",
                    "lastName": null,
                    "name": "Example client",
                    "phone": null,
                    "phoneCountry": null,
                    "version": "opaque-example-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "capabilities": {
                          "default": [],
                          "description": "Currently permitted client actions; merged originals are immutable.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "createdAt": {
                          "description": "UTC ISO creation instant.",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "email": {
                          "anyOf": [
                            {
                              "format": "email",
                              "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Client contact email, or null."
                        },
                        "id": {
                          "description": "Stable record ID.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "lastName": {
                          "description": "Client family name, or null.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "description": "Display name.",
                          "type": "string"
                        },
                        "phone": {
                          "description": "Client phone number, or null.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phoneCountry": {
                          "description": "Client phone country prefix, or null.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "url": {
                          "anyOf": [
                            {
                              "format": "uri",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null,
                          "description": "Canonical TatTool client profile link, without authentication material."
                        },
                        "version": {
                          "description": "Opaque persisted-state version required for external edits/removals.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "lastName",
                        "email",
                        "phone",
                        "phoneCountry",
                        "createdAt",
                        "version"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized client contact profile.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read a client profile",
        "tags": [
          "Clients"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "clientId": "00000000-0000-4000-8000-000000000213"
              }
            }
          }
        ],
        "x-required-permissions": [
          "clients:read"
        ]
      },
      "patch": {
        "description": "Requires Idempotency-Key and the opaque expectedVersion from getClient. Body contains expectedVersion and patch. Stale edits return CONFLICT; present null clears nullable contact fields only.",
        "operationId": "updateClient",
        "parameters": [
          {
            "description": "Explicit client ID.",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Required UUID; reuse unchanged for retries.",
            "in": "header",
            "name": "idempotency-key",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expectedVersion": {
                    "description": "Opaque persisted record version from the latest read.",
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  "patch": {
                    "additionalProperties": false,
                    "properties": {
                      "email": {
                        "description": "New email; null clears it when studio policy allows.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lastName": {
                        "description": "New family name; null clears it.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "name": {
                        "description": "New given name; omission preserves the current name.",
                        "minLength": 1,
                        "type": "string"
                      },
                      "phone": {
                        "description": "New phone; null clears it.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "phoneCountry": {
                        "anyOf": [
                          {
                            "maxLength": 2,
                            "minLength": 2,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Country used to normalize the phone; null clears it."
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "expectedVersion",
                  "patch"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "capabilities": [],
                    "createdAt": "2026-10-05T00:00:00.000Z",
                    "email": null,
                    "id": "00000000-0000-4000-8000-000000000213",
                    "lastName": null,
                    "name": "Example client",
                    "phone": null,
                    "phoneCountry": null,
                    "url": "https://app.tattool.io/example-studio/clients/00000000-0000-4000-8000-000000000213",
                    "version": "opaque-example-version"
                  },
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000214",
                    "replayed": false,
                    "status": "completed"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "properties": {
                            "capabilities": {
                              "default": [],
                              "description": "Currently permitted client actions; merged originals are immutable.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "createdAt": {
                              "description": "UTC ISO creation instant.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "format": "email",
                                  "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Client contact email, or null."
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "lastName": {
                              "description": "Client family name, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "description": "Display name.",
                              "type": "string"
                            },
                            "phone": {
                              "description": "Client phone number, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phoneCountry": {
                              "description": "Client phone country prefix, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "default": null,
                              "description": "Canonical TatTool client profile link, without authentication material."
                            },
                            "version": {
                              "description": "Opaque persisted-state version required for external edits/removals.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "lastName",
                            "email",
                            "phone",
                            "phoneCountry",
                            "createdAt",
                            "version"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Updated client or original result replayed.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000214",
                    "replayed": false,
                    "status": "unknown"
                  },
                  "retryAfterSeconds": 5
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "properties": {
                            "capabilities": {
                              "default": [],
                              "description": "Currently permitted client actions; merged originals are immutable.",
                              "items": {
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "createdAt": {
                              "description": "UTC ISO creation instant.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "format": "email",
                                  "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Client contact email, or null."
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "lastName": {
                              "description": "Client family name, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "description": "Display name.",
                              "type": "string"
                            },
                            "phone": {
                              "description": "Client phone number, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phoneCountry": {
                              "description": "Client phone country prefix, or null.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "url": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "default": null,
                              "description": "Canonical TatTool client profile link, without authentication material."
                            },
                            "version": {
                              "description": "Opaque persisted-state version required for external edits/removals.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "lastName",
                            "email",
                            "phone",
                            "phoneCountry",
                            "createdAt",
                            "version"
                          ],
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Unresolved receipt; retain the same key.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "data": {
                          "anyOf": [
                            {
                              "properties": {
                                "capabilities": {
                                  "default": [],
                                  "description": "Currently permitted client actions; merged originals are immutable.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "createdAt": {
                                  "description": "UTC ISO creation instant.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "format": "email",
                                      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Client contact email, or null."
                                },
                                "id": {
                                  "description": "Stable record ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "lastName": {
                                  "description": "Client family name, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": "string"
                                },
                                "phone": {
                                  "description": "Client phone number, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phoneCountry": {
                                  "description": "Client phone country prefix, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "anyOf": [
                                    {
                                      "format": "uri",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "default": null,
                                  "description": "Canonical TatTool client profile link, without authentication material."
                                },
                                "version": {
                                  "description": "Opaque persisted-state version required for external edits/removals.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "lastName",
                                "email",
                                "phone",
                                "phoneCountry",
                                "createdAt",
                                "version"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe domain result when completed; null for unresolved or failed operations."
                        },
                        "error": {
                          "description": "Safe failure details when relevant; never a raw exception.",
                          "properties": {
                            "code": {
                              "description": "Stable safe failure code.",
                              "enum": [
                                "INVALID_INPUT",
                                "UNAUTHENTICATED",
                                "FORBIDDEN",
                                "NOT_FOUND",
                                "CONFLICT",
                                "RATE_LIMITED",
                                "CAPABILITY_UNAVAILABLE",
                                "PROVIDER_UNAVAILABLE"
                              ],
                              "type": "string"
                            },
                            "fieldErrors": {
                              "additionalProperties": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "description": "Safe field-level validation details.",
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            "message": {
                              "description": "Fixed public failure message, without provider or private details.",
                              "type": "string"
                            },
                            "operationId": {
                              "description": "Original domain recovery operation ID when available.",
                              "type": "string"
                            },
                            "reason": {
                              "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                              "enum": [
                                "STALE_VERSION",
                                "EDIT_SESSION_EXPIRED",
                                "IDEMPOTENCY_MISMATCH",
                                "DOMAIN_CONFLICT",
                                "SLOT_UNAVAILABLE",
                                "INCOMPLETE_AVAILABILITY",
                                "MISSING_OPENING_HOURS"
                              ],
                              "type": "string"
                            },
                            "retryable": {
                              "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                              "type": "boolean"
                            },
                            "retryAfterSeconds": {
                              "description": "Seconds before retry or reconciliation.",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "retryable"
                          ],
                          "type": "object"
                        },
                        "operation": {
                          "properties": {
                            "id": {
                              "description": "Durable operation receipt ID; use it for status lookup.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "replayed": {
                              "description": "Whether this is an existing logical request or status lookup.",
                              "type": "boolean"
                            },
                            "status": {
                              "allOf": [
                                {
                                  "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                                  "enum": [
                                    "pending",
                                    "completed",
                                    "failed",
                                    "unknown"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "const": "failed",
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "status",
                            "replayed"
                          ],
                          "type": "object"
                        },
                        "retryAfterSeconds": {
                          "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "data",
                        "operation"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Update client details",
        "tags": [
          "Clients"
        ],
        "x-request-examples": [
          {
            "name": "update",
            "request": {
              "body": {
                "expectedVersion": "opaque-example-version",
                "patch": {
                  "phone": null
                }
              },
              "headers": {
                "idempotency-key": "00000000-0000-4000-8000-000000000225"
              },
              "path": {
                "clientId": "00000000-0000-4000-8000-000000000213"
              }
            }
          }
        ],
        "x-required-permissions": [
          "clients:write"
        ]
      }
    },
    "/api/v1/clients/{clientId}/journal": {
      "get": {
        "description": "Bounded note/activity timeline with opaque cursor. Preserves client and activity authority; no raw details/summary parameters or completed-consent content/downloads.",
        "operationId": "listClientJournal",
        "parameters": [
          {
            "description": "Explicit client ID.",
            "in": "path",
            "name": "clientId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Include permitted activity metadata alongside notes.",
            "in": "query",
            "name": "includeActivity",
            "schema": {
              "default": "true",
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page size; default 50, maximum 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from the previous page with unchanged filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Permitted notes and safe activity metadata.",
                      "items": {
                        "oneOf": [
                          {
                            "properties": {
                              "id": {
                                "description": "Entry ID.",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "note": {
                                "properties": {
                                  "author": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Author user ID.",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Author display name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Note attribution."
                                  },
                                  "body": {
                                    "description": "Journal note text.",
                                    "maxLength": 5000,
                                    "type": "string"
                                  },
                                  "clientId": {
                                    "description": "Owning client ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "createdAt": {
                                    "description": "Creation instant.",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "id": {
                                    "description": "Stable note ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "isPinned": {
                                    "description": "Whether the note is pinned.",
                                    "type": "boolean"
                                  },
                                  "relatedEntityId": {
                                    "anyOf": [
                                      {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Related record ID."
                                  },
                                  "relatedEntityType": {
                                    "anyOf": [
                                      {
                                        "enum": [
                                          "client",
                                          "booking"
                                        ],
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Permitted related record type."
                                  },
                                  "updatedAt": {
                                    "description": "Last edit instant.",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "version": {
                                    "description": "Opaque persisted version for edits.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "clientId",
                                  "body",
                                  "isPinned",
                                  "createdAt",
                                  "updatedAt",
                                  "author",
                                  "version",
                                  "relatedEntityType",
                                  "relatedEntityId"
                                ],
                                "type": "object"
                              },
                              "occurredAt": {
                                "description": "Entry instant.",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "type": {
                                "const": "note",
                                "description": "Entry type.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "id",
                              "occurredAt",
                              "note"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "activity": {
                                "properties": {
                                  "action": {
                                    "description": "Activity action code.",
                                    "maxLength": 200,
                                    "type": "string"
                                  },
                                  "category": {
                                    "anyOf": [
                                      {
                                        "maxLength": 80,
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Activity category."
                                  },
                                  "id": {
                                    "description": "Stable activity ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "occurredAt": {
                                    "description": "Activity instant.",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "status": {
                                    "anyOf": [
                                      {
                                        "enum": [
                                          "pending",
                                          "sent",
                                          "viewed",
                                          "completed",
                                          "expired",
                                          "cancelled",
                                          "failed",
                                          "approved",
                                          "rejected"
                                        ],
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Safe lifecycle status only; no completed consent content."
                                  },
                                  "subjectId": {
                                    "anyOf": [
                                      {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Subject ID."
                                  },
                                  "subjectType": {
                                    "anyOf": [
                                      {
                                        "maxLength": 80,
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Subject type."
                                  },
                                  "version": {
                                    "description": "Opaque activity version.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "action",
                                  "category",
                                  "occurredAt",
                                  "subjectType",
                                  "subjectId",
                                  "status",
                                  "version"
                                ],
                                "type": "object"
                              },
                              "id": {
                                "description": "Entry ID.",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "occurredAt": {
                                "description": "Entry instant.",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              "type": {
                                "const": "activity",
                                "description": "Entry type.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "id",
                              "occurredAt",
                              "activity"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Opaque continuation cursor, or null when exhausted.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Permitted journal entries.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read client journal",
        "tags": [
          "Clients"
        ],
        "x-request-examples": [
          {
            "name": "notes",
            "request": {
              "path": {
                "clientId": "00000000-0000-4000-8000-000000000213"
              },
              "query": {
                "includeActivity": "false",
                "limit": "50"
              }
            }
          }
        ],
        "x-required-permissions": [
          "clients:read"
        ]
      }
    },
    "/api/v1/connection": {
      "get": {
        "description": "Return the current user, selected studio, studio time zone and available REST capabilities. Key permissions narrow current TatTool authority.",
        "operationId": "getConnection",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "availableCapabilities": [
                      "getConnection"
                    ],
                    "grantedScopes": [
                      "organization:read"
                    ],
                    "organization": {
                      "id": "studio-example",
                      "name": "Example studio",
                      "timeZone": "Europe/Copenhagen"
                    },
                    "user": {
                      "id": "user-example",
                      "name": "Example artist"
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "availableCapabilities": {
                          "description": "Currently authorized capabilities for this transport.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "grantedScopes": {
                          "description": "Granted TatTool API-key permissions or MCP scopes; these only narrow live user authority.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "links": {
                          "description": "Authenticated studio navigation for currently available capabilities.",
                          "properties": {
                            "calendar": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "clients": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "consentTemplates": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "dashboard": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "flows": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "inkInventory": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "messageTemplates": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            },
                            "payments": {
                              "anyOf": [
                                {
                                  "format": "uri",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                            }
                          },
                          "type": "object"
                        },
                        "organization": {
                          "properties": {
                            "id": {
                              "description": "Stable record ID.",
                              "type": "string"
                            },
                            "name": {
                              "description": "Display name.",
                              "type": "string"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "timeZone"
                          ],
                          "type": "object"
                        },
                        "user": {
                          "properties": {
                            "id": {
                              "description": "Current user ID.",
                              "type": "string"
                            },
                            "name": {
                              "description": "Current user display name.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "user",
                        "organization",
                        "grantedScopes",
                        "availableCapabilities"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Current authorized connection.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read the current API connection",
        "tags": [
          "Connection"
        ],
        "x-request-examples": [
          {
            "name": "quickstart",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "organization:read"
        ]
      }
    },
    "/api/v1/consent-templates": {
      "get": {
        "description": "List reusable templates from the active Digital Consent Forms extension for selection. Reading templates does not grant permission to edit them; no submitted answers are returned.",
        "operationId": "listConsentTemplates",
        "parameters": [
          {
            "description": "Consent or message active.",
            "in": "query",
            "name": "active",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "Consent or message limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Consent or message cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Consent or message data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "active": {
                            "description": "Consent or message active.",
                            "type": "boolean"
                          },
                          "content": {
                            "description": "Consent or message content.",
                            "items": {
                              "$ref": "#/components/schemas/__schema0"
                            },
                            "type": "array"
                          },
                          "id": {
                            "description": "Consent or message id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "language": {
                            "description": "Consent or message language.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Consent or message name.",
                            "type": "string"
                          },
                          "url": {
                            "anyOf": [
                              {
                                "format": "uri",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                          },
                          "version": {
                            "description": "Consent or message version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "language",
                          "active",
                          "content",
                          "version"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Consent or message nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "List reusable templates from the active Digital Consent Forms extension for selection. Reading templates does not grant permission to edit them; no submitted answers are returned.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List reusable templates from the active Digital Consent Forms extension for selection. Reading templates does not grant permission to edit them; no submitted answers are returned.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "consents:read"
        ]
      }
    },
    "/api/v1/consent-templates/{templateId}": {
      "get": {
        "description": "Read a reusable template from the active Digital Consent Forms extension; this is a definition, not a client consent instance.",
        "operationId": "getConsentTemplate",
        "parameters": [
          {
            "description": "Consent or message templateId.",
            "in": "path",
            "name": "templateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "active": true,
                    "content": [],
                    "id": "00000000-0000-4000-8000-000000000228",
                    "language": "en",
                    "name": "Standard form",
                    "version": "example-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Consent or message data.",
                      "properties": {
                        "active": {
                          "description": "Consent or message active.",
                          "type": "boolean"
                        },
                        "content": {
                          "description": "Consent or message content.",
                          "items": {
                            "$ref": "#/components/schemas/__schema0"
                          },
                          "type": "array"
                        },
                        "id": {
                          "description": "Consent or message id.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "language": {
                          "description": "Consent or message language.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Consent or message name.",
                          "type": "string"
                        },
                        "url": {
                          "anyOf": [
                            {
                              "format": "uri",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                        },
                        "version": {
                          "description": "Consent or message version.",
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "language",
                        "active",
                        "content",
                        "version"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read a reusable template from the active Digital Consent Forms extension; this is a definition, not a client consent instance.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read a reusable template from the active Digital Consent Forms extension; this is a definition, not a client consent instance.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "templateId": "00000000-0000-4000-8000-000000000227"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "consents:read"
        ]
      }
    },
    "/api/v1/consents": {
      "get": {
        "description": "Read permitted consent identifiers and status only; no answers, signatures, files or links.",
        "operationId": "listConsents",
        "parameters": [
          {
            "description": "Consent or message bookingId.",
            "in": "query",
            "name": "bookingId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Consent or message clientId.",
            "in": "query",
            "name": "clientId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Consent or message status.",
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "pending",
                "awaiting_approval",
                "approved",
                "rejected",
                "declined"
              ],
              "type": "string"
            }
          },
          {
            "description": "Consent or message from.",
            "in": "query",
            "name": "from",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Consent or message to.",
            "in": "query",
            "name": "to",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Consent or message limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Consent or message cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Consent or message data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "bookingId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message bookingId."
                          },
                          "clientId": {
                            "description": "Consent or message clientId.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message completedAt."
                          },
                          "createdAt": {
                            "description": "Consent or message createdAt.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "id": {
                            "description": "Consent or message id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "requestedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message requestedAt."
                          },
                          "status": {
                            "description": "Consent or message status.",
                            "enum": [
                              "pending",
                              "awaiting_approval",
                              "approved",
                              "rejected",
                              "declined"
                            ],
                            "type": "string"
                          },
                          "templateId": {
                            "description": "Consent or message templateId.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "version": {
                            "description": "Consent or message version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "templateId",
                          "bookingId",
                          "clientId",
                          "status",
                          "createdAt",
                          "requestedAt",
                          "completedAt",
                          "version"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Consent or message nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read permitted consent identifiers and status only; no answers, signatures, files or links.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read permitted consent identifiers and status only; no answers, signatures, files or links.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "consents:read"
        ]
      }
    },
    "/api/v1/consents/{consentId}": {
      "get": {
        "description": "Read consent status only; completed contents are unavailable.",
        "operationId": "getConsentStatus",
        "parameters": [
          {
            "description": "Consent or message consentId.",
            "in": "path",
            "name": "consentId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "bookingId": null,
                    "clientId": "00000000-0000-4000-8000-000000000229",
                    "completedAt": null,
                    "createdAt": "2033-01-01T00:00:00Z",
                    "id": "00000000-0000-4000-8000-000000000227",
                    "requestedAt": null,
                    "status": "pending",
                    "templateId": "00000000-0000-4000-8000-000000000228",
                    "version": "example-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Consent or message data.",
                      "properties": {
                        "bookingId": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message bookingId."
                        },
                        "clientId": {
                          "description": "Consent or message clientId.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "completedAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message completedAt."
                        },
                        "createdAt": {
                          "description": "Consent or message createdAt.",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "id": {
                          "description": "Consent or message id.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "requestedAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message requestedAt."
                        },
                        "status": {
                          "description": "Consent or message status.",
                          "enum": [
                            "pending",
                            "awaiting_approval",
                            "approved",
                            "rejected",
                            "declined"
                          ],
                          "type": "string"
                        },
                        "templateId": {
                          "description": "Consent or message templateId.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "version": {
                          "description": "Consent or message version.",
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "templateId",
                        "bookingId",
                        "clientId",
                        "status",
                        "createdAt",
                        "requestedAt",
                        "completedAt",
                        "version"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read consent status only; completed contents are unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read consent status only; completed contents are unavailable.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "consentId": "00000000-0000-4000-8000-000000000227"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "consents:read"
        ]
      }
    },
    "/api/v1/consultations/{consultationId}": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "get_consultation",
        "parameters": [
          {
            "description": "Consultation ID.",
            "in": "path",
            "name": "consultationId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "artistId": "artist-example",
                    "clientId": "00000000-0000-4000-8000-000000000225",
                    "description": null,
                    "end": "2026-10-05T11:00:00Z",
                    "id": "00000000-0000-4000-8000-000000000225",
                    "locationIds": [
                      "00000000-0000-4000-8000-000000000225"
                    ],
                    "organizationId": "studio-example",
                    "start": "2026-10-05T09:00:00Z",
                    "status": "SCHEDULED",
                    "timeZone": "Europe/Copenhagen",
                    "title": "Booking",
                    "type": "CONSULTATION",
                    "url": null,
                    "version": "opaque-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "oneOf": [
                        {
                          "properties": {
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "clientId": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Existing client ID; contact information is edited separately."
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "price": {
                              "anyOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "amount": {
                                      "description": "Integer amount in currency minor units, including zero.",
                                      "maximum": 2147483647,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "currency": {
                                      "description": "Uppercase three-letter currency code.",
                                      "pattern": "^[A-Z]{3}$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "currency"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Booking price in minor units; null means unset and clears a price on update."
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "tags": {
                              "default": [],
                              "description": "tags",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "color": {
                                    "description": "Tag display color, or null.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "description": "Studio tag ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Tag display name.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "title": {
                              "description": "Appointment title.",
                              "type": "string"
                            },
                            "type": {
                              "const": "BOOKING",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "clientId",
                            "title",
                            "description",
                            "price"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "clientId": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Existing client ID; contact information is edited separately."
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "tags": {
                              "default": [],
                              "description": "tags",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "color": {
                                    "description": "Tag display color, or null.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "description": "Studio tag ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Tag display name.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "title": {
                              "description": "Appointment title.",
                              "type": "string"
                            },
                            "type": {
                              "const": "CONSULTATION",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "clientId",
                            "title",
                            "description"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "allDay": {
                              "description": "Whether time off covers local calendar days.",
                              "type": "boolean"
                            },
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "type": {
                              "const": "TIME_OFF",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "description",
                            "allDay"
                          ],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get consultation",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "consultationId": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:read"
        ]
      }
    },
    "/api/v1/events/{eventId}/activity": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "get_event_activity",
        "parameters": [
          {
            "description": "Event ID.",
            "in": "path",
            "name": "eventId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Maximum results on this page.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque continuation cursor bound to the caller and filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Explicit event kind.",
            "in": "query",
            "name": "eventType",
            "required": true,
            "schema": {
              "enum": [
                "BOOKING",
                "CONSULTATION",
                "TIME_OFF",
                "GUEST",
                "LOCATION_CLOSURE",
                "ANNOUNCEMENT"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "items": {
                        "properties": {
                          "action": {
                            "description": "Activity action code.",
                            "maxLength": 200,
                            "type": "string"
                          },
                          "category": {
                            "anyOf": [
                              {
                                "maxLength": 80,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Activity category."
                          },
                          "id": {
                            "description": "Stable activity ID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "occurredAt": {
                            "description": "Activity instant.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "status": {
                            "anyOf": [
                              {
                                "enum": [
                                  "pending",
                                  "sent",
                                  "viewed",
                                  "completed",
                                  "expired",
                                  "cancelled",
                                  "failed",
                                  "approved",
                                  "rejected"
                                ],
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Safe lifecycle status only; no completed consent content."
                          },
                          "subjectId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Subject ID."
                          },
                          "subjectType": {
                            "anyOf": [
                              {
                                "maxLength": 80,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Subject type."
                          },
                          "version": {
                            "description": "Opaque activity version.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "action",
                          "category",
                          "occurredAt",
                          "subjectType",
                          "subjectId",
                          "status",
                          "version"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Continuation cursor, or null when the result is complete.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get event activity",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "eventId": "00000000-0000-4000-8000-000000000225"
              },
              "query": {
                "eventType": "BOOKING",
                "limit": "50"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:read"
        ]
      }
    },
    "/api/v1/flows": {
      "get": {
        "description": "List permitted Flows. REST returns published definitions only; follow nextCursor with the same filters.",
        "operationId": "listFlows",
        "parameters": [
          {
            "description": "Flow query.",
            "in": "query",
            "name": "query",
            "schema": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Flow limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Flow cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Flow data.",
                      "items": {
                        "properties": {
                          "active": {
                            "description": "Flow active.",
                            "type": "boolean"
                          },
                          "anchorField": {
                            "description": "Explicit relative anchor or current booking/consultation startTime default.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "eventKind": {
                            "description": "Flow eventKind.",
                            "enum": [
                              "booking",
                              "consultation",
                              "payment",
                              "payment_request",
                              "ink",
                              "consent_form",
                              "todo",
                              "time_off",
                              "guest_spot",
                              "closure"
                            ],
                            "type": "string"
                          },
                          "id": {
                            "description": "Flow id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "name": {
                            "description": "Flow name.",
                            "type": "string"
                          },
                          "revision": {
                            "description": "Flow revision.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "runAlways": {
                            "description": "Flow runAlways.",
                            "type": "boolean"
                          },
                          "status": {
                            "description": "Flow status.",
                            "enum": [
                              "draft",
                              "published",
                              "archived"
                            ],
                            "type": "string"
                          },
                          "triggerIntervalSeconds": {
                            "description": "Explicit seconds before/after the anchor; booking and consultation default to startTime.",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "triggerType": {
                            "description": "Flow triggerType.",
                            "enum": [
                              "created",
                              "updated",
                              "canceled",
                              "before",
                              "after",
                              "paid",
                              "rejected",
                              "expired"
                            ],
                            "type": "string"
                          },
                          "url": {
                            "anyOf": [
                              {
                                "format": "uri",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "status",
                          "revision",
                          "eventKind",
                          "triggerType",
                          "triggerIntervalSeconds",
                          "anchorField",
                          "runAlways",
                          "active"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Flow nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "List permitted Flows. REST returns published definitions only; follow nextCursor with the same filters.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List permitted Flows. REST returns published definitions only; follow nextCursor with the same filters.",
        "tags": [
          "Flows"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "flows:read"
        ]
      }
    },
    "/api/v1/flows/{flowId}": {
      "get": {
        "description": "Read a permitted Flow with webhook secrets removed. REST returns published definitions only.",
        "operationId": "getFlow",
        "parameters": [
          {
            "description": "Flow flowId.",
            "in": "path",
            "name": "flowId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "active": true,
                    "anchorField": "startTime",
                    "definition": {
                      "edges": [],
                      "name": "Booking confirmation",
                      "nodes": [],
                      "runAlways": true,
                      "version": 1
                    },
                    "eventKind": "booking",
                    "id": "00000000-0000-4000-8000-000000000228",
                    "name": "Booking confirmation",
                    "revision": 1,
                    "runAlways": true,
                    "status": "published",
                    "triggerIntervalSeconds": 1,
                    "triggerType": "created"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Flow data.",
                      "properties": {
                        "active": {
                          "description": "Flow active.",
                          "type": "boolean"
                        },
                        "anchorField": {
                          "description": "Explicit relative anchor or current booking/consultation startTime default.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "definition": {
                          "properties": {
                            "edges": {
                              "description": "Flow edges.",
                              "items": {
                                "properties": {
                                  "id": {
                                    "description": "Flow id.",
                                    "type": "string"
                                  },
                                  "source": {
                                    "description": "Flow source.",
                                    "type": "string"
                                  },
                                  "sourceHandle": {
                                    "description": "Flow sourceHandle.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "target": {
                                    "description": "Flow target.",
                                    "type": "string"
                                  },
                                  "targetHandle": {
                                    "description": "Flow targetHandle.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "type": {
                                    "description": "Flow type.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "source",
                                  "target"
                                ],
                                "type": "object"
                              },
                              "maxItems": 1000,
                              "type": "array"
                            },
                            "name": {
                              "description": "Flow name.",
                              "type": "string"
                            },
                            "nodes": {
                              "description": "Flow nodes.",
                              "items": {
                                "properties": {
                                  "data": {
                                    "additionalProperties": {
                                      "$ref": "#/components/schemas/__schema0"
                                    },
                                    "description": "Flow data.",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "type": "object"
                                  },
                                  "id": {
                                    "description": "Flow id.",
                                    "type": "string"
                                  },
                                  "position": {
                                    "description": "Flow position.",
                                    "properties": {
                                      "x": {
                                        "description": "Flow x.",
                                        "type": "number"
                                      },
                                      "y": {
                                        "description": "Flow y.",
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "x",
                                      "y"
                                    ],
                                    "type": "object"
                                  },
                                  "type": {
                                    "description": "Flow type.",
                                    "type": "string"
                                  },
                                  "validationIssues": {
                                    "description": "Flow validationIssues.",
                                    "items": {
                                      "properties": {
                                        "field": {
                                          "description": "Flow field.",
                                          "type": "string"
                                        },
                                        "message": {
                                          "description": "Flow message.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "message"
                                      ],
                                      "type": "object"
                                    },
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "position",
                                  "data"
                                ],
                                "type": "object"
                              },
                              "maxItems": 500,
                              "type": "array"
                            },
                            "runAlways": {
                              "description": "Flow runAlways.",
                              "type": "boolean"
                            },
                            "version": {
                              "const": 1,
                              "description": "Flow version.",
                              "type": "number"
                            }
                          },
                          "required": [
                            "version",
                            "name",
                            "runAlways",
                            "nodes",
                            "edges"
                          ],
                          "type": "object"
                        },
                        "eventKind": {
                          "description": "Flow eventKind.",
                          "enum": [
                            "booking",
                            "consultation",
                            "payment",
                            "payment_request",
                            "ink",
                            "consent_form",
                            "todo",
                            "time_off",
                            "guest_spot",
                            "closure"
                          ],
                          "type": "string"
                        },
                        "id": {
                          "description": "Flow id.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "name": {
                          "description": "Flow name.",
                          "type": "string"
                        },
                        "revision": {
                          "description": "Flow revision.",
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "runAlways": {
                          "description": "Flow runAlways.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Flow status.",
                          "enum": [
                            "draft",
                            "published",
                            "archived"
                          ],
                          "type": "string"
                        },
                        "triggerIntervalSeconds": {
                          "description": "Explicit seconds before/after the anchor; booking and consultation default to startTime.",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "triggerType": {
                          "description": "Flow triggerType.",
                          "enum": [
                            "created",
                            "updated",
                            "canceled",
                            "before",
                            "after",
                            "paid",
                            "rejected",
                            "expired"
                          ],
                          "type": "string"
                        },
                        "url": {
                          "anyOf": [
                            {
                              "format": "uri",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "status",
                        "revision",
                        "eventKind",
                        "triggerType",
                        "triggerIntervalSeconds",
                        "anchorField",
                        "runAlways",
                        "active",
                        "definition"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read a permitted Flow with webhook secrets removed. REST returns published definitions only.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read a permitted Flow with webhook secrets removed. REST returns published definitions only.",
        "tags": [
          "Flows"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "flowId": "00000000-0000-4000-8000-000000000228"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "flows:read"
        ]
      }
    },
    "/api/v1/flows/{flowId}/runs": {
      "get": {
        "description": "List authorized Flow tasks and safe execution outcomes. Date filters, when supplied, span at most 366 days.",
        "operationId": "listFlowRuns",
        "parameters": [
          {
            "description": "Flow flowId.",
            "in": "path",
            "name": "flowId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Flow from.",
            "in": "query",
            "name": "from",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Flow to.",
            "in": "query",
            "name": "to",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Flow status.",
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "pending",
                "running",
                "paused",
                "completed",
                "failed",
                "canceled"
              ],
              "type": "string"
            }
          },
          {
            "description": "Flow targetKind.",
            "in": "query",
            "name": "targetKind",
            "schema": {
              "enum": [
                "booking",
                "consultation",
                "payment",
                "payment_request",
                "ink",
                "consent_form",
                "todo",
                "time_off",
                "guest_spot",
                "closure"
              ],
              "type": "string"
            }
          },
          {
            "description": "Flow targetId.",
            "in": "query",
            "name": "targetId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Flow limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Flow cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Flow data.",
                      "items": {
                        "properties": {
                          "attempts": {
                            "description": "Flow attempts.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "failedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Flow failedAt."
                          },
                          "flowId": {
                            "description": "Flow flowId.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "nextAttemptAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Flow nextAttemptAt."
                          },
                          "outcomes": {
                            "description": "Flow outcomes.",
                            "items": {
                              "properties": {
                                "branch": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "depth": {
                                          "description": "Flow depth.",
                                          "maximum": 9007199254740991,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "index": {
                                          "description": "Flow index.",
                                          "maximum": 9007199254740991,
                                          "minimum": -9007199254740991,
                                          "type": "integer"
                                        },
                                        "sourceNodeId": {
                                          "description": "Flow sourceNodeId.",
                                          "type": "string"
                                        },
                                        "total": {
                                          "description": "Flow total.",
                                          "maximum": 9007199254740991,
                                          "minimum": -9007199254740991,
                                          "type": "integer"
                                        }
                                      },
                                      "required": [
                                        "depth"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Flow branch."
                                },
                                "conditionMet": {
                                  "description": "Flow conditionMet.",
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "durationMs": {
                                  "description": "Flow durationMs.",
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "failure": {
                                  "anyOf": [
                                    {
                                      "const": "STEP_FAILED",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Flow failure."
                                },
                                "inkRegistered": {
                                  "description": "Flow inkRegistered.",
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "nodeId": {
                                  "description": "Flow nodeId.",
                                  "type": "string"
                                },
                                "nodeType": {
                                  "description": "Flow nodeType.",
                                  "type": "string"
                                },
                                "reason": {
                                  "anyOf": [
                                    {
                                      "enum": [
                                        "CONDITION_NOT_MET",
                                        "CALENDAR_ACCESS_DISABLED",
                                        "STEP_FAILED"
                                      ],
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Flow reason."
                                },
                                "sequence": {
                                  "description": "Flow sequence.",
                                  "type": "number"
                                },
                                "skipped": {
                                  "description": "Flow skipped.",
                                  "type": "boolean"
                                },
                                "stopped": {
                                  "description": "Flow stopped.",
                                  "type": "boolean"
                                },
                                "success": {
                                  "description": "Flow success.",
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "branch",
                                "inkRegistered",
                                "reason",
                                "nodeId",
                                "nodeType",
                                "sequence",
                                "success",
                                "conditionMet",
                                "stopped",
                                "skipped",
                                "durationMs",
                                "failure"
                              ],
                              "type": "object"
                            },
                            "maxItems": 100,
                            "type": "array"
                          },
                          "outcomesTruncated": {
                            "description": "Flow outcomesTruncated.",
                            "type": "boolean"
                          },
                          "runAt": {
                            "description": "Flow runAt.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "runId": {
                            "description": "Flow runId.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "status": {
                            "description": "Flow status.",
                            "type": "string"
                          },
                          "target": {
                            "additionalProperties": false,
                            "description": "Flow target.",
                            "properties": {
                              "id": {
                                "description": "Flow id.",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "kind": {
                                "description": "Flow kind.",
                                "enum": [
                                  "booking",
                                  "consultation",
                                  "payment",
                                  "payment_request",
                                  "ink",
                                  "consent_form",
                                  "todo",
                                  "time_off",
                                  "guest_spot",
                                  "closure"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "id"
                            ],
                            "type": "object"
                          },
                          "taskId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Current queue task ID, or null for completed historical executions removed from the queue."
                          }
                        },
                        "required": [
                          "runId",
                          "taskId",
                          "flowId",
                          "target",
                          "status",
                          "runAt",
                          "attempts",
                          "nextAttemptAt",
                          "failedAt",
                          "outcomes",
                          "outcomesTruncated"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Flow nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "List authorized Flow tasks and safe execution outcomes. Date filters, when supplied, span at most 366 days.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List authorized Flow tasks and safe execution outcomes. Date filters, when supplied, span at most 366 days.",
        "tags": [
          "Flows"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "flowId": "00000000-0000-4000-8000-000000000228"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "flows:read"
        ]
      }
    },
    "/api/v1/inks": {
      "get": {
        "description": "Search ink inventory",
        "operationId": "listInks",
        "parameters": [
          {
            "description": "Page size, default 50, maximum 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from the previous page.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Printed bottle identifier or name.",
            "in": "query",
            "name": "query",
            "schema": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Authorized studio location; includes shared bottles for inventory.",
            "in": "query",
            "name": "locationId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Active studio artist; includes shared bottles for inventory.",
            "in": "query",
            "name": "artistId",
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Optional active state filter.",
            "in": "query",
            "name": "active",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Permitted records for this page.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "active": {
                            "description": "Recorded active state.",
                            "type": "boolean"
                          },
                          "artist": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Assigned artist or null for shared inventory."
                          },
                          "batchNumber": {
                            "description": "Manufacturer batch number.",
                            "type": "string"
                          },
                          "brand": {
                            "description": "Recorded manufacturer.",
                            "type": "string"
                          },
                          "color": {
                            "description": "Recorded ink colour.",
                            "type": "string"
                          },
                          "expiredAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Recorded expiration time."
                          },
                          "expiredReason": {
                            "description": "Recorded expiration reason.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Recorded label expiry."
                          },
                          "id": {
                            "description": "Database-generated record UUID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "identifier": {
                            "description": "Printed numeric bottle identifier.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "isFlagged": {
                            "description": "Visible flagged batch match.",
                            "type": "boolean"
                          },
                          "isOpen": {
                            "description": "Recorded opening state.",
                            "type": "boolean"
                          },
                          "location": {
                            "anyOf": [
                              {
                                "properties": {
                                  "id": {
                                    "description": "Stable record ID.",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Assigned location or null for shared inventory."
                          },
                          "name": {
                            "description": "Display name.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "identifier",
                          "name",
                          "brand",
                          "color",
                          "batchNumber",
                          "artist",
                          "location",
                          "active",
                          "isOpen",
                          "expiresAt",
                          "expiredAt",
                          "expiredReason",
                          "isFlagged"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Opaque continuation or null when exhausted.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Search ink inventory",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Search ink inventory",
        "tags": [
          "Inks"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {}
          }
        ],
        "x-required-permissions": [
          "inks:read"
        ]
      }
    },
    "/api/v1/inks/{inkId}": {
      "get": {
        "description": "Read an ink bottle",
        "operationId": "getInk",
        "parameters": [
          {
            "description": "Resolved bottle UUID.",
            "in": "path",
            "name": "inkId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "active": true,
                    "artist": null,
                    "batchNumber": "A42",
                    "brand": "Example",
                    "color": "black",
                    "dataSheet": null,
                    "expiredAt": null,
                    "expiredReason": null,
                    "expiresAt": null,
                    "id": "00000000-0000-4000-8000-000000000233",
                    "identifier": 12,
                    "isFlagged": false,
                    "isOpen": false,
                    "location": null,
                    "name": "Example bottle",
                    "notes": null,
                    "openedAt": null,
                    "retailer": null,
                    "version": "opaque-example-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "properties": {
                        "active": {
                          "description": "Recorded active state.",
                          "type": "boolean"
                        },
                        "artist": {
                          "anyOf": [
                            {
                              "properties": {
                                "id": {
                                  "description": "Stable record ID.",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Assigned artist or null for shared inventory."
                        },
                        "batchNumber": {
                          "description": "Manufacturer batch number.",
                          "type": "string"
                        },
                        "brand": {
                          "description": "Recorded manufacturer.",
                          "type": "string"
                        },
                        "color": {
                          "description": "Recorded ink colour.",
                          "type": "string"
                        },
                        "dataSheet": {
                          "anyOf": [
                            {
                              "properties": {
                                "id": {
                                  "description": "Stable record ID.",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe existing datasheet reference without file access."
                        },
                        "expiredAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Recorded expiration time."
                        },
                        "expiredReason": {
                          "description": "Recorded expiration reason.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Recorded label expiry."
                        },
                        "id": {
                          "description": "Database-generated record UUID.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "identifier": {
                          "description": "Printed numeric bottle identifier.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "isFlagged": {
                          "description": "Visible flagged batch match.",
                          "type": "boolean"
                        },
                        "isOpen": {
                          "description": "Recorded opening state.",
                          "type": "boolean"
                        },
                        "location": {
                          "anyOf": [
                            {
                              "properties": {
                                "id": {
                                  "description": "Stable record ID.",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Assigned location or null for shared inventory."
                        },
                        "name": {
                          "description": "Display name.",
                          "type": "string"
                        },
                        "notes": {
                          "description": "Permitted inventory notes.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "openedAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Recorded opening time."
                        },
                        "retailer": {
                          "anyOf": [
                            {
                              "properties": {
                                "id": {
                                  "description": "Stable record ID.",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Display name.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Safe existing retailer reference."
                        },
                        "version": {
                          "description": "Opaque persisted record version.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "identifier",
                        "name",
                        "brand",
                        "color",
                        "batchNumber",
                        "artist",
                        "location",
                        "active",
                        "isOpen",
                        "expiresAt",
                        "expiredAt",
                        "expiredReason",
                        "isFlagged",
                        "notes",
                        "openedAt",
                        "retailer",
                        "dataSheet",
                        "version"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read an ink bottle",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read an ink bottle",
        "tags": [
          "Inks"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "inkId": "00000000-0000-4000-8000-000000000233"
              }
            }
          }
        ],
        "x-required-permissions": [
          "inks:read"
        ]
      }
    },
    "/api/v1/ledger/transactions": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "list_ledger_transactions",
        "parameters": [
          {
            "description": "Finance tagIds.",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance bookingId.",
            "in": "query",
            "name": "bookingId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Finance from.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Finance to.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Finance locationIds.",
            "in": "query",
            "name": "locationIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance userIds.",
            "in": "query",
            "name": "userIds",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance roleIds.",
            "in": "query",
            "name": "roleIds",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admin",
                    "manager",
                    "reception",
                    "member"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "owner",
                      "admin",
                      "manager",
                      "reception",
                      "member"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance createdBy.",
            "in": "query",
            "name": "createdBy",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance offlinePaymentMethodIds.",
            "in": "query",
            "name": "offlinePaymentMethodIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance stripeAccountIds.",
            "in": "query",
            "name": "stripeAccountIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentSources.",
            "in": "query",
            "name": "paymentSources",
            "schema": {
              "anyOf": [
                {
                  "description": "Finance source.",
                  "enum": [
                    "ONLINE",
                    "OFFLINE"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Finance source.",
                    "enum": [
                      "ONLINE",
                      "OFFLINE"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentPurposes.",
            "in": "query",
            "name": "paymentPurposes",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "DEPOSIT",
                    "SERVICE_PAYMENT",
                    "OTHER"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "DEPOSIT",
                      "SERVICE_PAYMENT",
                      "OTHER"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentTypes.",
            "in": "query",
            "name": "paymentTypes",
            "schema": {
              "anyOf": [
                {
                  "description": "Finance type.",
                  "enum": [
                    "CHARGE",
                    "REFUND",
                    "DISPUTE",
                    "ADJUSTMENT",
                    "RECOGNITION"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Finance type.",
                    "enum": [
                      "CHARGE",
                      "REFUND",
                      "DISPUTE",
                      "ADJUSTMENT",
                      "RECOGNITION"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentStatuses.",
            "in": "query",
            "name": "paymentStatuses",
            "schema": {
              "anyOf": [
                {
                  "description": "Finance status.",
                  "enum": [
                    "RECORDED",
                    "VERIFIED",
                    "VOIDED"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Finance status.",
                    "enum": [
                      "RECORDED",
                      "VERIFIED",
                      "VOIDED"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Single status; intersects paymentStatuses when both are provided.",
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "RECORDED",
                "VERIFIED",
                "VOIDED"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search payment external references, matching the app table search.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "description": "Finance provider.",
            "in": "query",
            "name": "provider",
            "schema": {
              "enum": [
                "stripe",
                "vipps_mobilepay"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance currency.",
            "in": "query",
            "name": "currency",
            "schema": {
              "pattern": "^[A-Z]{3}$",
              "type": "string"
            }
          },
          {
            "description": "Date basis for the from/to range. service_date uses booking end, falling back to payment date. Default payment_date preserves existing list date semantics; the app may default to the studio's revenue basis.",
            "in": "query",
            "name": "recognitionMode",
            "schema": {
              "default": "payment_date",
              "enum": [
                "payment_date",
                "service_date"
              ],
              "type": "string"
            }
          },
          {
            "description": "date_desc matches the app table, newest selected-basis date first. id_asc is available for ID-ordered traversal.",
            "in": "query",
            "name": "sort",
            "schema": {
              "default": "date_desc",
              "enum": [
                "date_desc",
                "id_asc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Finance cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Finance data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "amountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "bookingId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance bookingId."
                          },
                          "bookingTags": {
                            "default": [],
                            "description": "Current tags of the associated booking; empty when there is no booking.",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "color": {
                                  "description": "Tag display color, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "id": {
                                  "description": "Studio tag ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Tag display name.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "capabilities": {
                            "additionalProperties": false,
                            "description": "Finance capabilities.",
                            "properties": {
                              "canEditMetadata": {
                                "description": "Finance canEditMetadata.",
                                "type": "boolean"
                              },
                              "canRefund": {
                                "description": "Finance canRefund.",
                                "type": "boolean"
                              },
                              "canVerify": {
                                "description": "Finance canVerify.",
                                "type": "boolean"
                              },
                              "canVoid": {
                                "description": "Finance canVoid.",
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "canEditMetadata",
                              "canVerify",
                              "canVoid",
                              "canRefund"
                            ],
                            "type": "object"
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "details": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "account": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "TatTool account reference, suitable for account filters; never provider credentials."
                                  },
                                  "booking": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "kind": {
                                            "description": "Finance kind.",
                                            "enum": [
                                              "BOOKING",
                                              "CONSULTATION"
                                            ],
                                            "type": "string"
                                          },
                                          "title": {
                                            "description": "Finance title.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title",
                                          "kind"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance booking."
                                  },
                                  "client": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "email": {
                                            "description": "Finance email.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "lastName": {
                                            "description": "Finance lastName.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "lastName",
                                          "email"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance client."
                                  },
                                  "createdAt": {
                                    "anyOf": [
                                      {
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance createdAt."
                                  },
                                  "createdByUserId": {
                                    "description": "Transaction creator; separate from the booking-creator list filter.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "externalReference": {
                                    "description": "Finance externalReference.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "grossAmountMinor": {
                                    "description": "Integer currency minor units.",
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "location": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance location."
                                  },
                                  "netAmountMinor": {
                                    "description": "Integer currency minor units.",
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "note": {
                                    "description": "Finance note.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "offlineMethod": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance offlineMethod."
                                  },
                                  "participant": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "email": {
                                            "description": "Finance email.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Finance id.",
                                            "type": "string"
                                          },
                                          "image": {
                                            "description": "Finance image.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "email",
                                          "image"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Ledger earner display record, matching app financial attribution."
                                  },
                                  "paymentRequestId": {
                                    "anyOf": [
                                      {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Internal TatTool payment request ID."
                                  },
                                  "platformAmountMinor": {
                                    "description": "Integer currency minor units.",
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "provider": {
                                    "description": "Finance provider.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "serviceDate": {
                                    "description": "Booking end time, or payment date for standalone transactions.",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "taxBehavior": {
                                    "anyOf": [
                                      {
                                        "enum": [
                                          "TAX_EXEMPT",
                                          "TAX_INCLUSIVE",
                                          "TAX_EXCLUSIVE"
                                        ],
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance taxBehavior."
                                  }
                                },
                                "required": [
                                  "grossAmountMinor",
                                  "platformAmountMinor",
                                  "netAmountMinor",
                                  "serviceDate",
                                  "createdAt",
                                  "externalReference",
                                  "paymentRequestId",
                                  "note",
                                  "taxBehavior",
                                  "provider",
                                  "account",
                                  "booking",
                                  "client",
                                  "participant",
                                  "location",
                                  "offlineMethod",
                                  "createdByUserId"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null,
                            "description": "App payment-table details. Null only for historical receipts created before this projection was available."
                          },
                          "id": {
                            "description": "Finance id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "paymentDate": {
                            "description": "Finance paymentDate.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "purpose": {
                            "description": "Finance purpose.",
                            "enum": [
                              "DEPOSIT",
                              "SERVICE_PAYMENT",
                              "OTHER"
                            ],
                            "type": "string"
                          },
                          "source": {
                            "description": "Finance source.",
                            "enum": [
                              "ONLINE",
                              "OFFLINE"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "description": "Finance status.",
                            "enum": [
                              "RECORDED",
                              "VERIFIED",
                              "VOIDED"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "description": "Finance type.",
                            "enum": [
                              "CHARGE",
                              "REFUND",
                              "DISPUTE",
                              "ADJUSTMENT",
                              "RECOGNITION"
                            ],
                            "type": "string"
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance verifiedAt."
                          },
                          "version": {
                            "description": "Finance version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "source",
                          "bookingId",
                          "type",
                          "status",
                          "purpose",
                          "currency",
                          "amountMinor",
                          "paymentDate",
                          "verifiedAt",
                          "version",
                          "capabilities"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Finance nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list ledger transactions",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {
                "from": "2030-01-01T00:00:00Z",
                "to": "2030-02-01T00:00:00Z"
              }
            }
          }
        ],
        "x-required-permissions": [
          "reports:read"
        ]
      }
    },
    "/api/v1/locations": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "list_locations",
        "parameters": [
          {
            "description": "Maximum results on this page.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque continuation cursor bound to the caller and filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Whether the record currently participates in the studio.",
            "in": "query",
            "name": "active",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "items": {
                        "properties": {
                          "active": {
                            "description": "Whether the record currently participates in the studio.",
                            "type": "boolean"
                          },
                          "id": {
                            "description": "Stable record ID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "active"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Continuation cursor, or null when the result is complete.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list locations",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "list",
            "request": {
              "query": {
                "limit": "50"
              }
            }
          }
        ],
        "x-required-permissions": [
          "organization:read"
        ]
      }
    },
    "/api/v1/members": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "list_members",
        "parameters": [
          {
            "description": "Maximum results on this page.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque continuation cursor bound to the caller and filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Whether the record currently participates in the studio.",
            "in": "query",
            "name": "active",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "items": {
                        "properties": {
                          "active": {
                            "description": "Whether the record currently participates in the studio.",
                            "type": "boolean"
                          },
                          "capabilities": {
                            "description": "Current participant capability labels.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "description": "Stable record ID.",
                            "type": "string"
                          },
                          "locationIds": {
                            "description": "Associated studio location IDs.",
                            "items": {
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "name": {
                            "description": "Display name.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "active",
                          "locationIds",
                          "capabilities"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Continuation cursor, or null when the result is complete.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list members",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "list",
            "request": {
              "query": {
                "limit": "50"
              }
            }
          }
        ],
        "x-required-permissions": [
          "organization:read"
        ]
      }
    },
    "/api/v1/message-dispatches/{dispatchId}": {
      "get": {
        "description": "Read known dispatch state; provider acceptance is not delivery.",
        "operationId": "getMessageDispatch",
        "parameters": [
          {
            "description": "Consent or message dispatchId.",
            "in": "path",
            "name": "dispatchId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "channel": "email",
                    "deliveredAt": null,
                    "dispatchId": "00000000-0000-4000-8000-000000000227",
                    "reason": null,
                    "sentAt": "2033-01-01T00:00:00Z",
                    "status": "sent",
                    "target": {
                      "id": "00000000-0000-4000-8000-000000000227",
                      "kind": "consent"
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Consent or message data.",
                      "properties": {
                        "channel": {
                          "description": "Consent or message channel.",
                          "enum": [
                            "email",
                            "sms"
                          ],
                          "type": "string"
                        },
                        "deliveredAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message deliveredAt."
                        },
                        "dispatchId": {
                          "description": "Consent or message dispatchId.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "enum": [
                                "BOUNCED",
                                "COMPLAINED",
                                "PROVIDER_FAILED"
                              ],
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message reason."
                        },
                        "sentAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message sentAt."
                        },
                        "status": {
                          "description": "Consent or message status.",
                          "enum": [
                            "queued",
                            "sent",
                            "delivered",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        },
                        "target": {
                          "anyOf": [
                            {
                              "properties": {
                                "id": {
                                  "description": "Consent or message id.",
                                  "type": "string"
                                },
                                "kind": {
                                  "description": "Consent or message kind.",
                                  "enum": [
                                    "consent",
                                    "payment_request",
                                    "flow",
                                    "studio_email"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "id"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message target."
                        }
                      },
                      "required": [
                        "dispatchId",
                        "channel",
                        "status",
                        "reason",
                        "target",
                        "sentAt",
                        "deliveredAt"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read known dispatch state; provider acceptance is not delivery.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read known dispatch state; provider acceptance is not delivery.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "dispatchId": "00000000-0000-4000-8000-000000000227"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "messages:read"
        ]
      }
    },
    "/api/v1/message-templates": {
      "get": {
        "description": "List reusable purpose-specific message templates; no dispatch.",
        "operationId": "listMessageTemplates",
        "parameters": [
          {
            "description": "Consent or message purpose.",
            "in": "query",
            "name": "purpose",
            "schema": {
              "enum": [
                "online_payment_created",
                "deposit_created",
                "consent_request_created",
                "flow_email_sent"
              ],
              "type": "string"
            }
          },
          {
            "description": "Consent or message channel.",
            "in": "query",
            "name": "channel",
            "schema": {
              "enum": [
                "email",
                "sms"
              ],
              "type": "string"
            }
          },
          {
            "description": "Consent or message limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Consent or message cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Consent or message data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "actionType": {
                            "description": "Consent or message actionType.",
                            "enum": [
                              "online_payment_created",
                              "deposit_created",
                              "consent_request_created",
                              "flow_email_sent"
                            ],
                            "type": "string"
                          },
                          "archivedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Consent or message archivedAt."
                          },
                          "body": {
                            "description": "Consent or message body.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Consent or message id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "isDefault": {
                            "description": "Consent or message isDefault.",
                            "type": "boolean"
                          },
                          "name": {
                            "description": "Consent or message name.",
                            "type": "string"
                          },
                          "status": {
                            "description": "Consent or message status.",
                            "enum": [
                              "draft",
                              "published"
                            ],
                            "type": "string"
                          },
                          "subject": {
                            "description": "Consent or message subject.",
                            "type": "string"
                          },
                          "url": {
                            "anyOf": [
                              {
                                "format": "uri",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                          },
                          "version": {
                            "description": "Consent or message version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "actionType",
                          "subject",
                          "body",
                          "status",
                          "isDefault",
                          "archivedAt",
                          "version"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Consent or message nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "List reusable purpose-specific message templates; no dispatch.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List reusable purpose-specific message templates; no dispatch.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "messages:read"
        ]
      }
    },
    "/api/v1/message-templates/{templateId}": {
      "get": {
        "description": "Read a reusable message template using existing template syntax.",
        "operationId": "getMessageTemplate",
        "parameters": [
          {
            "description": "Consent or message templateId.",
            "in": "path",
            "name": "templateId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "actionType": "consent_request_created",
                    "archivedAt": null,
                    "body": "{{consent_form_link}}",
                    "id": "00000000-0000-4000-8000-000000000228",
                    "isDefault": true,
                    "name": "Consent request",
                    "status": "published",
                    "subject": "Consent",
                    "version": "example-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Consent or message data.",
                      "properties": {
                        "actionType": {
                          "description": "Consent or message actionType.",
                          "enum": [
                            "online_payment_created",
                            "deposit_created",
                            "consent_request_created",
                            "flow_email_sent"
                          ],
                          "type": "string"
                        },
                        "archivedAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Consent or message archivedAt."
                        },
                        "body": {
                          "description": "Consent or message body.",
                          "type": "string"
                        },
                        "id": {
                          "description": "Consent or message id.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "isDefault": {
                          "description": "Consent or message isDefault.",
                          "type": "boolean"
                        },
                        "name": {
                          "description": "Consent or message name.",
                          "type": "string"
                        },
                        "status": {
                          "description": "Consent or message status.",
                          "enum": [
                            "draft",
                            "published"
                          ],
                          "type": "string"
                        },
                        "subject": {
                          "description": "Consent or message subject.",
                          "type": "string"
                        },
                        "url": {
                          "anyOf": [
                            {
                              "format": "uri",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
                        },
                        "version": {
                          "description": "Consent or message version.",
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "actionType",
                        "subject",
                        "body",
                        "status",
                        "isDefault",
                        "archivedAt",
                        "version"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read a reusable message template using existing template syntax.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read a reusable message template using existing template syntax.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "templateId": "00000000-0000-4000-8000-000000000227"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "messages:read"
        ]
      }
    },
    "/api/v1/offline-payment-methods": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "list_offline_payment_methods",
        "parameters": [
          {
            "description": "Finance limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Finance cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Finance active.",
            "in": "query",
            "name": "active",
            "schema": {
              "const": "true",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Finance data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "active": {
                            "description": "Finance active.",
                            "type": "boolean"
                          },
                          "id": {
                            "description": "Finance id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "name": {
                            "description": "Finance name.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "active"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Finance nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list offline payment methods",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/openapi.json": {
      "get": {
        "description": "Public OpenAPI 3.1 reference for the implemented routes in this release. This route does not consume a key allowance.",
        "operationId": "getOpenApi",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "info": {
                    "title": "TatTool external API",
                    "version": "1.0.0"
                  },
                  "openapi": "3.1.0",
                  "paths": {}
                },
                "schema": {
                  "additionalProperties": {},
                  "properties": {
                    "info": {
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "version"
                      ],
                      "type": "object"
                    },
                    "openapi": {
                      "const": "3.1.0",
                      "type": "string"
                    },
                    "paths": {
                      "additionalProperties": {},
                      "propertyNames": {
                        "type": "string"
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "openapi",
                    "info",
                    "paths"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Generated API release specification.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "summary": "Download the API release specification",
        "tags": [
          "Documentation"
        ]
      }
    },
    "/api/v1/operations/{operationId}": {
      "get": {
        "description": "Return the original safe result or pending/unknown/failed receipt. Requires the same user, credential and studio plus present grants and record authority for the originating mutation. Follow Retry-After for unresolved outcomes; do not create a new idempotency key.",
        "operationId": "getOperation",
        "parameters": [
          {
            "description": "Operation receipt ID returned by the mutation.",
            "in": "path",
            "name": "operationId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": null,
                  "operation": {
                    "id": "00000000-0000-4000-8000-000000000214",
                    "replayed": true,
                    "status": "unknown"
                  },
                  "retryAfterSeconds": 5
                },
                "schema": {
                  "properties": {
                    "data": {
                      "anyOf": [
                        {
                          "description": "The originating operation's validated safe DTO."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Safe domain result when completed; null for unresolved or failed operations."
                    },
                    "error": {
                      "description": "Safe failure details when relevant; never a raw exception.",
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "properties": {
                        "id": {
                          "description": "Durable operation receipt ID; use it for status lookup.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "replayed": {
                          "description": "Whether this is an existing logical request or status lookup.",
                          "type": "boolean"
                        },
                        "status": {
                          "description": "Pending is running; unknown needs confirmation; failed is terminal; completed contains the result.",
                          "enum": [
                            "pending",
                            "completed",
                            "failed",
                            "unknown"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "replayed"
                      ],
                      "type": "object"
                    },
                    "retryAfterSeconds": {
                      "description": "Wait before checking the same unresolved operation; do not generate another idempotency key.",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "operation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized original outcome; pending/unknown needs further confirmation.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Check a durable mutation outcome",
        "tags": [
          "Operations"
        ],
        "x-request-examples": [
          {
            "name": "check-original-operation",
            "request": {
              "path": {
                "operationId": "00000000-0000-4000-8000-000000000214"
              }
            }
          }
        ],
        "x-required-permissions": []
      }
    },
    "/api/v1/organization": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "get_organization",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "clientPolicy": {
                      "requiresEmail": true
                    },
                    "id": "studio-example",
                    "name": "Example studio",
                    "openingHours": null,
                    "timeZone": "Europe/Copenhagen"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "properties": {
                        "clientPolicy": {
                          "description": "clientPolicy",
                          "properties": {
                            "requiresEmail": {
                              "description": "Effective studio policy for creating clients or clearing an existing email; obtain an email before writing when true.",
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "requiresEmail"
                          ],
                          "type": "object"
                        },
                        "id": {
                          "description": "Stable record ID.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Display name.",
                          "type": "string"
                        },
                        "openingHours": {
                          "anyOf": [
                            {
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "properties": {
                                      "close": {
                                        "description": "Local closing time in HH:mm.",
                                        "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                                        "type": "string"
                                      },
                                      "on": {
                                        "description": "Whether this weekday is open.",
                                        "type": "boolean"
                                      },
                                      "open": {
                                        "description": "Local opening time in HH:mm.",
                                        "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "on"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "propertyNames": {
                                "type": "string"
                              },
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Configured studio working hours, or null if missing."
                        },
                        "timeZone": {
                          "description": "IANA time zone.",
                          "maxLength": 50,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "timeZone",
                        "openingHours",
                        "clientPolicy"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get organization",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "selected",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "organization:read"
        ]
      }
    },
    "/api/v1/payment-requests": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "list_payment_requests",
        "parameters": [
          {
            "description": "Finance tagIds.",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance bookingId.",
            "in": "query",
            "name": "bookingId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Finance from.",
            "in": "query",
            "name": "from",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Finance to.",
            "in": "query",
            "name": "to",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Finance status.",
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "draft",
                "pending",
                "sent",
                "partially_fulfilled",
                "fulfilled",
                "canceled",
                "expired"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Finance cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Finance data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "bookingId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance bookingId."
                          },
                          "capabilities": {
                            "additionalProperties": false,
                            "description": "Finance capabilities.",
                            "properties": {
                              "canCancel": {
                                "description": "Finance canCancel.",
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "canCancel"
                            ],
                            "type": "object"
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance createdAt."
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "deliveryReadiness": {
                            "description": "Finance deliveryReadiness.",
                            "enum": [
                              "ready",
                              "missing_client",
                              "missing_contact",
                              "closed"
                            ],
                            "type": "string"
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance expiresAt."
                          },
                          "id": {
                            "description": "Finance id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "purpose": {
                            "description": "Finance purpose.",
                            "enum": [
                              "DEPOSIT",
                              "SERVICE_PAYMENT"
                            ],
                            "type": "string"
                          },
                          "receivedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "refundedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "remainingAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "requestedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "status": {
                            "description": "Finance status.",
                            "enum": [
                              "draft",
                              "pending",
                              "sent",
                              "partially_fulfilled",
                              "fulfilled",
                              "canceled",
                              "expired"
                            ],
                            "type": "string"
                          },
                          "version": {
                            "description": "Finance version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "bookingId",
                          "currency",
                          "purpose",
                          "requestedAmountMinor",
                          "receivedAmountMinor",
                          "refundedAmountMinor",
                          "remainingAmountMinor",
                          "status",
                          "createdAt",
                          "expiresAt",
                          "version",
                          "deliveryReadiness",
                          "capabilities"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Finance nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list payment requests",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {
                "bookingId": "00000000-0000-4000-8000-000000000226"
              }
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/payment-requests/{id}": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "get_payment_request",
        "parameters": [
          {
            "description": "Finance id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "bookingId": "00000000-0000-4000-8000-000000000226",
                    "capabilities": {
                      "canCancel": true
                    },
                    "createdAt": null,
                    "currency": "DKK",
                    "deliveryReadiness": "ready",
                    "expiresAt": null,
                    "id": "00000000-0000-4000-8000-000000000226",
                    "purpose": "DEPOSIT",
                    "receivedAmountMinor": 0,
                    "refundedAmountMinor": 0,
                    "remainingAmountMinor": 10000,
                    "requestedAmountMinor": 10000,
                    "status": "pending",
                    "version": "version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Finance data.",
                      "properties": {
                        "bookingId": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Finance bookingId."
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "description": "Finance capabilities.",
                          "properties": {
                            "canCancel": {
                              "description": "Finance canCancel.",
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "canCancel"
                          ],
                          "type": "object"
                        },
                        "createdAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Finance createdAt."
                        },
                        "currency": {
                          "description": "Uppercase currency code; currencies are never combined.",
                          "pattern": "^[A-Z]{3}$",
                          "type": "string"
                        },
                        "deliveryReadiness": {
                          "description": "Finance deliveryReadiness.",
                          "enum": [
                            "ready",
                            "missing_client",
                            "missing_contact",
                            "closed"
                          ],
                          "type": "string"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Finance expiresAt."
                        },
                        "id": {
                          "description": "Finance id.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "purpose": {
                          "description": "Finance purpose.",
                          "enum": [
                            "DEPOSIT",
                            "SERVICE_PAYMENT"
                          ],
                          "type": "string"
                        },
                        "receivedAmountMinor": {
                          "description": "Integer currency minor units.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "refundedAmountMinor": {
                          "description": "Integer currency minor units.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "remainingAmountMinor": {
                          "description": "Integer currency minor units.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "requestedAmountMinor": {
                          "description": "Integer currency minor units.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "status": {
                          "description": "Finance status.",
                          "enum": [
                            "draft",
                            "pending",
                            "sent",
                            "partially_fulfilled",
                            "fulfilled",
                            "canceled",
                            "expired"
                          ],
                          "type": "string"
                        },
                        "version": {
                          "description": "Finance version.",
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "bookingId",
                        "currency",
                        "purpose",
                        "requestedAmountMinor",
                        "receivedAmountMinor",
                        "refundedAmountMinor",
                        "remainingAmountMinor",
                        "status",
                        "createdAt",
                        "expiresAt",
                        "version",
                        "deliveryReadiness",
                        "capabilities"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get payment request",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "id": "00000000-0000-4000-8000-000000000226"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/payment-requests/{paymentRequestId}/messaging": {
      "get": {
        "description": "Read allowed request channels and safe dispatch state; no payment collection.",
        "operationId": "getPaymentRequestMessagingState",
        "parameters": [
          {
            "description": "Consent or message paymentRequestId.",
            "in": "path",
            "name": "paymentRequestId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "allowedChannels": [
                      "link_qr"
                    ],
                    "canMessage": true,
                    "dispatches": [],
                    "duplicateDispatches": {
                      "email": null,
                      "sms": null
                    },
                    "paymentRequestId": "00000000-0000-4000-8000-000000000227",
                    "recipient": {
                      "email": null,
                      "phone": null
                    },
                    "renderingReady": false
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Consent or message data.",
                      "properties": {
                        "allowedChannels": {
                          "description": "Consent or message allowedChannels.",
                          "items": {
                            "enum": [
                              "email",
                              "sms",
                              "link_qr"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "canMessage": {
                          "description": "Consent or message canMessage.",
                          "type": "boolean"
                        },
                        "dispatches": {
                          "description": "Consent or message dispatches.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "channel": {
                                "description": "Consent or message channel.",
                                "enum": [
                                  "email",
                                  "sms"
                                ],
                                "type": "string"
                              },
                              "deliveredAt": {
                                "anyOf": [
                                  {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Consent or message deliveredAt."
                              },
                              "dispatchId": {
                                "description": "Consent or message dispatchId.",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "reason": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "BOUNCED",
                                      "COMPLAINED",
                                      "PROVIDER_FAILED"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Consent or message reason."
                              },
                              "sentAt": {
                                "anyOf": [
                                  {
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Consent or message sentAt."
                              },
                              "status": {
                                "description": "Consent or message status.",
                                "enum": [
                                  "queued",
                                  "sent",
                                  "delivered",
                                  "failed",
                                  "unknown"
                                ],
                                "type": "string"
                              },
                              "target": {
                                "anyOf": [
                                  {
                                    "properties": {
                                      "id": {
                                        "description": "Consent or message id.",
                                        "type": "string"
                                      },
                                      "kind": {
                                        "description": "Consent or message kind.",
                                        "enum": [
                                          "consent",
                                          "payment_request",
                                          "flow",
                                          "studio_email"
                                        ],
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "id"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Consent or message target."
                              }
                            },
                            "required": [
                              "dispatchId",
                              "channel",
                              "status",
                              "reason",
                              "target",
                              "sentAt",
                              "deliveredAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "duplicateDispatches": {
                          "description": "Consent or message duplicateDispatches.",
                          "properties": {
                            "email": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Consent or message email."
                            },
                            "sms": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Consent or message sms."
                            }
                          },
                          "required": [
                            "email",
                            "sms"
                          ],
                          "type": "object"
                        },
                        "paymentRequestId": {
                          "description": "Consent or message paymentRequestId.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "recipient": {
                          "description": "Consent or message recipient.",
                          "properties": {
                            "email": {
                              "description": "Consent or message email.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "description": "Consent or message phone.",
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "email",
                            "phone"
                          ],
                          "type": "object"
                        },
                        "renderingReady": {
                          "description": "Consent or message renderingReady.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "paymentRequestId",
                        "canMessage",
                        "allowedChannels",
                        "recipient",
                        "dispatches",
                        "duplicateDispatches",
                        "renderingReady"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Read allowed request channels and safe dispatch state; no payment collection.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read allowed request channels and safe dispatch state; no payment collection.",
        "tags": [
          "Consent and messages"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "paymentRequestId": "00000000-0000-4000-8000-000000000227"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "messages:read"
        ]
      }
    },
    "/api/v1/payments": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "list_payments",
        "parameters": [
          {
            "description": "Finance tagIds.",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance bookingId.",
            "in": "query",
            "name": "bookingId",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Finance from.",
            "in": "query",
            "name": "from",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Finance to.",
            "in": "query",
            "name": "to",
            "schema": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          {
            "description": "Finance locationIds.",
            "in": "query",
            "name": "locationIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance userIds.",
            "in": "query",
            "name": "userIds",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance roleIds.",
            "in": "query",
            "name": "roleIds",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admin",
                    "manager",
                    "reception",
                    "member"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "owner",
                      "admin",
                      "manager",
                      "reception",
                      "member"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance createdBy.",
            "in": "query",
            "name": "createdBy",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance offlinePaymentMethodIds.",
            "in": "query",
            "name": "offlinePaymentMethodIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance stripeAccountIds.",
            "in": "query",
            "name": "stripeAccountIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentSources.",
            "in": "query",
            "name": "paymentSources",
            "schema": {
              "anyOf": [
                {
                  "description": "Finance source.",
                  "enum": [
                    "ONLINE",
                    "OFFLINE"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Finance source.",
                    "enum": [
                      "ONLINE",
                      "OFFLINE"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentPurposes.",
            "in": "query",
            "name": "paymentPurposes",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "DEPOSIT",
                    "SERVICE_PAYMENT",
                    "OTHER"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "DEPOSIT",
                      "SERVICE_PAYMENT",
                      "OTHER"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentTypes.",
            "in": "query",
            "name": "paymentTypes",
            "schema": {
              "anyOf": [
                {
                  "description": "Finance type.",
                  "enum": [
                    "CHARGE",
                    "REFUND",
                    "DISPUTE",
                    "ADJUSTMENT",
                    "RECOGNITION"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Finance type.",
                    "enum": [
                      "CHARGE",
                      "REFUND",
                      "DISPUTE",
                      "ADJUSTMENT",
                      "RECOGNITION"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance paymentStatuses.",
            "in": "query",
            "name": "paymentStatuses",
            "schema": {
              "anyOf": [
                {
                  "description": "Finance status.",
                  "enum": [
                    "RECORDED",
                    "VERIFIED",
                    "VOIDED"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "description": "Finance status.",
                    "enum": [
                      "RECORDED",
                      "VERIFIED",
                      "VOIDED"
                    ],
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Single status; intersects paymentStatuses when both are provided.",
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "RECORDED",
                "VERIFIED",
                "VOIDED"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search payment external references, matching the app table search.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "description": "Finance provider.",
            "in": "query",
            "name": "provider",
            "schema": {
              "enum": [
                "stripe",
                "vipps_mobilepay"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance currency.",
            "in": "query",
            "name": "currency",
            "schema": {
              "pattern": "^[A-Z]{3}$",
              "type": "string"
            }
          },
          {
            "description": "Date basis for the from/to range. service_date uses booking end, falling back to payment date. Default payment_date preserves existing list date semantics; the app may default to the studio's revenue basis.",
            "in": "query",
            "name": "recognitionMode",
            "schema": {
              "default": "payment_date",
              "enum": [
                "payment_date",
                "service_date"
              ],
              "type": "string"
            }
          },
          {
            "description": "date_desc matches the app table, newest selected-basis date first. id_asc is available for ID-ordered traversal.",
            "in": "query",
            "name": "sort",
            "schema": {
              "default": "date_desc",
              "enum": [
                "date_desc",
                "id_asc"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Finance cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Finance data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "amountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "bookingId": {
                            "anyOf": [
                              {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance bookingId."
                          },
                          "bookingTags": {
                            "default": [],
                            "description": "Current tags of the associated booking; empty when there is no booking.",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "color": {
                                  "description": "Tag display color, or null.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "id": {
                                  "description": "Studio tag ID.",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                "name": {
                                  "description": "Tag display name.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "color"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "capabilities": {
                            "additionalProperties": false,
                            "description": "Finance capabilities.",
                            "properties": {
                              "canEditMetadata": {
                                "description": "Finance canEditMetadata.",
                                "type": "boolean"
                              },
                              "canRefund": {
                                "description": "Finance canRefund.",
                                "type": "boolean"
                              },
                              "canVerify": {
                                "description": "Finance canVerify.",
                                "type": "boolean"
                              },
                              "canVoid": {
                                "description": "Finance canVoid.",
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "canEditMetadata",
                              "canVerify",
                              "canVoid",
                              "canRefund"
                            ],
                            "type": "object"
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "details": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "account": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "TatTool account reference, suitable for account filters; never provider credentials."
                                  },
                                  "booking": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "kind": {
                                            "description": "Finance kind.",
                                            "enum": [
                                              "BOOKING",
                                              "CONSULTATION"
                                            ],
                                            "type": "string"
                                          },
                                          "title": {
                                            "description": "Finance title.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "title",
                                          "kind"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance booking."
                                  },
                                  "client": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "email": {
                                            "description": "Finance email.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "lastName": {
                                            "description": "Finance lastName.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "lastName",
                                          "email"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance client."
                                  },
                                  "createdAt": {
                                    "anyOf": [
                                      {
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance createdAt."
                                  },
                                  "createdByUserId": {
                                    "description": "Transaction creator; separate from the booking-creator list filter.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "externalReference": {
                                    "description": "Finance externalReference.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "grossAmountMinor": {
                                    "description": "Integer currency minor units.",
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "location": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance location."
                                  },
                                  "netAmountMinor": {
                                    "description": "Integer currency minor units.",
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "note": {
                                    "description": "Finance note.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "offlineMethod": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "id": {
                                            "description": "Finance id.",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                            "type": "string"
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance offlineMethod."
                                  },
                                  "participant": {
                                    "anyOf": [
                                      {
                                        "properties": {
                                          "email": {
                                            "description": "Finance email.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "id": {
                                            "description": "Finance id.",
                                            "type": "string"
                                          },
                                          "image": {
                                            "description": "Finance image.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "description": "Finance name.",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "name",
                                          "email",
                                          "image"
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Ledger earner display record, matching app financial attribution."
                                  },
                                  "paymentRequestId": {
                                    "anyOf": [
                                      {
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Internal TatTool payment request ID."
                                  },
                                  "platformAmountMinor": {
                                    "description": "Integer currency minor units.",
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  "provider": {
                                    "description": "Finance provider.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "serviceDate": {
                                    "description": "Booking end time, or payment date for standalone transactions.",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                    "type": "string"
                                  },
                                  "taxBehavior": {
                                    "anyOf": [
                                      {
                                        "enum": [
                                          "TAX_EXEMPT",
                                          "TAX_INCLUSIVE",
                                          "TAX_EXCLUSIVE"
                                        ],
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Finance taxBehavior."
                                  }
                                },
                                "required": [
                                  "grossAmountMinor",
                                  "platformAmountMinor",
                                  "netAmountMinor",
                                  "serviceDate",
                                  "createdAt",
                                  "externalReference",
                                  "paymentRequestId",
                                  "note",
                                  "taxBehavior",
                                  "provider",
                                  "account",
                                  "booking",
                                  "client",
                                  "participant",
                                  "location",
                                  "offlineMethod",
                                  "createdByUserId"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null,
                            "description": "App payment-table details. Null only for historical receipts created before this projection was available."
                          },
                          "id": {
                            "description": "Finance id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "paymentDate": {
                            "description": "Finance paymentDate.",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "type": "string"
                          },
                          "purpose": {
                            "description": "Finance purpose.",
                            "enum": [
                              "DEPOSIT",
                              "SERVICE_PAYMENT",
                              "OTHER"
                            ],
                            "type": "string"
                          },
                          "source": {
                            "description": "Finance source.",
                            "enum": [
                              "ONLINE",
                              "OFFLINE"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "description": "Finance status.",
                            "enum": [
                              "RECORDED",
                              "VERIFIED",
                              "VOIDED"
                            ],
                            "type": "string"
                          },
                          "type": {
                            "description": "Finance type.",
                            "enum": [
                              "CHARGE",
                              "REFUND",
                              "DISPUTE",
                              "ADJUSTMENT",
                              "RECOGNITION"
                            ],
                            "type": "string"
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Finance verifiedAt."
                          },
                          "version": {
                            "description": "Finance version.",
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "source",
                          "bookingId",
                          "type",
                          "status",
                          "purpose",
                          "currency",
                          "amountMinor",
                          "paymentDate",
                          "verifiedAt",
                          "version",
                          "capabilities"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Finance nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list payments",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {
                "bookingId": "00000000-0000-4000-8000-000000000226"
              }
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/payments/{id}": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "get_payment",
        "parameters": [
          {
            "description": "Finance id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Finance source.",
            "in": "query",
            "name": "source",
            "required": true,
            "schema": {
              "enum": [
                "ONLINE",
                "OFFLINE"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amountMinor": 10000,
                    "bookingId": "00000000-0000-4000-8000-000000000226",
                    "capabilities": {
                      "canEditMetadata": true,
                      "canRefund": false,
                      "canVerify": false,
                      "canVoid": false
                    },
                    "currency": "DKK",
                    "id": "00000000-0000-4000-8000-000000000226",
                    "paymentDate": "2030-01-01T12:00:00Z",
                    "purpose": "SERVICE_PAYMENT",
                    "source": "OFFLINE",
                    "status": "RECORDED",
                    "type": "CHARGE",
                    "verifiedAt": null,
                    "version": "version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Finance data.",
                      "properties": {
                        "amountMinor": {
                          "description": "Integer currency minor units.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "bookingId": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Finance bookingId."
                        },
                        "bookingTags": {
                          "default": [],
                          "description": "Current tags of the associated booking; empty when there is no booking.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "color": {
                                "description": "Tag display color, or null.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "id": {
                                "description": "Studio tag ID.",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "name": {
                                "description": "Tag display name.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "color"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "capabilities": {
                          "additionalProperties": false,
                          "description": "Finance capabilities.",
                          "properties": {
                            "canEditMetadata": {
                              "description": "Finance canEditMetadata.",
                              "type": "boolean"
                            },
                            "canRefund": {
                              "description": "Finance canRefund.",
                              "type": "boolean"
                            },
                            "canVerify": {
                              "description": "Finance canVerify.",
                              "type": "boolean"
                            },
                            "canVoid": {
                              "description": "Finance canVoid.",
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "canEditMetadata",
                            "canVerify",
                            "canVoid",
                            "canRefund"
                          ],
                          "type": "object"
                        },
                        "currency": {
                          "description": "Uppercase currency code; currencies are never combined.",
                          "pattern": "^[A-Z]{3}$",
                          "type": "string"
                        },
                        "details": {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "account": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "id": {
                                          "description": "Finance id.",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        "name": {
                                          "description": "Finance name.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "TatTool account reference, suitable for account filters; never provider credentials."
                                },
                                "booking": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "id": {
                                          "description": "Finance id.",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        "kind": {
                                          "description": "Finance kind.",
                                          "enum": [
                                            "BOOKING",
                                            "CONSULTATION"
                                          ],
                                          "type": "string"
                                        },
                                        "title": {
                                          "description": "Finance title.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "title",
                                        "kind"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Finance booking."
                                },
                                "client": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "email": {
                                          "description": "Finance email.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "id": {
                                          "description": "Finance id.",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        "lastName": {
                                          "description": "Finance lastName.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Finance name.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name",
                                        "lastName",
                                        "email"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Finance client."
                                },
                                "createdAt": {
                                  "anyOf": [
                                    {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Finance createdAt."
                                },
                                "createdByUserId": {
                                  "description": "Transaction creator; separate from the booking-creator list filter.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "externalReference": {
                                  "description": "Finance externalReference.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "grossAmountMinor": {
                                  "description": "Integer currency minor units.",
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "id": {
                                          "description": "Finance id.",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        "name": {
                                          "description": "Finance name.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Finance location."
                                },
                                "netAmountMinor": {
                                  "description": "Integer currency minor units.",
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "note": {
                                  "description": "Finance note.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "offlineMethod": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "id": {
                                          "description": "Finance id.",
                                          "format": "uuid",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                          "type": "string"
                                        },
                                        "name": {
                                          "description": "Finance name.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Finance offlineMethod."
                                },
                                "participant": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "email": {
                                          "description": "Finance email.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "id": {
                                          "description": "Finance id.",
                                          "type": "string"
                                        },
                                        "image": {
                                          "description": "Finance image.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "name": {
                                          "description": "Finance name.",
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "name",
                                        "email",
                                        "image"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Ledger earner display record, matching app financial attribution."
                                },
                                "paymentRequestId": {
                                  "anyOf": [
                                    {
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Internal TatTool payment request ID."
                                },
                                "platformAmountMinor": {
                                  "description": "Integer currency minor units.",
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "provider": {
                                  "description": "Finance provider.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "serviceDate": {
                                  "description": "Booking end time, or payment date for standalone transactions.",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                  "type": "string"
                                },
                                "taxBehavior": {
                                  "anyOf": [
                                    {
                                      "enum": [
                                        "TAX_EXEMPT",
                                        "TAX_INCLUSIVE",
                                        "TAX_EXCLUSIVE"
                                      ],
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Finance taxBehavior."
                                }
                              },
                              "required": [
                                "grossAmountMinor",
                                "platformAmountMinor",
                                "netAmountMinor",
                                "serviceDate",
                                "createdAt",
                                "externalReference",
                                "paymentRequestId",
                                "note",
                                "taxBehavior",
                                "provider",
                                "account",
                                "booking",
                                "client",
                                "participant",
                                "location",
                                "offlineMethod",
                                "createdByUserId"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null,
                          "description": "App payment-table details. Null only for historical receipts created before this projection was available."
                        },
                        "id": {
                          "description": "Finance id.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "paymentDate": {
                          "description": "Finance paymentDate.",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                          "type": "string"
                        },
                        "purpose": {
                          "description": "Finance purpose.",
                          "enum": [
                            "DEPOSIT",
                            "SERVICE_PAYMENT",
                            "OTHER"
                          ],
                          "type": "string"
                        },
                        "source": {
                          "description": "Finance source.",
                          "enum": [
                            "ONLINE",
                            "OFFLINE"
                          ],
                          "type": "string"
                        },
                        "status": {
                          "description": "Finance status.",
                          "enum": [
                            "RECORDED",
                            "VERIFIED",
                            "VOIDED"
                          ],
                          "type": "string"
                        },
                        "type": {
                          "description": "Finance type.",
                          "enum": [
                            "CHARGE",
                            "REFUND",
                            "DISPUTE",
                            "ADJUSTMENT",
                            "RECOGNITION"
                          ],
                          "type": "string"
                        },
                        "verifiedAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Finance verifiedAt."
                        },
                        "version": {
                          "description": "Finance version.",
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "source",
                        "bookingId",
                        "type",
                        "status",
                        "purpose",
                        "currency",
                        "amountMinor",
                        "paymentDate",
                        "verifiedAt",
                        "version",
                        "capabilities"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get payment",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "id": "00000000-0000-4000-8000-000000000226"
              },
              "query": {
                "source": "OFFLINE"
              }
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/receiving-accounts": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "list_receiving_accounts",
        "parameters": [
          {
            "description": "Finance limit.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Finance cursor.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Finance data.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "active": {
                            "description": "Finance active.",
                            "type": "boolean"
                          },
                          "id": {
                            "description": "Finance id.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "name": {
                            "description": "Finance name.",
                            "type": "string"
                          },
                          "provider": {
                            "description": "Finance provider.",
                            "enum": [
                              "stripe",
                              "vipps_mobilepay"
                            ],
                            "type": "string"
                          },
                          "ready": {
                            "description": "Finance ready.",
                            "type": "boolean"
                          },
                          "supportedCurrencies": {
                            "description": "Finance supportedCurrencies.",
                            "items": {
                              "description": "Uppercase currency code; currencies are never combined.",
                              "pattern": "^[A-Z]{3}$",
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "provider",
                          "active",
                          "supportedCurrencies",
                          "ready"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Finance nextCursor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list receiving accounts",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/refunds/{id}": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "get_refund_status",
        "parameters": [
          {
            "description": "Finance id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amountMinor": 100,
                    "currency": "DKK",
                    "payment": {
                      "id": "00000000-0000-4000-8000-000000000226",
                      "source": "ONLINE"
                    },
                    "refundOperationId": "00000000-0000-4000-8000-000000000226",
                    "status": "pending"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "Finance data.",
                      "properties": {
                        "amountMinor": {
                          "description": "Integer currency minor units.",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        "currency": {
                          "description": "Uppercase currency code; currencies are never combined.",
                          "pattern": "^[A-Z]{3}$",
                          "type": "string"
                        },
                        "payment": {
                          "additionalProperties": false,
                          "description": "Finance payment.",
                          "properties": {
                            "id": {
                              "description": "Finance id.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "source": {
                              "description": "Finance source.",
                              "enum": [
                                "ONLINE",
                                "OFFLINE"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "source",
                            "id"
                          ],
                          "type": "object"
                        },
                        "refundOperationId": {
                          "description": "Finance refundOperationId.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "status": {
                          "description": "Finance status.",
                          "enum": [
                            "pending",
                            "succeeded",
                            "failed"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "refundOperationId",
                        "payment",
                        "amountMinor",
                        "currency",
                        "status"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get refund status",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "id": "00000000-0000-4000-8000-000000000226"
              },
              "query": {}
            }
          }
        ],
        "x-required-permissions": [
          "payments:read"
        ]
      }
    },
    "/api/v1/reports/projected-revenue": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "get_projected_revenue",
        "parameters": [
          {
            "description": "Finance fromDate.",
            "in": "query",
            "name": "fromDate",
            "required": true,
            "schema": {
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "type": "string"
            }
          },
          {
            "description": "Finance toDateExclusive.",
            "in": "query",
            "name": "toDateExclusive",
            "required": true,
            "schema": {
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "type": "string"
            }
          },
          {
            "description": "Finance tagIds.",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance roleIds.",
            "in": "query",
            "name": "roleIds",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admin",
                    "manager",
                    "reception",
                    "member"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "owner",
                      "admin",
                      "manager",
                      "reception",
                      "member"
                    ],
                    "type": "string"
                  },
                  "maxItems": 5,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance createdByIds.",
            "in": "query",
            "name": "createdByIds",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance artistIds.",
            "in": "query",
            "name": "artistIds",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance locationIds.",
            "in": "query",
            "name": "locationIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance currency.",
            "in": "query",
            "name": "currency",
            "schema": {
              "pattern": "^[A-Z]{3}$",
              "type": "string"
            }
          },
          {
            "description": "Finance groupBy.",
            "in": "query",
            "name": "groupBy",
            "schema": {
              "default": "none",
              "enum": [
                "none",
                "day",
                "week",
                "month",
                "artist",
                "location"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "assumptions": [],
                  "basis": "booking_start_date",
                  "breakdown": [],
                  "coverage": {
                    "unknownCurrencyCount": 0,
                    "visibility": "organization"
                  },
                  "period": {
                    "fromDate": "2030-01-01",
                    "toDateExclusive": "2030-02-01"
                  },
                  "timeZone": "UTC",
                  "totalsByCurrency": [],
                  "unknowns": {
                    "pricedBookingCount": 0,
                    "totalBookingCount": 0,
                    "unpricedBookingCount": 0
                  }
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "assumptions": {
                      "description": "Finance assumptions.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "basis": {
                      "const": "booking_start_date",
                      "description": "Finance basis.",
                      "type": "string"
                    },
                    "breakdown": {
                      "description": "Finance breakdown.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "bookedValueMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "key": {
                            "description": "Finance key.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pricedBookingCount": {
                            "description": "Finance pricedBookingCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "totalBookingCount": {
                            "description": "Finance totalBookingCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "unpricedBookingCount": {
                            "description": "Finance unpricedBookingCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "key",
                          "currency",
                          "bookedValueMinor",
                          "pricedBookingCount",
                          "unpricedBookingCount",
                          "totalBookingCount"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "coverage": {
                      "additionalProperties": false,
                      "description": "Finance coverage.",
                      "properties": {
                        "unknownCurrencyCount": {
                          "description": "Finance unknownCurrencyCount.",
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "visibility": {
                          "description": "Finance visibility.",
                          "enum": [
                            "organization",
                            "own_bookings"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "visibility",
                        "unknownCurrencyCount"
                      ],
                      "type": "object"
                    },
                    "period": {
                      "additionalProperties": false,
                      "description": "Finance period.",
                      "properties": {
                        "fromDate": {
                          "description": "Finance fromDate.",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "type": "string"
                        },
                        "toDateExclusive": {
                          "description": "Finance toDateExclusive.",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "fromDate",
                        "toDateExclusive"
                      ],
                      "type": "object"
                    },
                    "timeZone": {
                      "description": "Finance timeZone.",
                      "type": "string"
                    },
                    "totalsByCurrency": {
                      "description": "Finance totalsByCurrency.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "bookedValueMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "pricedBookingCount": {
                            "description": "Finance pricedBookingCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "totalBookingCount": {
                            "description": "Finance totalBookingCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "unpricedBookingCount": {
                            "description": "Finance unpricedBookingCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "currency",
                          "bookedValueMinor",
                          "pricedBookingCount",
                          "unpricedBookingCount",
                          "totalBookingCount"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "unknowns": {
                      "additionalProperties": false,
                      "description": "Finance unknowns.",
                      "properties": {
                        "pricedBookingCount": {
                          "description": "Finance pricedBookingCount.",
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "totalBookingCount": {
                          "description": "Finance totalBookingCount.",
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "unpricedBookingCount": {
                          "description": "Finance unpricedBookingCount.",
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "totalBookingCount",
                        "pricedBookingCount",
                        "unpricedBookingCount"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "period",
                    "timeZone",
                    "assumptions",
                    "coverage",
                    "basis",
                    "totalsByCurrency",
                    "breakdown",
                    "unknowns"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get projected revenue",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {
                "fromDate": "2030-01-01",
                "toDateExclusive": "2030-02-01"
              }
            }
          }
        ],
        "x-required-permissions": [
          "reports:read"
        ]
      }
    },
    "/api/v1/reports/revenue": {
      "get": {
        "description": "Authorized finance read; integer minor units and safe projections only.",
        "operationId": "get_revenue_report",
        "parameters": [
          {
            "description": "Finance fromDate.",
            "in": "query",
            "name": "fromDate",
            "required": true,
            "schema": {
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "type": "string"
            }
          },
          {
            "description": "Finance toDateExclusive.",
            "in": "query",
            "name": "toDateExclusive",
            "required": true,
            "schema": {
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "type": "string"
            }
          },
          {
            "description": "Finance tagIds.",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance roleIds.",
            "in": "query",
            "name": "roleIds",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admin",
                    "manager",
                    "reception",
                    "member"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "owner",
                      "admin",
                      "manager",
                      "reception",
                      "member"
                    ],
                    "type": "string"
                  },
                  "maxItems": 5,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance createdByIds.",
            "in": "query",
            "name": "createdByIds",
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance artistIds.",
            "in": "query",
            "name": "artistIds",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance locationIds.",
            "in": "query",
            "name": "locationIds",
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                {
                  "items": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance currency.",
            "in": "query",
            "name": "currency",
            "schema": {
              "pattern": "^[A-Z]{3}$",
              "type": "string"
            }
          },
          {
            "description": "Finance groupBy.",
            "in": "query",
            "name": "groupBy",
            "schema": {
              "default": "none",
              "enum": [
                "none",
                "day",
                "week",
                "month",
                "artist",
                "location"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance basis.",
            "in": "query",
            "name": "basis",
            "schema": {
              "enum": [
                "payment_date",
                "service_date"
              ],
              "type": "string"
            }
          },
          {
            "description": "Finance paymentStatuses.",
            "in": "query",
            "name": "paymentStatuses",
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "RECORDED",
                    "VERIFIED"
                  ],
                  "type": "string"
                },
                {
                  "items": {
                    "enum": [
                      "RECORDED",
                      "VERIFIED"
                    ],
                    "type": "string"
                  },
                  "maxItems": 2,
                  "minItems": 1,
                  "type": "array"
                }
              ]
            }
          },
          {
            "description": "Finance comparisonFromDate.",
            "in": "query",
            "name": "comparisonFromDate",
            "schema": {
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "type": "string"
            }
          },
          {
            "description": "Finance comparisonToDateExclusive.",
            "in": "query",
            "name": "comparisonToDateExclusive",
            "schema": {
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "assumptions": [],
                  "basis": "service_date",
                  "breakdown": [],
                  "coverage": {
                    "unknownCurrencyCount": 0,
                    "visibility": "organization"
                  },
                  "period": {
                    "fromDate": "2030-01-01",
                    "toDateExclusive": "2030-02-01"
                  },
                  "timeZone": "UTC",
                  "totalsByCurrency": []
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "assumptions": {
                      "description": "Finance assumptions.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "basis": {
                      "description": "Finance basis.",
                      "enum": [
                        "payment_date",
                        "service_date"
                      ],
                      "type": "string"
                    },
                    "breakdown": {
                      "description": "Finance breakdown.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "applicationFeeMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "applicationNetMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "grossAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "key": {
                            "description": "Finance key.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "receivedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "refundedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "transactionCount": {
                            "description": "Finance transactionCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "key",
                          "currency",
                          "grossAmountMinor",
                          "applicationNetMinor",
                          "receivedAmountMinor",
                          "refundedAmountMinor",
                          "applicationFeeMinor",
                          "transactionCount"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "comparison": {
                      "description": "Finance comparison.",
                      "properties": {
                        "changes": {
                          "description": "Finance changes.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "applicationFeeMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "applicationNetMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "currency": {
                                "description": "Uppercase currency code; currencies are never combined.",
                                "pattern": "^[A-Z]{3}$",
                                "type": "string"
                              },
                              "grossAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "grossPercentChange": {
                                "description": "Finance grossPercentChange.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "netPercentChange": {
                                "description": "Finance netPercentChange.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "receivedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "refundedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "currency",
                              "grossAmountMinor",
                              "applicationNetMinor",
                              "receivedAmountMinor",
                              "refundedAmountMinor",
                              "applicationFeeMinor",
                              "grossPercentChange",
                              "netPercentChange"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "period": {
                          "additionalProperties": false,
                          "description": "Finance period.",
                          "properties": {
                            "fromDate": {
                              "description": "Finance fromDate.",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                              "type": "string"
                            },
                            "toDateExclusive": {
                              "description": "Finance toDateExclusive.",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "fromDate",
                            "toDateExclusive"
                          ],
                          "type": "object"
                        },
                        "totalsByCurrency": {
                          "description": "Finance totalsByCurrency.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "applicationFeeMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "applicationNetMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "currency": {
                                "description": "Uppercase currency code; currencies are never combined.",
                                "pattern": "^[A-Z]{3}$",
                                "type": "string"
                              },
                              "grossAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "receivedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "refundedAmountMinor": {
                                "description": "Integer currency minor units.",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              "transactionCount": {
                                "description": "Finance transactionCount.",
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "currency",
                              "grossAmountMinor",
                              "applicationNetMinor",
                              "receivedAmountMinor",
                              "refundedAmountMinor",
                              "applicationFeeMinor",
                              "transactionCount"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "period",
                        "totalsByCurrency",
                        "changes"
                      ],
                      "type": "object"
                    },
                    "coverage": {
                      "additionalProperties": false,
                      "description": "Finance coverage.",
                      "properties": {
                        "unknownCurrencyCount": {
                          "description": "Finance unknownCurrencyCount.",
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "visibility": {
                          "description": "Finance visibility.",
                          "enum": [
                            "organization",
                            "own_bookings"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "visibility",
                        "unknownCurrencyCount"
                      ],
                      "type": "object"
                    },
                    "period": {
                      "additionalProperties": false,
                      "description": "Finance period.",
                      "properties": {
                        "fromDate": {
                          "description": "Finance fromDate.",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "type": "string"
                        },
                        "toDateExclusive": {
                          "description": "Finance toDateExclusive.",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "fromDate",
                        "toDateExclusive"
                      ],
                      "type": "object"
                    },
                    "timeZone": {
                      "description": "Finance timeZone.",
                      "type": "string"
                    },
                    "totalsByCurrency": {
                      "description": "Finance totalsByCurrency.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "applicationFeeMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "applicationNetMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "currency": {
                            "description": "Uppercase currency code; currencies are never combined.",
                            "pattern": "^[A-Z]{3}$",
                            "type": "string"
                          },
                          "grossAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "receivedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "refundedAmountMinor": {
                            "description": "Integer currency minor units.",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          "transactionCount": {
                            "description": "Finance transactionCount.",
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "currency",
                          "grossAmountMinor",
                          "applicationNetMinor",
                          "receivedAmountMinor",
                          "refundedAmountMinor",
                          "applicationFeeMinor",
                          "transactionCount"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "period",
                    "timeZone",
                    "assumptions",
                    "coverage",
                    "basis",
                    "totalsByCurrency",
                    "breakdown"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized finance result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get revenue report",
        "tags": [
          "Finance"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "query": {
                "fromDate": "2030-01-01",
                "toDateExclusive": "2030-02-01"
              }
            }
          }
        ],
        "x-required-permissions": [
          "reports:read"
        ]
      }
    },
    "/api/v1/tags": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "list_tags",
        "parameters": [
          {
            "description": "Maximum results on this page.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Opaque continuation cursor bound to the caller and filters.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "query",
            "in": "query",
            "name": "query",
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          },
          {
            "description": "sortField",
            "in": "query",
            "name": "sortField",
            "schema": {
              "default": "name",
              "enum": [
                "name",
                "createdAt"
              ],
              "type": "string"
            }
          },
          {
            "description": "sortOrder",
            "in": "query",
            "name": "sortOrder",
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [],
                  "nextCursor": null,
                  "totalCount": 0
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "items": {
                        "properties": {
                          "color": {
                            "description": "Display color, or null.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "Stable record ID.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "color"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Continuation cursor, or null when the result is complete.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "totalCount": {
                      "description": "totalCount",
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "data",
                    "totalCount",
                    "nextCursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "list tags",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "list",
            "request": {
              "query": {
                "limit": "50"
              }
            }
          }
        ],
        "x-required-permissions": [
          "organization:read"
        ]
      }
    },
    "/api/v1/time-off/{timeOffId}": {
      "get": {
        "description": "Uses current user permissions and the credential's selected studio. Safe explicit fields only.",
        "operationId": "get_time_off",
        "parameters": [
          {
            "description": "Time-off ID.",
            "in": "path",
            "name": "timeOffId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "allDay": false,
                    "artistId": "artist-example",
                    "clientId": "00000000-0000-4000-8000-000000000225",
                    "description": null,
                    "end": "2026-10-05T11:00:00Z",
                    "id": "00000000-0000-4000-8000-000000000225",
                    "locationIds": [
                      "00000000-0000-4000-8000-000000000225"
                    ],
                    "organizationId": "studio-example",
                    "price": null,
                    "start": "2026-10-05T09:00:00Z",
                    "status": "SCHEDULED",
                    "timeZone": "Europe/Copenhagen",
                    "title": "Booking",
                    "type": "TIME_OFF",
                    "url": null,
                    "version": "opaque-version"
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Authorized safe result.",
                      "oneOf": [
                        {
                          "properties": {
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "clientId": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Existing client ID; contact information is edited separately."
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "price": {
                              "anyOf": [
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "amount": {
                                      "description": "Integer amount in currency minor units, including zero.",
                                      "maximum": 2147483647,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    "currency": {
                                      "description": "Uppercase three-letter currency code.",
                                      "pattern": "^[A-Z]{3}$",
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "currency"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Booking price in minor units; null means unset and clears a price on update."
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "tags": {
                              "default": [],
                              "description": "tags",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "color": {
                                    "description": "Tag display color, or null.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "description": "Studio tag ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Tag display name.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "title": {
                              "description": "Appointment title.",
                              "type": "string"
                            },
                            "type": {
                              "const": "BOOKING",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "clientId",
                            "title",
                            "description",
                            "price"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "clientId": {
                              "anyOf": [
                                {
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Existing client ID; contact information is edited separately."
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "tags": {
                              "default": [],
                              "description": "tags",
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "color": {
                                    "description": "Tag display color, or null.",
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "id": {
                                    "description": "Studio tag ID.",
                                    "format": "uuid",
                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Tag display name.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "color"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "title": {
                              "description": "Appointment title.",
                              "type": "string"
                            },
                            "type": {
                              "const": "CONSULTATION",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "clientId",
                            "title",
                            "description"
                          ],
                          "type": "object"
                        },
                        {
                          "properties": {
                            "allDay": {
                              "description": "Whether time off covers local calendar days.",
                              "type": "boolean"
                            },
                            "artistId": {
                              "description": "Current studio participant user ID.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "description": "Appointment description.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "end": {
                              "description": "End instant, exclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "id": {
                              "description": "Stable record ID.",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                              "type": "string"
                            },
                            "locationIds": {
                              "description": "Associated studio location IDs.",
                              "items": {
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                                "type": "string"
                              },
                              "type": "array"
                            },
                            "organizationId": {
                              "description": "Selected studio ID.",
                              "type": "string"
                            },
                            "start": {
                              "description": "Start instant, inclusive, with an explicit UTC offset.",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "type": "string"
                            },
                            "status": {
                              "description": "Current lifecycle status.",
                              "enum": [
                                "SCHEDULED",
                                "CANCELLED",
                                "DELETED"
                              ],
                              "type": "string"
                            },
                            "timeZone": {
                              "description": "IANA time zone.",
                              "maxLength": 50,
                              "type": "string"
                            },
                            "type": {
                              "const": "TIME_OFF",
                              "description": "Event kind.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Authenticated application link, or null if unavailable.",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "version": {
                              "description": "Opaque optimistic concurrency version.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "start",
                            "end",
                            "timeZone",
                            "status",
                            "version",
                            "url",
                            "artistId",
                            "locationIds",
                            "type",
                            "description",
                            "allDay"
                          ],
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authorized result.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "UNAUTHENTICATED",
                    "message": "Authentication is required.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Authentication is required.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "FORBIDDEN",
                    "message": "Access denied.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Access denied.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "NOT_FOUND",
                    "message": "Record not found.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Record not found.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "CONFLICT",
                    "message": "The operation conflicts with the current state.",
                    "reason": "DOMAIN_CONFLICT",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation conflicts with the current state.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "INVALID_INPUT",
                    "message": "Invalid operation input.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Invalid operation input.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Request limit reached.",
                    "retryable": true,
                    "retryAfterSeconds": 60
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Request limit reached.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds until the provider permits another request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "PROVIDER_UNAVAILABLE",
                    "message": "The provider is unavailable.",
                    "retryable": false
                  }
                },
                "schema": {
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "description": "Stable safe failure code.",
                          "enum": [
                            "INVALID_INPUT",
                            "UNAUTHENTICATED",
                            "FORBIDDEN",
                            "NOT_FOUND",
                            "CONFLICT",
                            "RATE_LIMITED",
                            "CAPABILITY_UNAVAILABLE",
                            "PROVIDER_UNAVAILABLE"
                          ],
                          "type": "string"
                        },
                        "fieldErrors": {
                          "additionalProperties": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": "Safe field-level validation details.",
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "message": {
                          "description": "Fixed public failure message, without provider or private details.",
                          "type": "string"
                        },
                        "operationId": {
                          "description": "Original domain recovery operation ID when available.",
                          "type": "string"
                        },
                        "reason": {
                          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
                          "enum": [
                            "STALE_VERSION",
                            "EDIT_SESSION_EXPIRED",
                            "IDEMPOTENCY_MISMATCH",
                            "DOMAIN_CONFLICT",
                            "SLOT_UNAVAILABLE",
                            "INCOMPLETE_AVAILABILITY",
                            "MISSING_OPENING_HOURS"
                          ],
                          "type": "string"
                        },
                        "retryable": {
                          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
                          "type": "boolean"
                        },
                        "retryAfterSeconds": {
                          "description": "Seconds before retry or reconciliation.",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "retryable"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The provider is unavailable.",
            "headers": {
              "Cache-Control": {
                "description": "Business responses must not be cached.",
                "schema": {
                  "const": "no-store",
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "When present, seconds to wait before checking the same unresolved receipt or retrying a rate-limited request.",
                "schema": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "X-Request-Id": {
                "description": "Server-generated correlation ID; absent from business DTOs.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "get time off",
        "tags": [
          "Scheduling"
        ],
        "x-request-examples": [
          {
            "name": "read",
            "request": {
              "path": {
                "timeOffId": "00000000-0000-4000-8000-000000000225"
              }
            }
          }
        ],
        "x-required-permissions": [
          "calendar:read"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "The server hosting this API release.",
      "url": "/"
    }
  ],
  "x-source-revision": "development"
}
