{
  "openapi": "3.1.1",
  "info": {
    "title": "Sotech Meet Integration API",
    "description": "Sotech Meet — görüntülü toplantı platformu. Üç kimlik yolu: web oturum çerezi (+ X-CSRF-Token), mobil Bearer belirteci, entegrasyon API anahtarı (X-Api-Key; yalnız /api/v1/integration). Oda içi uçlarda kimlik X-Participant-Token başlığıdır. Hata gövdeleri RFC 7807 ProblemDetails; makine okunur ret kodu 'code' uzantısındadır. Bu dosya KODDAN üretilir (backend/openapi-uret.sh).",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://meet.sotech.com.tr"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "paths": {
    "/api/v1/integration/meetings": {
      "post": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Toplantı oluşturur — correlationTag ile idempotent (yeni: 201, var olan: 200)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntegrationMeetingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationMeetingDto"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationMeetingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Korelasyon etiketiyle toplantıyı bulur",
        "parameters": [
          {
            "name": "correlationTag",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationMeetingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}": {
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Toplantı ayrıntısı",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationMeetingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Toplantıyı günceller (yalnız başlamamış toplantı)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntegrationMeetingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationMeetingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Toplantıyı siler (iptal) — yoksa da 204 (idempotent)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/attendance": {
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Yoklama: kişi başına giriş/çıkış aralıkları (isFinal=true ise kesin)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sessionId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationAttendanceDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/end": {
      "post": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Süren oturumu herkes için bitirir",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/host-link": {
      "post": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Ev sahibi başlatma bağlantısı (her çağrıda taze; saklanmaz)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HostLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntegrationLinkDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/join-links": {
      "post": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Kişiye özel katılım bağlantıları (toplu, en çok 500)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JoinLinksRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntegrationLinkDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/recordings": {
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Toplantının kayıtları",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntegrationRecordingDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Toplantının kayıtlarını siler (içe alma doğrulandıktan sonra)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/recordings/start": {
      "post": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Kaydı başlatır (toplantı sürerken)",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/recordings/stop": {
      "post": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Kaydı durdurur",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/integration/meetings/{meetingId}/status": {
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Durum yoklaması: NotStarted | InProgress | Ended | Cancelled",
        "parameters": [
          {
            "name": "meetingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingActivityDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integration/recordings/{recordingId}/download": {
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Kayıt dosyasını (MP4) akış olarak verir",
        "parameters": [
          {
            "name": "recordingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/integration/webhook-events": {
      "get": {
        "tags": [
          "Entegrasyon"
        ],
        "summary": "Desteklenen webhook olay adları",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Entegrasyon API anahtarı (smk_…).",
        "name": "X-Api-Key",
        "in": "header"
      }
    },
    "schemas": {
      "AttendanceRowDto": {
        "required": [
          "participantId",
          "sessionId",
          "userId",
          "externalUserId",
          "displayName",
          "email",
          "role",
          "state",
          "firstJoinedAt",
          "lastLeftAt",
          "totalSeconds",
          "segments"
        ],
        "type": "object",
        "properties": {
          "participantId": {
            "type": "string",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "externalUserId": {
            "type": [
              "null",
              "string"
            ]
          },
          "displayName": {
            "type": "string"
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "$ref": "#/components/schemas/ParticipantRole"
          },
          "state": {
            "$ref": "#/components/schemas/ParticipantState"
          },
          "firstJoinedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastLeftAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "totalSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttendanceSegmentDto"
            }
          }
        }
      },
      "AttendanceSegmentDto": {
        "required": [
          "joinedAt",
          "leftAt"
        ],
        "type": "object",
        "properties": {
          "joinedAt": {
            "type": "string",
            "format": "date-time"
          },
          "leftAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "HostLinkRequest": {
        "required": [
          "displayName",
          "email",
          "externalUserId",
          "expiresInMinutes"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalUserId": {
            "type": [
              "null",
              "string"
            ]
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "HttpValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "IntegrationAttendanceDto": {
        "required": [
          "meetingId",
          "isFinal",
          "actualStartUtc",
          "actualEndUtc",
          "participants"
        ],
        "type": "object",
        "properties": {
          "meetingId": {
            "type": "string",
            "format": "uuid"
          },
          "isFinal": {
            "type": "boolean"
          },
          "actualStartUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "actualEndUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttendanceRowDto"
            }
          }
        }
      },
      "IntegrationLinkDto": {
        "required": [
          "externalUserId",
          "email",
          "displayName",
          "role",
          "webUrl",
          "appUrl",
          "expiresAt"
        ],
        "type": "object",
        "properties": {
          "externalUserId": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "displayName": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "webUrl": {
            "type": "string"
          },
          "appUrl": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "IntegrationMeetingDto": {
        "required": [
          "meetingId",
          "code",
          "topic",
          "correlationTag",
          "status",
          "startUtc",
          "durationMinutes",
          "timeZoneId",
          "joinUrl",
          "appJoinUrl",
          "passcode",
          "waitingRoom",
          "joinBeforeHost",
          "recordingMode",
          "maxParticipants",
          "createdAt",
          "created"
        ],
        "type": "object",
        "properties": {
          "meetingId": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "correlationTag": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/MeetingStatus"
          },
          "startUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "durationMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "timeZoneId": {
            "type": "string"
          },
          "joinUrl": {
            "type": "string"
          },
          "appJoinUrl": {
            "type": "string"
          },
          "passcode": {
            "type": [
              "null",
              "string"
            ]
          },
          "waitingRoom": {
            "type": "boolean"
          },
          "joinBeforeHost": {
            "type": "boolean"
          },
          "recordingMode": {
            "$ref": "#/components/schemas/RecordingMode"
          },
          "maxParticipants": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "created": {
            "type": "boolean"
          },
          "isWebinar": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "IntegrationMeetingRequest": {
        "required": [
          "topic",
          "correlationTag",
          "startUtc",
          "durationMinutes",
          "timeZoneId",
          "description",
          "waitingRoom",
          "joinBeforeHost",
          "guestAccess",
          "muteOnEntry",
          "passcodeEnabled",
          "recordingMode",
          "maxParticipants"
        ],
        "type": "object",
        "properties": {
          "topic": {
            "type": "string"
          },
          "correlationTag": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "durationMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "waitingRoom": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "joinBeforeHost": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "guestAccess": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "muteOnEntry": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "passcodeEnabled": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "recordingMode": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RecordingMode"
              }
            ]
          },
          "maxParticipants": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "isWebinar": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "IntegrationRecordingDto": {
        "required": [
          "recordingId",
          "sessionId",
          "status",
          "startedAt",
          "endedAt",
          "durationSeconds",
          "sizeBytes",
          "kind",
          "downloadPath"
        ],
        "type": "object",
        "properties": {
          "recordingId": {
            "type": "string",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/RecordingStatus"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "endedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "kind": {
            "type": "string"
          },
          "downloadPath": {
            "type": "string"
          }
        }
      },
      "JoinLinksRequest": {
        "required": [
          "participants",
          "expiresInMinutes"
        ],
        "type": "object",
        "properties": {
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkParticipantRequest"
            }
          },
          "expiresInMinutes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LinkParticipantRequest": {
        "required": [
          "displayName",
          "email",
          "externalUserId",
          "role"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string"
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalUserId": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MeetingActivityDto": {
        "required": [
          "meetingId",
          "state",
          "sessionId",
          "actualStartUtc",
          "actualEndUtc",
          "participantCount"
        ],
        "type": "object",
        "properties": {
          "meetingId": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string"
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "actualStartUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "actualEndUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "participantCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MeetingStatus": {
        "enum": [
          "Scheduled",
          "Live",
          "Ended",
          "Cancelled"
        ]
      },
      "ParticipantRole": {
        "enum": [
          "Host",
          "CoHost",
          "Participant",
          "Guest"
        ]
      },
      "ParticipantState": {
        "enum": [
          "Waiting",
          "Admitted",
          "Joined",
          "Left",
          "Denied",
          "Removed"
        ]
      },
      "RecordingDto": {
        "required": [
          "recordingId",
          "meetingId",
          "sessionId",
          "meetingTitle",
          "status",
          "startedAt",
          "endedAt",
          "durationSeconds",
          "sizeBytes",
          "error"
        ],
        "type": "object",
        "properties": {
          "recordingId": {
            "type": "string",
            "format": "uuid"
          },
          "meetingId": {
            "type": "string",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid"
          },
          "meetingTitle": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/RecordingStatus"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "endedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RecordingMode": {
        "enum": [
          "None",
          "Manual",
          "Auto"
        ]
      },
      "RecordingStatus": {
        "enum": [
          "Starting",
          "Recording",
          "Processing",
          "Ready",
          "Failed",
          "Deleted"
        ]
      }
    }
  }
}
