{
  "openapi": "3.1.0",
  "info": {
    "title": "Management API",
    "description": "Test the API with Swagger at https://api.cdn.vindral.com/api-docs       \n\n## Packager Endpoints\n      \nThe `/v1/packagers` endpoints additionally require the packager control plane to be enabled for your organization.,\n      \n\n## API Keys and Permissions\n      \nThe API key used for authentication is tied to a user and shares the permissions of that user       which is configured in the Vindral Portal. In addition to the user level permissions each       API key has a scope of either read-only or read-write.\n      \n\nRead more about permissions [here](https://docs.vindral.com/manage/management-api/#api-keys-and-permissions)",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.cdn.vindral.com"
    }
  ],
  "paths": {
    "/v1/channels": {
      "get": {
        "operationId": "v1-channels-findMany",
        "summary": "List channels",
        "description": "Get a list of channels that the provided api key has access to.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "channelId",
                "name",
                "streamKey"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "authRequired": {
                            "type": "boolean",
                            "description": "`true` if the channel should be protected and require a valid token to watch it."
                          },
                          "channelId": {
                            "type": "string",
                            "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the channel."
                          },
                          "notes": {
                            "type": "string",
                            "description": "Notes for the channel."
                          },
                          "streamKey": {
                            "type": "string",
                            "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                          },
                          "suspended": {
                            "type": "boolean",
                            "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                          },
                          "isLive": {
                            "type": "boolean",
                            "description": "This value is `true` if there is an active stream for this channel."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the channel belongs to."
                          },
                          "transcodingProfileId": {
                            "description": "Transcoding profile currently used for this channel.",
                            "type": "string"
                          },
                          "viewerCountryLimitation": {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "allow",
                                  "deny",
                                  "disabled"
                                ],
                                "description": "The mode of the viewer country limitation."
                              },
                              "limited": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                              }
                            },
                            "required": [
                              "mode",
                              "limited"
                            ],
                            "additionalProperties": false
                          },
                          "restreaming": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 500,
                                  "description": "The URL to restream to, the full RTMP URL."
                                }
                              },
                              "required": [
                                "enabled",
                                "url"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Restreaming configuration."
                          },
                          "recording": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "retentionDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 365,
                                "description": "Retention days for the recording."
                              }
                            },
                            "required": [
                              "enabled",
                              "retentionDays"
                            ],
                            "additionalProperties": false,
                            "description": "Recording configuration."
                          },
                          "browserOverlay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "`true` to render the page on top of the video.",
                                "example": true
                              },
                              "url": {
                                "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                                "example": "https://example.com/overlay",
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000,
                                    "format": "starts_with",
                                    "allOf": [
                                      {
                                        "pattern": "^[^\\s\\p{Cc}]+$"
                                      },
                                      {
                                        "pattern": "^https:\\/\\/.*"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "width": {
                                "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                                "example": 1920,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 16,
                                    "maximum": 3840,
                                    "multipleOf": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "height": {
                                "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                                "example": 1080,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 16,
                                    "maximum": 3840,
                                    "multipleOf": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "x": {
                                "description": "Horizontal position of the page in source video pixels. Default 0.",
                                "example": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3840
                              },
                              "y": {
                                "description": "Vertical position of the page in source video pixels. Default 0.",
                                "example": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3840
                              },
                              "frameRate": {
                                "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                                "example": 30,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 60
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "transparentBackground": {
                                "description": "Render the page with a transparent background. Default `true`.",
                                "example": true,
                                "type": "boolean"
                              },
                              "audioCapture": {
                                "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                                "example": false,
                                "type": "boolean"
                              },
                              "audioMixWeight": {
                                "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                                "example": 0.3,
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              }
                            },
                            "required": [
                              "enabled",
                              "url",
                              "width",
                              "height",
                              "x",
                              "y",
                              "frameRate",
                              "transparentBackground",
                              "audioCapture",
                              "audioMixWeight"
                            ],
                            "additionalProperties": false,
                            "description": "Browser overlay configuration."
                          },
                          "timeshiftEnabled": {
                            "type": "boolean",
                            "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                          }
                        },
                        "required": [
                          "authRequired",
                          "channelId",
                          "name",
                          "notes",
                          "streamKey",
                          "suspended",
                          "isLive",
                          "organizationId",
                          "viewerCountryLimitation",
                          "timeshiftEnabled"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of channel objects, sorted by and sized according to the query parameters provided."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total amount of channels to get."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-channels-create",
        "summary": "Create channel",
        "description": "Create a new channel. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 50,
                    "description": "Name of the channel."
                  },
                  "authRequired": {
                    "default": false,
                    "description": "`true` if the channel should be protected and require a valid token to watch it.",
                    "type": "boolean"
                  },
                  "notes": {
                    "default": "",
                    "description": "Notes for the channel.",
                    "type": "string",
                    "maxLength": 500
                  },
                  "transcodingProfileId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Transcoding profile to use for this channel."
                  },
                  "viewerCountryLimitation": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "allow",
                          "deny",
                          "disabled"
                        ],
                        "description": "The mode of the viewer country limitation."
                      },
                      "limited": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                      }
                    },
                    "required": [
                      "mode",
                      "limited"
                    ]
                  },
                  "recording": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "retentionDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365,
                        "description": "Retention days for the recording."
                      }
                    },
                    "required": [
                      "enabled",
                      "retentionDays"
                    ],
                    "description": "Recording configuration."
                  },
                  "restreaming": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 500,
                          "description": "The URL to restream to, the full RTMP URL."
                        }
                      },
                      "required": [
                        "enabled",
                        "url"
                      ]
                    },
                    "description": "Restreaming configuration."
                  },
                  "browserOverlay": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "`true` to render the page on top of the video.",
                        "example": true
                      },
                      "url": {
                        "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                        "example": "https://example.com/overlay",
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "starts_with",
                            "allOf": [
                              {
                                "pattern": "^[^\\s\\p{Cc}]+$"
                              },
                              {
                                "pattern": "^https:\\/\\/.*"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "width": {
                        "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                        "example": 1920,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 16,
                            "maximum": 3840,
                            "multipleOf": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                        "example": 1080,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 16,
                            "maximum": 3840,
                            "multipleOf": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "x": {
                        "description": "Horizontal position of the page in source video pixels. Default 0.",
                        "example": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3840
                      },
                      "y": {
                        "description": "Vertical position of the page in source video pixels. Default 0.",
                        "example": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3840
                      },
                      "frameRate": {
                        "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                        "example": 30,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transparentBackground": {
                        "description": "Render the page with a transparent background. Default `true`.",
                        "example": true,
                        "type": "boolean"
                      },
                      "audioCapture": {
                        "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                        "example": false,
                        "type": "boolean"
                      },
                      "audioMixWeight": {
                        "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                        "example": 0.3,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "description": "Browser overlay configuration. A web page rendered on top of the video. Only the source's primary video and audio track are used. Changes take effect when transcoding restarts, such as on the next ingest. A page larger than the source, or faster than its frame rate, is rendered at the source's size and rate. Always send enabled; other fields left out keep their stored value, or take the default when the overlay is created. When enabled, url, width, height and frameRate are required. Requires the browser overlay feature on the organization and a transcoding profile on the channel."
                  },
                  "timeshiftEnabled": {
                    "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off.",
                    "type": "boolean"
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization that the channel should be added to."
                  },
                  "channelId": {
                    "description": "ChannelId (public id) for the channel, required as: `${normalizedOrganizationName}_${normalizedName}_ci_${uuid}`. If not provided, this will be generated.",
                    "type": "string"
                  },
                  "streamKey": {
                    "description": "Stream key (private id) for the channel, required as: `${normalizedOrganizationName}_${normalizedName}_sk_${uuid}`. If not provided, this will be generated.",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "transcodingProfileId",
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authRequired": {
                      "type": "boolean",
                      "description": "`true` if the channel should be protected and require a valid token to watch it."
                    },
                    "channelId": {
                      "type": "string",
                      "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Notes for the channel."
                    },
                    "streamKey": {
                      "type": "string",
                      "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                    },
                    "suspended": {
                      "type": "boolean",
                      "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                    },
                    "isLive": {
                      "type": "boolean",
                      "description": "This value is `true` if there is an active stream for this channel."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    },
                    "transcodingProfileId": {
                      "description": "Transcoding profile currently used for this channel.",
                      "type": "string"
                    },
                    "viewerCountryLimitation": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "deny",
                            "disabled"
                          ],
                          "description": "The mode of the viewer country limitation."
                        },
                        "limited": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                        }
                      },
                      "required": [
                        "mode",
                        "limited"
                      ],
                      "additionalProperties": false
                    },
                    "restreaming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 500,
                            "description": "The URL to restream to, the full RTMP URL."
                          }
                        },
                        "required": [
                          "enabled",
                          "url"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Restreaming configuration."
                    },
                    "recording": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "retentionDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 365,
                          "description": "Retention days for the recording."
                        }
                      },
                      "required": [
                        "enabled",
                        "retentionDays"
                      ],
                      "additionalProperties": false,
                      "description": "Recording configuration."
                    },
                    "browserOverlay": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "`true` to render the page on top of the video.",
                          "example": true
                        },
                        "url": {
                          "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                          "example": "https://example.com/overlay",
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "starts_with",
                              "allOf": [
                                {
                                  "pattern": "^[^\\s\\p{Cc}]+$"
                                },
                                {
                                  "pattern": "^https:\\/\\/.*"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "width": {
                          "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1920,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "height": {
                          "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1080,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "x": {
                          "description": "Horizontal position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "y": {
                          "description": "Vertical position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "frameRate": {
                          "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                          "example": 30,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 60
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "transparentBackground": {
                          "description": "Render the page with a transparent background. Default `true`.",
                          "example": true,
                          "type": "boolean"
                        },
                        "audioCapture": {
                          "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                          "example": false,
                          "type": "boolean"
                        },
                        "audioMixWeight": {
                          "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                          "example": 0.3,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "enabled",
                        "url",
                        "width",
                        "height",
                        "x",
                        "y",
                        "frameRate",
                        "transparentBackground",
                        "audioCapture",
                        "audioMixWeight"
                      ],
                      "additionalProperties": false,
                      "description": "Browser overlay configuration."
                    },
                    "timeshiftEnabled": {
                      "type": "boolean",
                      "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                    }
                  },
                  "required": [
                    "authRequired",
                    "channelId",
                    "name",
                    "notes",
                    "streamKey",
                    "suspended",
                    "isLive",
                    "organizationId",
                    "viewerCountryLimitation",
                    "timeshiftEnabled"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channel-groups/{channelGroupId}/channels": {
      "get": {
        "operationId": "v1-channels-findManyByChannelGroup",
        "summary": "List channels by channel group",
        "description": "Get a list of channels belonging to a specific channel group.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "The channel group id to get channels for."
            },
            "required": true,
            "description": "The channel group id to get channels for."
          },
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "channelId",
                "name",
                "streamKey"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "authRequired": {
                            "type": "boolean",
                            "description": "`true` if the channel should be protected and require a valid token to watch it."
                          },
                          "channelId": {
                            "type": "string",
                            "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the channel."
                          },
                          "notes": {
                            "type": "string",
                            "description": "Notes for the channel."
                          },
                          "streamKey": {
                            "type": "string",
                            "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                          },
                          "suspended": {
                            "type": "boolean",
                            "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                          },
                          "isLive": {
                            "type": "boolean",
                            "description": "This value is `true` if there is an active stream for this channel."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the channel belongs to."
                          },
                          "transcodingProfileId": {
                            "description": "Transcoding profile currently used for this channel.",
                            "type": "string"
                          },
                          "viewerCountryLimitation": {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "allow",
                                  "deny",
                                  "disabled"
                                ],
                                "description": "The mode of the viewer country limitation."
                              },
                              "limited": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                              }
                            },
                            "required": [
                              "mode",
                              "limited"
                            ],
                            "additionalProperties": false
                          },
                          "restreaming": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 500,
                                  "description": "The URL to restream to, the full RTMP URL."
                                }
                              },
                              "required": [
                                "enabled",
                                "url"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Restreaming configuration."
                          },
                          "recording": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "retentionDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 365,
                                "description": "Retention days for the recording."
                              }
                            },
                            "required": [
                              "enabled",
                              "retentionDays"
                            ],
                            "additionalProperties": false,
                            "description": "Recording configuration."
                          },
                          "browserOverlay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "`true` to render the page on top of the video.",
                                "example": true
                              },
                              "url": {
                                "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                                "example": "https://example.com/overlay",
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000,
                                    "format": "starts_with",
                                    "allOf": [
                                      {
                                        "pattern": "^[^\\s\\p{Cc}]+$"
                                      },
                                      {
                                        "pattern": "^https:\\/\\/.*"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "width": {
                                "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                                "example": 1920,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 16,
                                    "maximum": 3840,
                                    "multipleOf": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "height": {
                                "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                                "example": 1080,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 16,
                                    "maximum": 3840,
                                    "multipleOf": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "x": {
                                "description": "Horizontal position of the page in source video pixels. Default 0.",
                                "example": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3840
                              },
                              "y": {
                                "description": "Vertical position of the page in source video pixels. Default 0.",
                                "example": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3840
                              },
                              "frameRate": {
                                "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                                "example": 30,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 60
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "transparentBackground": {
                                "description": "Render the page with a transparent background. Default `true`.",
                                "example": true,
                                "type": "boolean"
                              },
                              "audioCapture": {
                                "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                                "example": false,
                                "type": "boolean"
                              },
                              "audioMixWeight": {
                                "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                                "example": 0.3,
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              }
                            },
                            "required": [
                              "enabled",
                              "url",
                              "width",
                              "height",
                              "x",
                              "y",
                              "frameRate",
                              "transparentBackground",
                              "audioCapture",
                              "audioMixWeight"
                            ],
                            "additionalProperties": false,
                            "description": "Browser overlay configuration."
                          },
                          "timeshiftEnabled": {
                            "type": "boolean",
                            "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                          }
                        },
                        "required": [
                          "authRequired",
                          "channelId",
                          "name",
                          "notes",
                          "streamKey",
                          "suspended",
                          "isLive",
                          "organizationId",
                          "viewerCountryLimitation",
                          "timeshiftEnabled"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of channel objects with the specified channel group, sorted by and sized according to the query parameters provided."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total amount of channels with the specified channel group."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transcoding-profiles/{transcodingProfileId}/channels": {
      "get": {
        "operationId": "v1-channels-findManyByTranscodingProfile",
        "summary": "List channels by transcoding profile",
        "description": "Get a list of channels with a specific transcoding profile.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "transcodingProfileId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "The transcoding profile id to get channels for."
            },
            "required": true,
            "description": "The transcoding profile id to get channels for."
          },
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "channelId",
                "name",
                "streamKey"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "authRequired": {
                            "type": "boolean",
                            "description": "`true` if the channel should be protected and require a valid token to watch it."
                          },
                          "channelId": {
                            "type": "string",
                            "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the channel."
                          },
                          "notes": {
                            "type": "string",
                            "description": "Notes for the channel."
                          },
                          "streamKey": {
                            "type": "string",
                            "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                          },
                          "suspended": {
                            "type": "boolean",
                            "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                          },
                          "isLive": {
                            "type": "boolean",
                            "description": "This value is `true` if there is an active stream for this channel."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the channel belongs to."
                          },
                          "transcodingProfileId": {
                            "description": "Transcoding profile currently used for this channel.",
                            "type": "string"
                          },
                          "viewerCountryLimitation": {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "allow",
                                  "deny",
                                  "disabled"
                                ],
                                "description": "The mode of the viewer country limitation."
                              },
                              "limited": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                              }
                            },
                            "required": [
                              "mode",
                              "limited"
                            ],
                            "additionalProperties": false
                          },
                          "restreaming": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 500,
                                  "description": "The URL to restream to, the full RTMP URL."
                                }
                              },
                              "required": [
                                "enabled",
                                "url"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Restreaming configuration."
                          },
                          "recording": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "retentionDays": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 365,
                                "description": "Retention days for the recording."
                              }
                            },
                            "required": [
                              "enabled",
                              "retentionDays"
                            ],
                            "additionalProperties": false,
                            "description": "Recording configuration."
                          },
                          "browserOverlay": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "`true` to render the page on top of the video.",
                                "example": true
                              },
                              "url": {
                                "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                                "example": "https://example.com/overlay",
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000,
                                    "format": "starts_with",
                                    "allOf": [
                                      {
                                        "pattern": "^[^\\s\\p{Cc}]+$"
                                      },
                                      {
                                        "pattern": "^https:\\/\\/.*"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "width": {
                                "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                                "example": 1920,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 16,
                                    "maximum": 3840,
                                    "multipleOf": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "height": {
                                "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                                "example": 1080,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 16,
                                    "maximum": 3840,
                                    "multipleOf": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "x": {
                                "description": "Horizontal position of the page in source video pixels. Default 0.",
                                "example": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3840
                              },
                              "y": {
                                "description": "Vertical position of the page in source video pixels. Default 0.",
                                "example": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 3840
                              },
                              "frameRate": {
                                "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                                "example": 30,
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 60
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "transparentBackground": {
                                "description": "Render the page with a transparent background. Default `true`.",
                                "example": true,
                                "type": "boolean"
                              },
                              "audioCapture": {
                                "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                                "example": false,
                                "type": "boolean"
                              },
                              "audioMixWeight": {
                                "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                                "example": 0.3,
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              }
                            },
                            "required": [
                              "enabled",
                              "url",
                              "width",
                              "height",
                              "x",
                              "y",
                              "frameRate",
                              "transparentBackground",
                              "audioCapture",
                              "audioMixWeight"
                            ],
                            "additionalProperties": false,
                            "description": "Browser overlay configuration."
                          },
                          "timeshiftEnabled": {
                            "type": "boolean",
                            "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                          }
                        },
                        "required": [
                          "authRequired",
                          "channelId",
                          "name",
                          "notes",
                          "streamKey",
                          "suspended",
                          "isLive",
                          "organizationId",
                          "viewerCountryLimitation",
                          "timeshiftEnabled"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of channel objects with the specified transcoding profile, sorted by and sized according to the query parameters provided."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total amount of channels with the specified transcoding profile."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channels/{channelId}": {
      "get": {
        "operationId": "v1-channels-findOne",
        "summary": "Get channel",
        "description": "Get a channel by channel id.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to get."
            },
            "required": true,
            "description": "ID of the channel to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authRequired": {
                      "type": "boolean",
                      "description": "`true` if the channel should be protected and require a valid token to watch it."
                    },
                    "channelId": {
                      "type": "string",
                      "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Notes for the channel."
                    },
                    "streamKey": {
                      "type": "string",
                      "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                    },
                    "suspended": {
                      "type": "boolean",
                      "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                    },
                    "isLive": {
                      "type": "boolean",
                      "description": "This value is `true` if there is an active stream for this channel."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    },
                    "transcodingProfileId": {
                      "description": "Transcoding profile currently used for this channel.",
                      "type": "string"
                    },
                    "viewerCountryLimitation": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "deny",
                            "disabled"
                          ],
                          "description": "The mode of the viewer country limitation."
                        },
                        "limited": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                        }
                      },
                      "required": [
                        "mode",
                        "limited"
                      ],
                      "additionalProperties": false
                    },
                    "restreaming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 500,
                            "description": "The URL to restream to, the full RTMP URL."
                          }
                        },
                        "required": [
                          "enabled",
                          "url"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Restreaming configuration."
                    },
                    "recording": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "retentionDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 365,
                          "description": "Retention days for the recording."
                        }
                      },
                      "required": [
                        "enabled",
                        "retentionDays"
                      ],
                      "additionalProperties": false,
                      "description": "Recording configuration."
                    },
                    "browserOverlay": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "`true` to render the page on top of the video.",
                          "example": true
                        },
                        "url": {
                          "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                          "example": "https://example.com/overlay",
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "starts_with",
                              "allOf": [
                                {
                                  "pattern": "^[^\\s\\p{Cc}]+$"
                                },
                                {
                                  "pattern": "^https:\\/\\/.*"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "width": {
                          "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1920,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "height": {
                          "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1080,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "x": {
                          "description": "Horizontal position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "y": {
                          "description": "Vertical position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "frameRate": {
                          "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                          "example": 30,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 60
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "transparentBackground": {
                          "description": "Render the page with a transparent background. Default `true`.",
                          "example": true,
                          "type": "boolean"
                        },
                        "audioCapture": {
                          "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                          "example": false,
                          "type": "boolean"
                        },
                        "audioMixWeight": {
                          "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                          "example": 0.3,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "enabled",
                        "url",
                        "width",
                        "height",
                        "x",
                        "y",
                        "frameRate",
                        "transparentBackground",
                        "audioCapture",
                        "audioMixWeight"
                      ],
                      "additionalProperties": false,
                      "description": "Browser overlay configuration."
                    },
                    "timeshiftEnabled": {
                      "type": "boolean",
                      "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                    }
                  },
                  "required": [
                    "authRequired",
                    "channelId",
                    "name",
                    "notes",
                    "streamKey",
                    "suspended",
                    "isLive",
                    "organizationId",
                    "viewerCountryLimitation",
                    "timeshiftEnabled"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "v1-channels-update",
        "summary": "Update channel",
        "description": "Update a channel by channel id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to update."
            },
            "required": true,
            "description": "ID of the channel to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "Name of the channel.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 50
                  },
                  "authRequired": {
                    "description": "`true` if the channel should be protected and require a valid token to watch it.",
                    "type": "boolean"
                  },
                  "notes": {
                    "description": "Notes for the channel.",
                    "type": "string",
                    "maxLength": 500
                  },
                  "transcodingProfileId": {
                    "description": "Transcoding profile to use for this channel.",
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "viewerCountryLimitation": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "allow",
                          "deny",
                          "disabled"
                        ],
                        "description": "The mode of the viewer country limitation."
                      },
                      "limited": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                      }
                    },
                    "required": [
                      "mode",
                      "limited"
                    ]
                  },
                  "recording": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "retentionDays": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 365,
                        "description": "Retention days for the recording."
                      }
                    },
                    "required": [
                      "enabled",
                      "retentionDays"
                    ],
                    "description": "Recording configuration."
                  },
                  "restreaming": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 500,
                          "description": "The URL to restream to, the full RTMP URL."
                        }
                      },
                      "required": [
                        "enabled",
                        "url"
                      ]
                    },
                    "description": "Restreaming configuration."
                  },
                  "browserOverlay": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "`true` to render the page on top of the video.",
                        "example": true
                      },
                      "url": {
                        "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                        "example": "https://example.com/overlay",
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "starts_with",
                            "allOf": [
                              {
                                "pattern": "^[^\\s\\p{Cc}]+$"
                              },
                              {
                                "pattern": "^https:\\/\\/.*"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "width": {
                        "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                        "example": 1920,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 16,
                            "maximum": 3840,
                            "multipleOf": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                        "example": 1080,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 16,
                            "maximum": 3840,
                            "multipleOf": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "x": {
                        "description": "Horizontal position of the page in source video pixels. Default 0.",
                        "example": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3840
                      },
                      "y": {
                        "description": "Vertical position of the page in source video pixels. Default 0.",
                        "example": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3840
                      },
                      "frameRate": {
                        "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                        "example": 30,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transparentBackground": {
                        "description": "Render the page with a transparent background. Default `true`.",
                        "example": true,
                        "type": "boolean"
                      },
                      "audioCapture": {
                        "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                        "example": false,
                        "type": "boolean"
                      },
                      "audioMixWeight": {
                        "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                        "example": 0.3,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "description": "Browser overlay configuration. A web page rendered on top of the video. Only the source's primary video and audio track are used. Changes take effect when transcoding restarts, such as on the next ingest. A page larger than the source, or faster than its frame rate, is rendered at the source's size and rate. Always send enabled; other fields left out keep their stored value, or take the default when the overlay is created. When enabled, url, width, height and frameRate are required. Requires the browser overlay feature on the organization and a transcoding profile on the channel."
                  },
                  "timeshiftEnabled": {
                    "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off.",
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authRequired": {
                      "type": "boolean",
                      "description": "`true` if the channel should be protected and require a valid token to watch it."
                    },
                    "channelId": {
                      "type": "string",
                      "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Notes for the channel."
                    },
                    "streamKey": {
                      "type": "string",
                      "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                    },
                    "suspended": {
                      "type": "boolean",
                      "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                    },
                    "isLive": {
                      "type": "boolean",
                      "description": "This value is `true` if there is an active stream for this channel."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    },
                    "transcodingProfileId": {
                      "description": "Transcoding profile currently used for this channel.",
                      "type": "string"
                    },
                    "viewerCountryLimitation": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "deny",
                            "disabled"
                          ],
                          "description": "The mode of the viewer country limitation."
                        },
                        "limited": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                        }
                      },
                      "required": [
                        "mode",
                        "limited"
                      ],
                      "additionalProperties": false
                    },
                    "restreaming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 500,
                            "description": "The URL to restream to, the full RTMP URL."
                          }
                        },
                        "required": [
                          "enabled",
                          "url"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Restreaming configuration."
                    },
                    "recording": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "retentionDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 365,
                          "description": "Retention days for the recording."
                        }
                      },
                      "required": [
                        "enabled",
                        "retentionDays"
                      ],
                      "additionalProperties": false,
                      "description": "Recording configuration."
                    },
                    "browserOverlay": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "`true` to render the page on top of the video.",
                          "example": true
                        },
                        "url": {
                          "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                          "example": "https://example.com/overlay",
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "starts_with",
                              "allOf": [
                                {
                                  "pattern": "^[^\\s\\p{Cc}]+$"
                                },
                                {
                                  "pattern": "^https:\\/\\/.*"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "width": {
                          "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1920,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "height": {
                          "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1080,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "x": {
                          "description": "Horizontal position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "y": {
                          "description": "Vertical position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "frameRate": {
                          "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                          "example": 30,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 60
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "transparentBackground": {
                          "description": "Render the page with a transparent background. Default `true`.",
                          "example": true,
                          "type": "boolean"
                        },
                        "audioCapture": {
                          "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                          "example": false,
                          "type": "boolean"
                        },
                        "audioMixWeight": {
                          "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                          "example": 0.3,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "enabled",
                        "url",
                        "width",
                        "height",
                        "x",
                        "y",
                        "frameRate",
                        "transparentBackground",
                        "audioCapture",
                        "audioMixWeight"
                      ],
                      "additionalProperties": false,
                      "description": "Browser overlay configuration."
                    },
                    "timeshiftEnabled": {
                      "type": "boolean",
                      "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                    }
                  },
                  "required": [
                    "authRequired",
                    "channelId",
                    "name",
                    "notes",
                    "streamKey",
                    "suspended",
                    "isLive",
                    "organizationId",
                    "viewerCountryLimitation",
                    "timeshiftEnabled"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "v1-channels-upsert",
        "summary": "Create or update channel",
        "description": "Creates or updates a channel by channelId.\n\nIf the channelId exists, it will be updated - otherwise created. \n\nchannelId, streamKey or organizationId will not be changed on an existing channel, but are required to match. \n\nRequires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ChannelId (public id) for the channel, required as: `${normalizedOrganizationName}_${normalizedName}_ci_${uuid}`."
            },
            "required": true,
            "description": "ChannelId (public id) for the channel, required as: `${normalizedOrganizationName}_${normalizedName}_ci_${uuid}`."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 50,
                    "description": "Name of the channel."
                  },
                  "transcodingProfileId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Transcoding profile to use for this channel."
                  },
                  "authRequired": {
                    "default": false,
                    "description": "`true` if the channel should be protected and require a valid token to watch it.",
                    "type": "boolean"
                  },
                  "notes": {
                    "default": "",
                    "description": "Notes for the channel.",
                    "type": "string",
                    "maxLength": 500
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization that the channel should be added to. Will not update on existing channel."
                  },
                  "viewerCountryLimitation": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "allow",
                          "deny",
                          "disabled"
                        ],
                        "description": "The mode of the viewer country limitation."
                      },
                      "limited": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                      }
                    },
                    "required": [
                      "mode",
                      "limited"
                    ]
                  },
                  "recording": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "retentionDays": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 365,
                            "description": "Retention days for the recording."
                          }
                        },
                        "required": [
                          "enabled",
                          "retentionDays"
                        ],
                        "description": "Recording configuration."
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Recording configuration, passing `null` will remove saved configuration."
                  },
                  "restreaming": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "url": {
                          "type": "string",
                          "maxLength": 500,
                          "description": "The URL to restream to, the full RTMP URL."
                        }
                      },
                      "required": [
                        "enabled",
                        "url"
                      ]
                    },
                    "description": "Restreaming configuration."
                  },
                  "browserOverlay": {
                    "description": "Browser overlay configuration. Omitting it leaves the stored overlay unchanged; pass `enabled: false` to turn it off.",
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "`true` to render the page on top of the video.",
                        "example": true
                      },
                      "url": {
                        "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                        "example": "https://example.com/overlay",
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 2000,
                            "format": "starts_with",
                            "allOf": [
                              {
                                "pattern": "^[^\\s\\p{Cc}]+$"
                              },
                              {
                                "pattern": "^https:\\/\\/.*"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "width": {
                        "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                        "example": 1920,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 16,
                            "maximum": 3840,
                            "multipleOf": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                        "example": 1080,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 16,
                            "maximum": 3840,
                            "multipleOf": 2
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "x": {
                        "description": "Horizontal position of the page in source video pixels. Default 0.",
                        "example": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3840
                      },
                      "y": {
                        "description": "Vertical position of the page in source video pixels. Default 0.",
                        "example": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3840
                      },
                      "frameRate": {
                        "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                        "example": 30,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transparentBackground": {
                        "description": "Render the page with a transparent background. Default `true`.",
                        "example": true,
                        "type": "boolean"
                      },
                      "audioCapture": {
                        "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                        "example": false,
                        "type": "boolean"
                      },
                      "audioMixWeight": {
                        "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                        "example": 0.3,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "enabled"
                    ]
                  },
                  "timeshiftEnabled": {
                    "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off. Omitting it leaves the stored value unchanged.",
                    "type": "boolean"
                  },
                  "streamKey": {
                    "description": "Stream key (private id) for the channel, required as: `${normalizedOrganizationName}_${normalizedName}_sk_${uuid}`.",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "transcodingProfileId",
                  "organizationId",
                  "viewerCountryLimitation",
                  "recording",
                  "restreaming",
                  "streamKey"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "authRequired": {
                      "type": "boolean",
                      "description": "`true` if the channel should be protected and require a valid token to watch it."
                    },
                    "channelId": {
                      "type": "string",
                      "description": "Channel ID is the public identifier used to connect to the channel.       This id can be shared with viewers as it is only used for viewing the channel.       The identifier is auto-generated and cannot be edited.       Example: `organizationname_channelname_ci_1a1a1a1a-1a1a-2bb2-000a-123ab123ab12`."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Notes for the channel."
                    },
                    "streamKey": {
                      "type": "string",
                      "description": "The Stream Key identifier is a private identifier used when ingesting.   This identifier should be kept secret and only shared with the customer that handles ingest.   The identifier is auto-generated and cannot be edited.   Example: `organizationname_channelname_sk_12be13ab-b22e-1ac3-100c-987bce876ade`."
                    },
                    "suspended": {
                      "type": "boolean",
                      "description": "A channel can be suspended and it is not possible to ingest to a suspended channel."
                    },
                    "isLive": {
                      "type": "boolean",
                      "description": "This value is `true` if there is an active stream for this channel."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    },
                    "transcodingProfileId": {
                      "description": "Transcoding profile currently used for this channel.",
                      "type": "string"
                    },
                    "viewerCountryLimitation": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "allow",
                            "deny",
                            "disabled"
                          ],
                          "description": "The mode of the viewer country limitation."
                        },
                        "limited": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The list of countries to allow or deny, in two letter ISO 3166-1 format."
                        }
                      },
                      "required": [
                        "mode",
                        "limited"
                      ],
                      "additionalProperties": false
                    },
                    "restreaming": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 500,
                            "description": "The URL to restream to, the full RTMP URL."
                          }
                        },
                        "required": [
                          "enabled",
                          "url"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Restreaming configuration."
                    },
                    "recording": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "retentionDays": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 365,
                          "description": "Retention days for the recording."
                        }
                      },
                      "required": [
                        "enabled",
                        "retentionDays"
                      ],
                      "additionalProperties": false,
                      "description": "Recording configuration."
                    },
                    "browserOverlay": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "`true` to render the page on top of the video.",
                          "example": true
                        },
                        "url": {
                          "description": "Page to render. Must be an https URL. Required when the overlay is enabled.",
                          "example": "https://example.com/overlay",
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 2000,
                              "format": "starts_with",
                              "allOf": [
                                {
                                  "pattern": "^[^\\s\\p{Cc}]+$"
                                },
                                {
                                  "pattern": "^https:\\/\\/.*"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "width": {
                          "description": "Page width in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1920,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "height": {
                          "description": "Page height in pixels, an even number from 16 to 3840. Required when the overlay is enabled.",
                          "example": 1080,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 16,
                              "maximum": 3840,
                              "multipleOf": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "x": {
                          "description": "Horizontal position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "y": {
                          "description": "Vertical position of the page in source video pixels. Default 0.",
                          "example": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 3840
                        },
                        "frameRate": {
                          "description": "Frames per second to render the page at, 1 to 60. Required when the overlay is enabled.",
                          "example": 30,
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 60
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "transparentBackground": {
                          "description": "Render the page with a transparent background. Default `true`.",
                          "example": true,
                          "type": "boolean"
                        },
                        "audioCapture": {
                          "description": "Capture audio from the page and mix it into the channel audio. Default `false`.",
                          "example": false,
                          "type": "boolean"
                        },
                        "audioMixWeight": {
                          "description": "Volume of the page audio in the mix, from 0 to 1. Default 0.3.",
                          "example": 0.3,
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "enabled",
                        "url",
                        "width",
                        "height",
                        "x",
                        "y",
                        "frameRate",
                        "transparentBackground",
                        "audioCapture",
                        "audioMixWeight"
                      ],
                      "additionalProperties": false,
                      "description": "Browser overlay configuration."
                    },
                    "timeshiftEnabled": {
                      "type": "boolean",
                      "description": "`true` if viewers can rewind the live stream. Customers can turn it on only when timeshift is enabled for the organization. It plays back the channel's recording, so turning it on requires recording to be on, and turning recording off also turns timeshift off."
                    }
                  },
                  "required": [
                    "authRequired",
                    "channelId",
                    "name",
                    "notes",
                    "streamKey",
                    "suspended",
                    "isLive",
                    "organizationId",
                    "viewerCountryLimitation",
                    "timeshiftEnabled"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-channels-delete",
        "summary": "Delete channel",
        "description": "Delete a channel by channel id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channels"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to delete."
            },
            "required": true,
            "description": "ID of the channel to delete."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channel-groups/{channelGroupId}": {
      "get": {
        "operationId": "v1-channelGroups-findOne",
        "summary": "Get channel group",
        "description": "Get one channel group by id.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "ID of the channel group to get."
            },
            "required": true,
            "description": "ID of the channel group to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "channelGroupId": {
                      "type": "string",
                      "description": "Channel group ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel group."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    }
                  },
                  "required": [
                    "channelGroupId",
                    "name",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "v1-channelGroups-update",
        "summary": "Update channel group",
        "description": "Update a channel group with by channel group id.           If the channel array is passed in the whole array will be updated with the new array.           Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "ID of the channel group to update."
            },
            "required": true,
            "description": "ID of the channel group to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "Name of the channel group.",
                    "type": "string",
                    "maxLength": 50
                  },
                  "channelIds": {
                    "description": "List of channel IDs that should be part of the group.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "channelGroupId": {
                      "type": "string",
                      "description": "Channel group ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel group."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    }
                  },
                  "required": [
                    "channelGroupId",
                    "name",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-channelGroups-delete",
        "summary": "Delete channel group",
        "description": "Delete channel group by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "ID of the channel group to remove."
            },
            "required": true,
            "description": "ID of the channel group to remove."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channel-groups": {
      "get": {
        "operationId": "v1-channelGroups-findMany",
        "summary": "List channel groups",
        "description": "Get a list of channel groups that the provided api key has access to.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "name",
                "channelGroupId"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "channelGroupId": {
                            "type": "string",
                            "description": "Channel group ID."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the channel group."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the channel belongs to."
                          }
                        },
                        "required": [
                          "channelGroupId",
                          "name",
                          "organizationId"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of channel group objects, sorted by and sized according to the query parameters provided."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total amount of channel groups to get."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-channelGroups-create",
        "summary": "Create channel group",
        "description": "Create a new channel group for a specified name and organization.           Optionally add a list of channel ids that should belong to the new channel group.           Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 50,
                    "description": "Name of the channel group."
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization that the channel group should be added to."
                  },
                  "channelIds": {
                    "description": "List of channel IDs that should be part of the group.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "name",
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "channelGroupId": {
                      "type": "string",
                      "description": "Channel group ID."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the channel group."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the channel belongs to."
                    }
                  },
                  "required": [
                    "channelGroupId",
                    "name",
                    "organizationId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channel-groups/{channelGroupId}/channels/{channelId}": {
      "put": {
        "operationId": "v1-channelGroups-addChannel",
        "summary": "Add channel to channel group",
        "description": "Add one channel to a channel group. Specify a `channelGroupId` and a `channelId` you wish to add to the channel group.          Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "ID of the channel group to add channel to."
            },
            "required": true,
            "description": "ID of the channel group to add channel to."
          },
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel that should be added to the channel group."
            },
            "required": true,
            "description": "ID of the channel that should be added to the channel group."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-channelGroups-removeChannel",
        "summary": "Remove channel from channel group",
        "description": "Remove one channel from a channel group. Specify a `channelGroupId` and a `channelId` you wish to remove from the channel group.          Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Channel Groups"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "ID of the channel group to remove channel from."
            },
            "required": true,
            "description": "ID of the channel group to remove channel from."
          },
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to remove from the channel group."
            },
            "required": true,
            "description": "ID of the channel to remove from the channel group."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transcoding-profiles": {
      "get": {
        "operationId": "v1-transcodingProfiles-findMany",
        "summary": "List transcoding profiles",
        "description": "Get a list of transcoding profiles that the provided api key has access to.",
        "tags": [
          "Transcoding Profiles"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "name"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Transcoding profile id."
                          },
                          "name": {
                            "type": "string",
                            "description": "Transcoding profile name."
                          },
                          "notes": {
                            "type": "string",
                            "description": "Transcoding profile notes."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the transcoding profile belongs to."
                          },
                          "config": {
                            "type": "object",
                            "properties": {
                              "streams": {
                                "type": "array",
                                "items": {
                                  "allOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "passthrough": {
                                          "type": "boolean"
                                        },
                                        "matchSource": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "streamId": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "streamId"
                                              ],
                                              "additionalProperties": false,
                                              "description": "Match stream by ID"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "language": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "language"
                                              ],
                                              "additionalProperties": false,
                                              "description": "Match stream by language"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "stream": {
                                                  "type": "string",
                                                  "enum": [
                                                    "best",
                                                    "all"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "stream"
                                              ],
                                              "additionalProperties": false,
                                              "description": "Match all or the best of the selected stream type"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "matchSource"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "audio"
                                            },
                                            "renditions": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string"
                                                  },
                                                  "bitRate": {
                                                    "anyOf": [
                                                      {
                                                        "type": "integer",
                                                        "minimum": 8000,
                                                        "maximum": 500000
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": "string"
                                                  },
                                                  "sampleRate": {
                                                    "anyOf": [
                                                      {
                                                        "type": "integer",
                                                        "minimum": -9007199254740991,
                                                        "maximum": 9007199254740991
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "channels": {
                                                    "anyOf": [
                                                      {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 2
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "codec"
                                                ],
                                                "additionalProperties": false
                                              }
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "renditions"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "video"
                                            },
                                            "gopAlignment": {
                                              "type": "boolean"
                                            },
                                            "renditions": {
                                              "type": "array",
                                              "items": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string"
                                                      },
                                                      "gopSizeMs": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer",
                                                            "minimum": -9007199254740991,
                                                            "maximum": 9007199254740991
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "size": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "width": {
                                                                "type": "integer",
                                                                "minimum": 32,
                                                                "maximum": 3840,
                                                                "multipleOf": 2,
                                                                "description": "The video width in pixels"
                                                              },
                                                              "height": {
                                                                "type": "integer",
                                                                "minimum": 32,
                                                                "maximum": 3840,
                                                                "multipleOf": 2,
                                                                "description": "The video height in pixels"
                                                              }
                                                            },
                                                            "required": [
                                                              "width",
                                                              "height"
                                                            ],
                                                            "additionalProperties": false,
                                                            "description": "Set both width and height in pixels"
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "width": {
                                                                "type": "integer",
                                                                "minimum": 32,
                                                                "maximum": 3840,
                                                                "multipleOf": 2,
                                                                "description": "The video width in pixels"
                                                              }
                                                            },
                                                            "required": [
                                                              "width"
                                                            ],
                                                            "additionalProperties": false,
                                                            "description": "Set width and set height to match aspect ratio"
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "scaleFactor": {
                                                                "type": "number",
                                                                "minimum": 0.1,
                                                                "maximum": 1,
                                                                "description": "The scale factor"
                                                              }
                                                            },
                                                            "required": [
                                                              "scaleFactor"
                                                            ],
                                                            "additionalProperties": false,
                                                            "description": "Set size based on a scale factor on the incoming stream"
                                                          }
                                                        ]
                                                      },
                                                      "bitRate": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer",
                                                            "minimum": 50000,
                                                            "maximum": 50000000
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "codec": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "required": [
                                                      "id",
                                                      "codec"
                                                    ],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string"
                                                      },
                                                      "size": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "width": {
                                                                "type": "integer",
                                                                "minimum": 32,
                                                                "maximum": 3840,
                                                                "multipleOf": 2,
                                                                "description": "The video width in pixels"
                                                              },
                                                              "height": {
                                                                "type": "integer",
                                                                "minimum": 32,
                                                                "maximum": 3840,
                                                                "multipleOf": 2,
                                                                "description": "The video height in pixels"
                                                              }
                                                            },
                                                            "required": [
                                                              "width",
                                                              "height"
                                                            ],
                                                            "additionalProperties": false,
                                                            "description": "Set both width and height in pixels"
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "width": {
                                                                "type": "integer",
                                                                "minimum": 32,
                                                                "maximum": 3840,
                                                                "multipleOf": 2,
                                                                "description": "The video width in pixels"
                                                              }
                                                            },
                                                            "required": [
                                                              "width"
                                                            ],
                                                            "additionalProperties": false,
                                                            "description": "Set width and set height to match aspect ratio"
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "scaleFactor": {
                                                                "type": "number",
                                                                "minimum": 0.1,
                                                                "maximum": 1,
                                                                "description": "The scale factor"
                                                              }
                                                            },
                                                            "required": [
                                                              "scaleFactor"
                                                            ],
                                                            "additionalProperties": false,
                                                            "description": "Set size based on a scale factor on the incoming stream"
                                                          }
                                                        ]
                                                      },
                                                      "codec": {
                                                        "type": "string"
                                                      }
                                                    },
                                                    "required": [
                                                      "id",
                                                      "codec"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                ]
                                              }
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "gopAlignment",
                                            "renditions"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "streams"
                            ],
                            "additionalProperties": false,
                            "description": "Config object that describes how the stream should be transcoded."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "notes",
                          "organizationId",
                          "config"
                        ],
                        "additionalProperties": false,
                        "description": "List of transcoding profile objects, sorted by and sized according to the query parameters provided."
                      }
                    },
                    "total": {
                      "type": "number",
                      "description": "Total amount of transcoding profiles to get."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-transcodingProfiles-create",
        "summary": "Create transcoding profile",
        "description": "Create a new transcoding profile. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Transcoding Profiles"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "streams": {
                        "maxItems": 5,
                        "type": "array",
                        "items": {
                          "allOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "audio"
                                    },
                                    "renditions": {
                                      "maxItems": 10,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "bitRate": {
                                            "default": 96000,
                                            "type": "integer",
                                            "minimum": 8000,
                                            "maximum": 500000
                                          },
                                          "codec": {
                                            "type": "string",
                                            "enum": [
                                              "opus",
                                              "aac"
                                            ]
                                          },
                                          "sampleRate": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          "channels": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 2
                                          }
                                        },
                                        "required": [
                                          "codec"
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "renditions"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "video"
                                    },
                                    "gopAlignment": {
                                      "type": "boolean"
                                    },
                                    "renditions": {
                                      "maxItems": 10,
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "gopSizeMs": {
                                                "type": "integer",
                                                "minimum": 500,
                                                "maximum": 10000
                                              },
                                              "size": {
                                                "description": "The video size, if left unset it will match the source",
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      },
                                                      "height": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video height in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width",
                                                      "height"
                                                    ],
                                                    "description": "Set both width and height in pixels"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width"
                                                    ],
                                                    "description": "Set width and set height to match aspect ratio"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "scaleFactor": {
                                                        "type": "number",
                                                        "minimum": 0.1,
                                                        "maximum": 1,
                                                        "description": "The scale factor"
                                                      }
                                                    },
                                                    "required": [
                                                      "scaleFactor"
                                                    ],
                                                    "description": "Set size based on a scale factor on the incoming stream"
                                                  }
                                                ]
                                              },
                                              "bitRate": {
                                                "default": 500000,
                                                "type": "integer",
                                                "minimum": 50000,
                                                "maximum": 50000000
                                              },
                                              "codec": {
                                                "type": "string",
                                                "enum": [
                                                  "h264",
                                                  "av1"
                                                ]
                                              },
                                              "frameSkipping": {
                                                "type": "string",
                                                "enum": [
                                                  "none",
                                                  "half",
                                                  "quarter",
                                                  "frame_every_1_seconds",
                                                  "frame_every_5_seconds"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "gopSizeMs",
                                              "codec"
                                            ]
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "size": {
                                                "description": "The video size, if left unset it will match the source",
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      },
                                                      "height": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video height in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width",
                                                      "height"
                                                    ],
                                                    "description": "Set both width and height in pixels"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width"
                                                    ],
                                                    "description": "Set width and set height to match aspect ratio"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "scaleFactor": {
                                                        "type": "number",
                                                        "minimum": 0.1,
                                                        "maximum": 1,
                                                        "description": "The scale factor"
                                                      }
                                                    },
                                                    "required": [
                                                      "scaleFactor"
                                                    ],
                                                    "description": "Set size based on a scale factor on the incoming stream"
                                                  }
                                                ]
                                              },
                                              "codec": {
                                                "type": "string",
                                                "enum": [
                                                  "mjpeg"
                                                ]
                                              },
                                              "frameSkipping": {
                                                "type": "string",
                                                "enum": [
                                                  "frame_every_1_seconds",
                                                  "frame_every_5_seconds"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "frameSkipping"
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "gopAlignment",
                                    "renditions"
                                  ]
                                }
                              ],
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "passthrough": {
                                  "type": "boolean"
                                },
                                "matchSource": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "streamId": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "streamId"
                                      ],
                                      "description": "Match stream by ID"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "language": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "language"
                                      ],
                                      "description": "Match stream by language"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "stream": {
                                          "type": "string",
                                          "enum": [
                                            "best",
                                            "all"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "stream"
                                      ],
                                      "description": "Match all or the best of the selected stream type"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "matchSource"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "streams"
                    ]
                  }
                },
                "required": [
                  "name",
                  "notes",
                  "organizationId",
                  "config"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Transcoding profile id."
                    },
                    "name": {
                      "type": "string",
                      "description": "Transcoding profile name."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Transcoding profile notes."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the transcoding profile belongs to."
                    },
                    "config": {
                      "type": "object",
                      "properties": {
                        "streams": {
                          "type": "array",
                          "items": {
                            "allOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "passthrough": {
                                    "type": "boolean"
                                  },
                                  "matchSource": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "streamId": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "streamId"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by ID"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "language": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "language"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by language"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "stream": {
                                            "type": "string",
                                            "enum": [
                                              "best",
                                              "all"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "stream"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match all or the best of the selected stream type"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "matchSource"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "audio"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "bitRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 8000,
                                                  "maximum": 500000
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "codec": {
                                              "type": "string"
                                            },
                                            "sampleRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "channels": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 2
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "video"
                                      },
                                      "gopAlignment": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "gopSizeMs": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "bitRate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 50000,
                                                      "maximum": 50000000
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "gopAlignment",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "type": "object"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "streams"
                      ],
                      "additionalProperties": false,
                      "description": "Config object that describes how the stream should be transcoded."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "notes",
                    "organizationId",
                    "config"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/transcoding-profiles/{transcodingProfileId}": {
      "get": {
        "operationId": "v1-transcodingProfiles-findOne",
        "summary": "Get transcoding profile",
        "description": "Get a transcoding profile by id.",
        "tags": [
          "Transcoding Profiles"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "transcodingProfileId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "ID of the transcoding profile to get."
            },
            "required": true,
            "description": "ID of the transcoding profile to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Transcoding profile id."
                    },
                    "name": {
                      "type": "string",
                      "description": "Transcoding profile name."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Transcoding profile notes."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the transcoding profile belongs to."
                    },
                    "config": {
                      "type": "object",
                      "properties": {
                        "streams": {
                          "type": "array",
                          "items": {
                            "allOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "passthrough": {
                                    "type": "boolean"
                                  },
                                  "matchSource": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "streamId": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "streamId"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by ID"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "language": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "language"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by language"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "stream": {
                                            "type": "string",
                                            "enum": [
                                              "best",
                                              "all"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "stream"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match all or the best of the selected stream type"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "matchSource"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "audio"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "bitRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 8000,
                                                  "maximum": 500000
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "codec": {
                                              "type": "string"
                                            },
                                            "sampleRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "channels": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 2
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "video"
                                      },
                                      "gopAlignment": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "gopSizeMs": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "bitRate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 50000,
                                                      "maximum": 50000000
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "gopAlignment",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "type": "object"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "streams"
                      ],
                      "additionalProperties": false,
                      "description": "Config object that describes how the stream should be transcoded."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "notes",
                    "organizationId",
                    "config"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "v1-transcodingProfiles-update",
        "summary": "Update transcoding profile",
        "description": "Update a transcoding profile by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Transcoding Profiles"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "transcodingProfileId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "name": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "streams": {
                        "maxItems": 5,
                        "type": "array",
                        "items": {
                          "allOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                }
                              },
                              "required": [
                                "id"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "passthrough": {
                                  "type": "boolean"
                                },
                                "matchSource": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "streamId": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "streamId"
                                      ],
                                      "description": "Match stream by ID"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "language": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "language"
                                      ],
                                      "description": "Match stream by language"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "stream": {
                                          "type": "string",
                                          "enum": [
                                            "best",
                                            "all"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "stream"
                                      ],
                                      "description": "Match all or the best of the selected stream type"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "matchSource"
                              ]
                            },
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "audio"
                                    },
                                    "renditions": {
                                      "maxItems": 10,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "bitRate": {
                                            "default": 96000,
                                            "type": "integer",
                                            "minimum": 8000,
                                            "maximum": 500000
                                          },
                                          "codec": {
                                            "type": "string",
                                            "enum": [
                                              "opus",
                                              "aac"
                                            ]
                                          },
                                          "sampleRate": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          "channels": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "codec"
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "renditions"
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "video"
                                    },
                                    "gopAlignment": {
                                      "type": "boolean"
                                    },
                                    "renditions": {
                                      "maxItems": 10,
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "gopSizeMs": {
                                                "type": "integer",
                                                "minimum": 500,
                                                "maximum": 10000
                                              },
                                              "size": {
                                                "description": "The video size, if left unset it will match the source",
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      },
                                                      "height": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video height in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width",
                                                      "height"
                                                    ],
                                                    "description": "Set both width and height in pixels"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width"
                                                    ],
                                                    "description": "Set width and set height to match aspect ratio"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "scaleFactor": {
                                                        "type": "number",
                                                        "minimum": 0.1,
                                                        "maximum": 1,
                                                        "description": "The scale factor"
                                                      }
                                                    },
                                                    "required": [
                                                      "scaleFactor"
                                                    ],
                                                    "description": "Set size based on a scale factor on the incoming stream"
                                                  }
                                                ]
                                              },
                                              "bitRate": {
                                                "default": 500000,
                                                "type": "integer",
                                                "minimum": 50000,
                                                "maximum": 50000000
                                              },
                                              "codec": {
                                                "type": "string",
                                                "enum": [
                                                  "h264",
                                                  "av1"
                                                ]
                                              },
                                              "frameSkipping": {
                                                "type": "string",
                                                "enum": [
                                                  "none",
                                                  "half",
                                                  "quarter",
                                                  "frame_every_1_seconds",
                                                  "frame_every_5_seconds"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "gopSizeMs",
                                              "codec"
                                            ]
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "size": {
                                                "description": "The video size, if left unset it will match the source",
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      },
                                                      "height": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video height in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width",
                                                      "height"
                                                    ],
                                                    "description": "Set both width and height in pixels"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "width": {
                                                        "type": "integer",
                                                        "minimum": 32,
                                                        "maximum": 3840,
                                                        "multipleOf": 2,
                                                        "description": "The video width in pixels"
                                                      }
                                                    },
                                                    "required": [
                                                      "width"
                                                    ],
                                                    "description": "Set width and set height to match aspect ratio"
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "scaleFactor": {
                                                        "type": "number",
                                                        "minimum": 0.1,
                                                        "maximum": 1,
                                                        "description": "The scale factor"
                                                      }
                                                    },
                                                    "required": [
                                                      "scaleFactor"
                                                    ],
                                                    "description": "Set size based on a scale factor on the incoming stream"
                                                  }
                                                ]
                                              },
                                              "codec": {
                                                "type": "string",
                                                "enum": [
                                                  "mjpeg"
                                                ]
                                              },
                                              "frameSkipping": {
                                                "type": "string",
                                                "enum": [
                                                  "frame_every_1_seconds",
                                                  "frame_every_5_seconds"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "codec",
                                              "frameSkipping"
                                            ]
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "gopAlignment",
                                    "renditions"
                                  ]
                                }
                              ],
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "streams"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Transcoding profile id."
                    },
                    "name": {
                      "type": "string",
                      "description": "Transcoding profile name."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Transcoding profile notes."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the transcoding profile belongs to."
                    },
                    "config": {
                      "type": "object",
                      "properties": {
                        "streams": {
                          "type": "array",
                          "items": {
                            "allOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "passthrough": {
                                    "type": "boolean"
                                  },
                                  "matchSource": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "streamId": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "streamId"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by ID"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "language": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "language"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by language"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "stream": {
                                            "type": "string",
                                            "enum": [
                                              "best",
                                              "all"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "stream"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match all or the best of the selected stream type"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "matchSource"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "audio"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "bitRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 8000,
                                                  "maximum": 500000
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "codec": {
                                              "type": "string"
                                            },
                                            "sampleRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "channels": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 2
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "video"
                                      },
                                      "gopAlignment": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "gopSizeMs": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "bitRate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 50000,
                                                      "maximum": 50000000
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "gopAlignment",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "type": "object"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "streams"
                      ],
                      "additionalProperties": false,
                      "description": "Config object that describes how the stream should be transcoded."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "notes",
                    "organizationId",
                    "config"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-transcodingProfiles-delete",
        "summary": "Delete transcoding profile",
        "description": "Delete a transcoding profile by id.           Channels that referenced the deleted transcoding profile will be unusable until assigned a new transcoding profile.          Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Transcoding Profiles"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "transcodingProfileId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "required": true
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channels/{channelId}/transcoding-profile": {
      "get": {
        "operationId": "v1-transcodingProfiles-findOneByChannel",
        "summary": "Get transcoding profile by channel",
        "description": "Get the transcoding profile configured for the specific channel.",
        "tags": [
          "Transcoding Profiles"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to get the transcoding profile for."
            },
            "required": true,
            "description": "ID of the channel to get the transcoding profile for."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Transcoding profile id."
                    },
                    "name": {
                      "type": "string",
                      "description": "Transcoding profile name."
                    },
                    "notes": {
                      "type": "string",
                      "description": "Transcoding profile notes."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the transcoding profile belongs to."
                    },
                    "config": {
                      "type": "object",
                      "properties": {
                        "streams": {
                          "type": "array",
                          "items": {
                            "allOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "passthrough": {
                                    "type": "boolean"
                                  },
                                  "matchSource": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "streamId": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "streamId"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by ID"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "language": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "language"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match stream by language"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "stream": {
                                            "type": "string",
                                            "enum": [
                                              "best",
                                              "all"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "stream"
                                        ],
                                        "additionalProperties": false,
                                        "description": "Match all or the best of the selected stream type"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "matchSource"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "audio"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "bitRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 8000,
                                                  "maximum": 500000
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "codec": {
                                              "type": "string"
                                            },
                                            "sampleRate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "channels": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 2
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "video"
                                      },
                                      "gopAlignment": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "gopSizeMs": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "bitRate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 50000,
                                                      "maximum": 50000000
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "size": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        },
                                                        "height": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video height in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width",
                                                        "height"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set both width and height in pixels"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "width": {
                                                          "type": "integer",
                                                          "minimum": 32,
                                                          "maximum": 3840,
                                                          "multipleOf": 2,
                                                          "description": "The video width in pixels"
                                                        }
                                                      },
                                                      "required": [
                                                        "width"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set width and set height to match aspect ratio"
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "scaleFactor": {
                                                          "type": "number",
                                                          "minimum": 0.1,
                                                          "maximum": 1,
                                                          "description": "The scale factor"
                                                        }
                                                      },
                                                      "required": [
                                                        "scaleFactor"
                                                      ],
                                                      "additionalProperties": false,
                                                      "description": "Set size based on a scale factor on the incoming stream"
                                                    }
                                                  ]
                                                },
                                                "codec": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "gopAlignment",
                                      "renditions"
                                    ],
                                    "additionalProperties": false
                                  }
                                ],
                                "type": "object"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "streams"
                      ],
                      "additionalProperties": false,
                      "description": "Config object that describes how the stream should be transcoded."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "notes",
                    "organizationId",
                    "config"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/profile": {
      "get": {
        "operationId": "v1-profile-profile",
        "summary": "Get profile",
        "description": "Get profile info based on the api token used to make the request.",
        "tags": [
          "Profile"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiKey": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Name of the api key used to authorize the request."
                        },
                        "scope": {
                          "type": "string",
                          "enum": [
                            "read",
                            "read_write"
                          ],
                          "description": "The scope configured for the api key."
                        }
                      },
                      "required": [
                        "name",
                        "scope"
                      ],
                      "additionalProperties": false,
                      "description": "Information about the api key"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Name of the user that the api key used belongs to."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email of the user that the api key used belongs to."
                        }
                      },
                      "required": [
                        "name",
                        "email"
                      ],
                      "additionalProperties": false
                    },
                    "organizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Organization name."
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization id."
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "administrator",
                              "channel_manager",
                              "user"
                            ],
                            "description": "The api key role in this organization"
                          }
                        },
                        "required": [
                          "name",
                          "id",
                          "role"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of organizations and the permissions the used api key has in them."
                    }
                  },
                  "required": [
                    "apiKey",
                    "user",
                    "organizations"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/channels/{channelId}/ingest": {
      "get": {
        "operationId": "v1-ingest-ingest",
        "summary": "Get ingest information",
        "description": "Get ingest information for a channel.",
        "tags": [
          "Ingest"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to get."
            },
            "required": true,
            "description": "ID of the channel to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "active": {
                      "type": "boolean",
                      "description": "Whether or not the ingest is currently active."
                    },
                    "playUrl": {
                      "type": "object",
                      "properties": {
                        "rtmp": {
                          "description": "RTMP URL that can be used to play the stream.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "srt": {
                          "description": "SRT URL that can be used to play the stream.",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "rtmp",
                        "srt"
                      ],
                      "additionalProperties": false,
                      "description": "URLs that can be used to play the stream."
                    }
                  },
                  "required": [
                    "active",
                    "playUrl"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-ingest-drop",
        "summary": "Drop ingest",
        "description": "Drop ingest for a channel.",
        "tags": [
          "Ingest"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel to drop."
            },
            "required": true,
            "description": "ID of the channel to drop."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Drop requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status": {
      "get": {
        "operationId": "v1-analytics-channelStatus",
        "summary": "Get channel status",
        "description": "Get live status and viewers for all channels in an organization.",
        "tags": [
          "Status"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "ID of the organization to get analytics data for."
            },
            "required": true,
            "description": "ID of the organization to get analytics data for."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "viewersTotal": {
                      "type": "number",
                      "description": "Total number of viewers."
                    },
                    "ingressBps": {
                      "type": "number",
                      "description": "Ingress bitrate in bits per second (bps)."
                    },
                    "egressBps": {
                      "type": "number",
                      "description": "Egress bitrate in bits per second (bps)."
                    },
                    "channels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "channelId": {
                            "type": "string",
                            "description": "Channel ID that identifies a specific channel."
                          },
                          "viewers": {
                            "type": "number",
                            "description": "Current number of viewers."
                          },
                          "isLive": {
                            "type": "boolean",
                            "description": "This value is `true` if there is an active stream for this channel."
                          }
                        },
                        "required": [
                          "channelId",
                          "viewers",
                          "isLive"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of status per channel."
                    }
                  },
                  "required": [
                    "viewersTotal",
                    "ingressBps",
                    "egressBps",
                    "channels"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status/ingest": {
      "get": {
        "operationId": "v1-analytics-ingestStatus",
        "summary": "Get ingest status",
        "description": "Get the current ingest of every channel in an organization that has one: protocol, ingress bitrate, keyframe delta, packet arrival delta and the tracks reported by the encoder.\n        A channel that is not listed has nothing being ingested.\n        Use the optional query parameters `channelId` and `channelGroupId` to filter the channels.\n        Values are at most 15 seconds old.",
        "tags": [
          "Status"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "ID of the organization to get ingest status for."
            },
            "required": true,
            "description": "ID of the organization to get ingest status for."
          },
          {
            "in": "query",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "Comma separated list of channel IDs to limit the response to."
            },
            "description": "Comma separated list of channel IDs to limit the response to."
          },
          {
            "in": "query",
            "name": "channelGroupId",
            "schema": {
              "type": "string",
              "description": "Only return channels in this channel group."
            },
            "description": "Only return channels in this channel group."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "channels": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "channelId": {
                            "type": "string",
                            "description": "Channel ID that identifies a specific channel."
                          },
                          "protocol": {
                            "description": "Protocol of the current ingest: `rtmp`, `srt`, `webrtc`, `moq`, `moqws` or `vindral-ws`.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "startedAt": {
                            "description": "ISO 8601 timestamp of when the current ingest started.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "ingressBps": {
                            "description": "Ingress bitrate in bits per second (bps) over the last minute. `null` until the ingest server reports it.",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "video": {
                            "type": "object",
                            "properties": {
                              "keyframeDeltaMs": {
                                "description": "Time in milliseconds between the most recent video keyframes. Typically configured to 1 or 2 seconds.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "packetArrivalDeltaAvgMs": {
                                "description": "Average time in milliseconds between consecutive packets arriving at ingest over the last 30 seconds. Ideally 1000/framerate for video, e.g. 20 ms at 50 fps and 33.3 ms at 30 fps.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "packetArrivalDeltaMaxMs": {
                                "description": "Longest time in milliseconds between two consecutive packets arriving at ingest over the last 30 seconds.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "keyframeDeltaMs",
                              "packetArrivalDeltaAvgMs",
                              "packetArrivalDeltaMaxMs"
                            ],
                            "additionalProperties": false,
                            "description": "Current values for the video of the ingest, combined over all video tracks."
                          },
                          "audio": {
                            "type": "object",
                            "properties": {
                              "packetArrivalDeltaAvgMs": {
                                "description": "Average time in milliseconds between consecutive packets arriving at ingest over the last 30 seconds. Ideally 1000/framerate for video, e.g. 20 ms at 50 fps and 33.3 ms at 30 fps.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "packetArrivalDeltaMaxMs": {
                                "description": "Longest time in milliseconds between two consecutive packets arriving at ingest over the last 30 seconds.",
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "packetArrivalDeltaAvgMs",
                              "packetArrivalDeltaMaxMs"
                            ],
                            "additionalProperties": false,
                            "description": "Current values for the audio of the ingest, combined over all audio tracks."
                          },
                          "tracks": {
                            "type": "array",
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "video"
                                    },
                                    "codec": {
                                      "type": "string",
                                      "description": "Video codec, e.g. `h264`."
                                    },
                                    "width": {
                                      "type": "number",
                                      "description": "Width in pixels."
                                    },
                                    "height": {
                                      "type": "number",
                                      "description": "Height in pixels."
                                    },
                                    "frameRate": {
                                      "type": "number",
                                      "description": "Frames per second."
                                    },
                                    "bitRate": {
                                      "type": "number",
                                      "description": "Bitrate in bits per second (bps) as reported by the encoder."
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "codec",
                                    "width",
                                    "height",
                                    "frameRate",
                                    "bitRate"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "audio"
                                    },
                                    "codec": {
                                      "type": "string",
                                      "description": "Audio codec, e.g. `aac`."
                                    },
                                    "sampleRate": {
                                      "type": "number",
                                      "description": "Sample rate in hertz."
                                    },
                                    "channels": {
                                      "type": "number",
                                      "description": "Number of audio channels."
                                    },
                                    "bitRate": {
                                      "type": "number",
                                      "description": "Bitrate in bits per second (bps) as reported by the encoder."
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "codec",
                                    "sampleRate",
                                    "channels",
                                    "bitRate"
                                  ],
                                  "additionalProperties": false
                                }
                              ],
                              "type": "object"
                            },
                            "description": "Tracks of the current ingest as reported by the encoder when the ingest started."
                          }
                        },
                        "required": [
                          "channelId",
                          "protocol",
                          "startedAt",
                          "ingressBps",
                          "video",
                          "audio",
                          "tracks"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Every channel with an ingest. A channel that is not listed has nothing being ingested."
                    }
                  },
                  "required": [
                    "channels"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/analytics/current": {
      "get": {
        "operationId": "v1-analytics-current",
        "summary": "Get current viewers",
        "description": "Get current number of viewers for an organization.\n          Use the optional query parameters `channelId`, `countryCode` and `continent` to filter the results.\n          Use the optional query parameter `groupBy` to group the results by `country` or `channel`.",
        "tags": [
          "Analytics"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "ID of the organization to get analytics data for."
            },
            "required": true,
            "description": "ID of the organization to get analytics data for."
          },
          {
            "in": "query",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "Filters for the specific channel."
            },
            "description": "Filters for the specific channel."
          },
          {
            "in": "query",
            "name": "countryCode",
            "schema": {
              "type": "string",
              "description": "Country code (ISO 3166-1 alpha-2) to filter the data on a specific country. Special code `unknown` is used when a lookup was not possible.\n\nExample: `SE` to filter for Sweden."
            },
            "description": "Country code (ISO 3166-1 alpha-2) to filter the data on a specific country. Special code `unknown` is used when a lookup was not possible.\n\nExample: `SE` to filter for Sweden."
          },
          {
            "in": "query",
            "name": "continent",
            "schema": {
              "type": "string",
              "description": "Continent code to filter the data for a specific continent.\nValid continent codes:\n- `AF`: Africa\n- `AN`: Antarctica\n- `AS`: Asia\n- `EU`: Europe\n- `NA`: North America\n- `OC`: Oceania\n- `SA`: South America\n- `unknown`: Unknown continent. Special code `unknown` is used when a lookup was not possible.\n\nExample: `EU` to filter for Europe.\n"
            },
            "description": "Continent code to filter the data for a specific continent.\nValid continent codes:\n- `AF`: Africa\n- `AN`: Antarctica\n- `AS`: Asia\n- `EU`: Europe\n- `NA`: North America\n- `OC`: Oceania\n- `SA`: South America\n- `unknown`: Unknown continent. Special code `unknown` is used when a lookup was not possible.\n\nExample: `EU` to filter for Europe.\n"
          },
          {
            "in": "query",
            "name": "groupBy",
            "schema": {
              "type": "string",
              "enum": [
                "channel",
                "country"
              ],
              "description": "Optionally group by channel or country. Default is no grouping. Valid values: `channel`, `country`."
            },
            "description": "Optionally group by channel or country. Default is no grouping. Valid values: `channel`, `country`."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "viewers": {
                              "type": "number",
                              "description": "Current number of viewers."
                            }
                          },
                          "required": [
                            "viewers"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "countries": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "country": {
                                    "type": "string",
                                    "description": "Country name."
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "description": "Country code in ISO 3166-1 alpha-2 format."
                                  },
                                  "viewers": {
                                    "type": "number",
                                    "description": "Current number of viewers."
                                  }
                                },
                                "required": [
                                  "country",
                                  "countryCode",
                                  "viewers"
                                ],
                                "additionalProperties": false
                              },
                              "description": "List of countries with current viewers."
                            }
                          },
                          "required": [
                            "countries"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "channels": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "channelId": {
                                "type": "string",
                                "description": "Channel ID that the viewers are watching, identifies a specific channel."
                              },
                              "viewers": {
                                "type": "number",
                                "description": "Current number of viewers."
                              }
                            },
                            "required": [
                              "channelId",
                              "viewers"
                            ],
                            "additionalProperties": false
                          },
                          "description": "List of channels with current viewers."
                        }
                      },
                      "required": [
                        "channels"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/analytics/metrics": {
      "get": {
        "operationId": "v1-analytics-metrics",
        "summary": "Get metrics",
        "description": "Get metrics.\n        Use the optional query parameters `channelId`, `countryCode` and `continent` to filter the results.\n        Metrics are calculated for the time range between `from` and `to`.\n        By default all available metrics are returned, to limit the response use the optional query parameter `fields` to specify which metrics to return.\n\n**Note that `viewerBitrateAverage`, `totalIngressBytes`, `restartCount`, `hlsEgressBytes`, `clippingBytes`, `rtmpEgressBytes` and `restreamBytes` disregards `country` and `continent` filters!**",
        "tags": [
          "Analytics"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "ID of the organization to get analytics data for."
            },
            "required": true,
            "description": "ID of the organization to get analytics data for."
          },
          {
            "in": "query",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "Filters for the specific channel."
            },
            "description": "Filters for the specific channel."
          },
          {
            "in": "query",
            "name": "countryCode",
            "schema": {
              "type": "string",
              "description": "Country code (ISO 3166-1 alpha-2) to filter the data on a specific country. Special code `unknown` is used when a lookup was not possible.\n\nExample: `SE` to filter for Sweden."
            },
            "description": "Country code (ISO 3166-1 alpha-2) to filter the data on a specific country. Special code `unknown` is used when a lookup was not possible.\n\nExample: `SE` to filter for Sweden."
          },
          {
            "in": "query",
            "name": "continent",
            "schema": {
              "type": "string",
              "description": "Continent code to filter the data for a specific continent.\nValid continent codes:\n- `AF`: Africa\n- `AN`: Antarctica\n- `AS`: Asia\n- `EU`: Europe\n- `NA`: North America\n- `OC`: Oceania\n- `SA`: South America\n- `unknown`: Unknown continent. Special code `unknown` is used when a lookup was not possible.\n\nExample: `EU` to filter for Europe.\n"
            },
            "description": "Continent code to filter the data for a specific continent.\nValid continent codes:\n- `AF`: Africa\n- `AN`: Antarctica\n- `AS`: Asia\n- `EU`: Europe\n- `NA`: North America\n- `OC`: Oceania\n- `SA`: South America\n- `unknown`: Unknown continent. Special code `unknown` is used when a lookup was not possible.\n\nExample: `EU` to filter for Europe.\n"
          },
          {
            "in": "query",
            "name": "fields",
            "schema": {
              "type": "string",
              "description": "Limit the response by selecting specific fields as a comma separated list. Available fields are:\n\n- `viewerSessions`\n- `viewerSeconds`\n- `viewerSessionsAvgDurationSeconds`\n- `viewerBitrateAverage`\n- `totalEgressBytes`\n- `totalIngressBytes`\n- `timeToFirstFrameMedianMs`\n- `roundTripTimeMedianMs`\n- `browsers`\n- `os`\n- `devices`\n- `restartCount`\n- `hlsEgressBytes`\n- `clippingBytes`\n- `rtmpEgressBytes`\n- `restreamBytes`\n\nExample: `viewerSessions,viewerBitrateAverage` to only get viewer sessions and average bitrate."
            },
            "description": "Limit the response by selecting specific fields as a comma separated list. Available fields are:\n\n- `viewerSessions`\n- `viewerSeconds`\n- `viewerSessionsAvgDurationSeconds`\n- `viewerBitrateAverage`\n- `totalEgressBytes`\n- `totalIngressBytes`\n- `timeToFirstFrameMedianMs`\n- `roundTripTimeMedianMs`\n- `browsers`\n- `os`\n- `devices`\n- `restartCount`\n- `hlsEgressBytes`\n- `clippingBytes`\n- `rtmpEgressBytes`\n- `restreamBytes`\n\nExample: `viewerSessions,viewerBitrateAverage` to only get viewer sessions and average bitrate."
          },
          {
            "in": "query",
            "name": "groupBy",
            "schema": {
              "type": "string",
              "enum": [
                "channel",
                "country"
              ],
              "description": "Optionally group by channel or country. Default is no grouping. Valid values: `channel`, `country`."
            },
            "description": "Optionally group by channel or country. Default is no grouping. Valid values: `channel`, `country`."
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "countries": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "viewerSessions": {
                                    "type": "number",
                                    "description": "Number of new viewer sessions in the given time range."
                                  },
                                  "viewerSeconds": {
                                    "type": "number",
                                    "description": "Total time of viewer sessions in seconds."
                                  },
                                  "viewerSessionsAvgDurationSeconds": {
                                    "type": "number",
                                    "description": "Average duration of every started viewer session in seconds."
                                  },
                                  "viewerBitrateAverage": {
                                    "type": "number",
                                    "description": "Average bit rate of all sessions over the selected time period. **Disregards country and continent filters.**"
                                  },
                                  "totalEgressBytes": {
                                    "type": "number",
                                    "description": "Total amount of data (bytes) transferred to user sessions over the selected time period."
                                  },
                                  "totalIngressBytes": {
                                    "type": "number",
                                    "description": "Total amount of data (bytes) transferred to ingest server over the selected time period. **Disregards country and continent filters.**"
                                  },
                                  "restartCount": {
                                    "type": "number",
                                    "description": "Total times ingest has started over the selected time period. This includes controlled restarts."
                                  },
                                  "hlsEgressBytes": {
                                    "type": "number",
                                    "description": "Total amount of HLS egress data (bytes) over the selected time period."
                                  },
                                  "clippingBytes": {
                                    "type": "number",
                                    "description": "Total amount of clipping data (bytes) over the selected time period."
                                  },
                                  "rtmpEgressBytes": {
                                    "type": "number",
                                    "description": "Total amount of RTMP egress data (bytes) over the selected time period."
                                  },
                                  "restreamBytes": {
                                    "type": "number",
                                    "description": "Total amount of restream data (bytes) over the selected time period."
                                  },
                                  "timeToFirstFrameMedianMs": {
                                    "description": "Median time to first frame in milliseconds, represents the time from creation of player until media starts playing.",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "roundTripTimeMedianMs": {
                                    "description": "Median round trip time in milliseconds, represents the time it takes for a request from a viewer to reach the server and get back.",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "browserDistribution": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                                        },
                                        "value": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "Percentage of the item."
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Distribution of viewer browsers in percentages."
                                  },
                                  "osDistribution": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                                        },
                                        "value": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "Percentage of the item."
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Distribution of viewer OS in percentages."
                                  },
                                  "deviceDistribution": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                                        },
                                        "value": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "Percentage of the item."
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Distribution of viewer devices in percentages."
                                  },
                                  "country": {
                                    "type": "string",
                                    "description": "Country name."
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "description": "Country code in ISO 3166-1 alpha-2 format."
                                  }
                                },
                                "required": [
                                  "country",
                                  "countryCode"
                                ],
                                "additionalProperties": false
                              },
                              "description": "List of countries with metrics."
                            }
                          },
                          "required": [
                            "countries"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "channels": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "viewerSessions": {
                                    "type": "number",
                                    "description": "Number of new viewer sessions in the given time range."
                                  },
                                  "viewerSeconds": {
                                    "type": "number",
                                    "description": "Total time of viewer sessions in seconds."
                                  },
                                  "viewerSessionsAvgDurationSeconds": {
                                    "type": "number",
                                    "description": "Average duration of every started viewer session in seconds."
                                  },
                                  "viewerBitrateAverage": {
                                    "type": "number",
                                    "description": "Average bit rate of all sessions over the selected time period. **Disregards country and continent filters.**"
                                  },
                                  "totalEgressBytes": {
                                    "type": "number",
                                    "description": "Total amount of data (bytes) transferred to user sessions over the selected time period."
                                  },
                                  "totalIngressBytes": {
                                    "type": "number",
                                    "description": "Total amount of data (bytes) transferred to ingest server over the selected time period. **Disregards country and continent filters.**"
                                  },
                                  "restartCount": {
                                    "type": "number",
                                    "description": "Total times ingest has started over the selected time period. This includes controlled restarts."
                                  },
                                  "hlsEgressBytes": {
                                    "type": "number",
                                    "description": "Total amount of HLS egress data (bytes) over the selected time period."
                                  },
                                  "clippingBytes": {
                                    "type": "number",
                                    "description": "Total amount of clipping data (bytes) over the selected time period."
                                  },
                                  "rtmpEgressBytes": {
                                    "type": "number",
                                    "description": "Total amount of RTMP egress data (bytes) over the selected time period."
                                  },
                                  "restreamBytes": {
                                    "type": "number",
                                    "description": "Total amount of restream data (bytes) over the selected time period."
                                  },
                                  "timeToFirstFrameMedianMs": {
                                    "description": "Median time to first frame in milliseconds, represents the time from creation of player until media starts playing.",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "roundTripTimeMedianMs": {
                                    "description": "Median round trip time in milliseconds, represents the time it takes for a request from a viewer to reach the server and get back.",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "browserDistribution": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                                        },
                                        "value": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "Percentage of the item."
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Distribution of viewer browsers in percentages."
                                  },
                                  "osDistribution": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                                        },
                                        "value": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "Percentage of the item."
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Distribution of viewer OS in percentages."
                                  },
                                  "deviceDistribution": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                                        },
                                        "value": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "Percentage of the item."
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Distribution of viewer devices in percentages."
                                  },
                                  "channelId": {
                                    "type": "string",
                                    "description": "Channel ID that identifies a specific channel."
                                  }
                                },
                                "required": [
                                  "channelId"
                                ],
                                "additionalProperties": false
                              },
                              "description": "List of channels with metrics."
                            }
                          },
                          "required": [
                            "channels"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "viewerSessions": {
                          "type": "number",
                          "description": "Number of new viewer sessions in the given time range."
                        },
                        "viewerSeconds": {
                          "type": "number",
                          "description": "Total time of viewer sessions in seconds."
                        },
                        "viewerSessionsAvgDurationSeconds": {
                          "type": "number",
                          "description": "Average duration of every started viewer session in seconds."
                        },
                        "viewerBitrateAverage": {
                          "type": "number",
                          "description": "Average bit rate of all sessions over the selected time period. **Disregards country and continent filters.**"
                        },
                        "totalEgressBytes": {
                          "type": "number",
                          "description": "Total amount of data (bytes) transferred to user sessions over the selected time period."
                        },
                        "totalIngressBytes": {
                          "type": "number",
                          "description": "Total amount of data (bytes) transferred to ingest server over the selected time period. **Disregards country and continent filters.**"
                        },
                        "restartCount": {
                          "type": "number",
                          "description": "Total times ingest has started over the selected time period. This includes controlled restarts."
                        },
                        "hlsEgressBytes": {
                          "type": "number",
                          "description": "Total amount of HLS egress data (bytes) over the selected time period."
                        },
                        "clippingBytes": {
                          "type": "number",
                          "description": "Total amount of clipping data (bytes) over the selected time period."
                        },
                        "rtmpEgressBytes": {
                          "type": "number",
                          "description": "Total amount of RTMP egress data (bytes) over the selected time period."
                        },
                        "restreamBytes": {
                          "type": "number",
                          "description": "Total amount of restream data (bytes) over the selected time period."
                        },
                        "timeToFirstFrameMedianMs": {
                          "description": "Median time to first frame in milliseconds, represents the time from creation of player until media starts playing.",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "roundTripTimeMedianMs": {
                          "description": "Median round trip time in milliseconds, represents the time it takes for a request from a viewer to reach the server and get back.",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "browserDistribution": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "Percentage of the item."
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Distribution of viewer browsers in percentages."
                        },
                        "osDistribution": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "Percentage of the item."
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Distribution of viewer OS in percentages."
                        },
                        "deviceDistribution": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Name of the item, e.g. Chrome, Firefox, Windows, iPhone, etc."
                              },
                              "value": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "Percentage of the item."
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Distribution of viewer devices in percentages."
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/analytics/time-series": {
      "get": {
        "operationId": "v1-analytics-timeSeries",
        "summary": "Get time series",
        "description": "Get time series.\n        Use the optional query parameters `channelId`, `countryCode` and `continent` to filter the results.\n        Time series are calculated for the time range between `from` and `to` (rounded to the nearest minute).\n        By default all available time series are returned, to limit the response use the optional query parameter `fields` to specify which metrics to return.\n\n**Note that `ingressBps`, `keyframeDelta`, `averagePacketArrivalTime` and `highestPacketArrivalTime` disregards `country` and `continent` filters and is not returned when grouped by country!**",
        "tags": [
          "Analytics"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "ID of the organization to get analytics data for."
            },
            "required": true,
            "description": "ID of the organization to get analytics data for."
          },
          {
            "in": "query",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "Filters for the specific channel."
            },
            "description": "Filters for the specific channel."
          },
          {
            "in": "query",
            "name": "countryCode",
            "schema": {
              "type": "string",
              "description": "Country code (ISO 3166-1 alpha-2) to filter the data on a specific country. Special code `unknown` is used when a lookup was not possible.\n\nExample: `SE` to filter for Sweden."
            },
            "description": "Country code (ISO 3166-1 alpha-2) to filter the data on a specific country. Special code `unknown` is used when a lookup was not possible.\n\nExample: `SE` to filter for Sweden."
          },
          {
            "in": "query",
            "name": "continent",
            "schema": {
              "type": "string",
              "description": "Continent code to filter the data for a specific continent.\nValid continent codes:\n- `AF`: Africa\n- `AN`: Antarctica\n- `AS`: Asia\n- `EU`: Europe\n- `NA`: North America\n- `OC`: Oceania\n- `SA`: South America\n- `unknown`: Unknown continent. Special code `unknown` is used when a lookup was not possible.\n\nExample: `EU` to filter for Europe.\n"
            },
            "description": "Continent code to filter the data for a specific continent.\nValid continent codes:\n- `AF`: Africa\n- `AN`: Antarctica\n- `AS`: Asia\n- `EU`: Europe\n- `NA`: North America\n- `OC`: Oceania\n- `SA`: South America\n- `unknown`: Unknown continent. Special code `unknown` is used when a lookup was not possible.\n\nExample: `EU` to filter for Europe.\n"
          },
          {
            "in": "query",
            "name": "fields",
            "schema": {
              "type": "string",
              "description": "Limit the response by selecting specific fields as a comma separated list. Available fields are:\n\n- `viewers`\n- `egressBps`\n- `ingressBps`\n- `keyframeDeltaVideo`\n- `averagePacketArrivalTimeVideo`\n- `highestPacketArrivalTimeVideo`\n- `keyframeDeltaAudio`\n- `averagePacketArrivalTimeAudio`\n- `highestPacketArrivalTimeAudio`\n\nExample: `viewers,egressBps` to only get time series for viewers and egress."
            },
            "description": "Limit the response by selecting specific fields as a comma separated list. Available fields are:\n\n- `viewers`\n- `egressBps`\n- `ingressBps`\n- `keyframeDeltaVideo`\n- `averagePacketArrivalTimeVideo`\n- `highestPacketArrivalTimeVideo`\n- `keyframeDeltaAudio`\n- `averagePacketArrivalTimeAudio`\n- `highestPacketArrivalTimeAudio`\n\nExample: `viewers,egressBps` to only get time series for viewers and egress."
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "countries": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "viewers": {
                                    "description": "List of viewers over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "egressBps": {
                                    "description": "List of egress bitrate in bits per second (bps) over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "ingressBps": {
                                    "description": "List of Ingress bitrate in bits per second (bps) over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "keyframeDeltaVideo": {
                                    "description": "List of average keyframe delta in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "averagePacketArrivalTimeVideo": {
                                    "description": "List of average packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "highestPacketArrivalTimeVideo": {
                                    "description": "List of highest packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "keyframeDeltaAudio": {
                                    "description": "List of average keyframe delta in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "averagePacketArrivalTimeAudio": {
                                    "description": "List of average packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "highestPacketArrivalTimeAudio": {
                                    "description": "List of highest packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "country": {
                                    "type": "string",
                                    "description": "Country name."
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "description": "Country code in ISO 3166-1 alpha-2 format."
                                  }
                                },
                                "required": [
                                  "country",
                                  "countryCode"
                                ],
                                "additionalProperties": false
                              },
                              "description": "List of countries with time series data."
                            }
                          },
                          "required": [
                            "countries"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "channels": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "viewers": {
                                    "description": "List of viewers over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "egressBps": {
                                    "description": "List of egress bitrate in bits per second (bps) over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "ingressBps": {
                                    "description": "List of Ingress bitrate in bits per second (bps) over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "keyframeDeltaVideo": {
                                    "description": "List of average keyframe delta in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "averagePacketArrivalTimeVideo": {
                                    "description": "List of average packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "highestPacketArrivalTimeVideo": {
                                    "description": "List of highest packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "keyframeDeltaAudio": {
                                    "description": "List of average keyframe delta in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "averagePacketArrivalTimeAudio": {
                                    "description": "List of average packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "highestPacketArrivalTimeAudio": {
                                    "description": "List of highest packet arrival time in milliseconds over time.",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "timestamp": {
                                          "type": "string",
                                          "description": "ISO 8601 timestamp."
                                        },
                                        "value": {
                                          "type": "number",
                                          "description": "Value at the timestamp."
                                        }
                                      },
                                      "required": [
                                        "timestamp",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "channelId": {
                                    "type": "string",
                                    "description": "Channel ID that identifies a specific channel."
                                  }
                                },
                                "required": [
                                  "channelId"
                                ],
                                "additionalProperties": false
                              },
                              "description": "List of channels with time series data."
                            }
                          },
                          "required": [
                            "channels"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "viewers": {
                          "description": "List of viewers over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "egressBps": {
                          "description": "List of egress bitrate in bits per second (bps) over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "ingressBps": {
                          "description": "List of Ingress bitrate in bits per second (bps) over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "keyframeDeltaVideo": {
                          "description": "List of average keyframe delta in milliseconds over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "averagePacketArrivalTimeVideo": {
                          "description": "List of average packet arrival time in milliseconds over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "highestPacketArrivalTimeVideo": {
                          "description": "List of highest packet arrival time in milliseconds over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "keyframeDeltaAudio": {
                          "description": "List of average keyframe delta in milliseconds over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "averagePacketArrivalTimeAudio": {
                          "description": "List of average packet arrival time in milliseconds over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "highestPacketArrivalTimeAudio": {
                          "description": "List of highest packet arrival time in milliseconds over time.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "timestamp": {
                                "type": "string",
                                "description": "ISO 8601 timestamp."
                              },
                              "value": {
                                "type": "number",
                                "description": "Value at the timestamp."
                              }
                            },
                            "required": [
                              "timestamp",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/clipping/{channelId}/m3u8": {
      "get": {
        "operationId": "v1-clipping-m3u8",
        "summary": "Generate a clip from a recording",
        "description": "Creates a custom clip of a recorded live stream.\n\nThis endpoint will return a m3u8 playlist which can be used in any HLS-compatible video player.\n\n**Please note that the response will be a 302 redirect, with the Location header set to the URL of your clip.**",
        "tags": [
          "Clipping"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel"
            },
            "required": true,
            "description": "ID of the channel"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/clipping/{channelId}/mp4": {
      "get": {
        "operationId": "v1-clipping-mp4",
        "summary": "Generate a clip from a recording",
        "description": "Creates a custom clip of a recorded live stream.\n\nThis endpoint will return a mp4 which can be used in any compatible video player.\n\n**Please note that the response will be a 302 redirect, with the Location header set to the URL of your clip.**",
        "tags": [
          "Clipping"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "schema": {
              "type": "string",
              "description": "ID of the channel"
            },
            "required": true,
            "description": "ID of the channel"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`.",
              "type": "string"
            },
            "required": true,
            "description": "Date in ISO 8601 format.\n\nExample: `2024-01-01T00:00:00Z`."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/workspaces": {
      "get": {
        "operationId": "v1-workspaces-findMany",
        "summary": "List workspaces",
        "description": "Get a list of workspaces that the provided API key has access to.",
        "tags": [
          "Packagers / Workspaces"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "id",
                "name"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the workspace."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the workspace."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the workspace belongs to."
                          },
                          "packagerImage": {
                            "description": "No longer used. A packager's image comes from its deployment adapter, then the organization, then the system default.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "description": "When the workspace was created.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the workspace was last updated.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "organizationId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of workspaces, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of workspaces."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-workspaces-create",
        "summary": "Create workspace",
        "description": "Create a new workspace. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Workspaces"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Name of the workspace."
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization to create the workspace in."
                  }
                },
                "required": [
                  "name",
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the workspace."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the workspace."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the workspace belongs to."
                    },
                    "packagerImage": {
                      "description": "No longer used. A packager's image comes from its deployment adapter, then the organization, then the system default.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "description": "When the workspace was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the workspace was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/workspaces/{id}": {
      "get": {
        "operationId": "v1-workspaces-findOne",
        "summary": "Get workspace",
        "description": "Get a workspace by id.",
        "tags": [
          "Packagers / Workspaces"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the workspace to get."
            },
            "required": true,
            "description": "ID of the workspace to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the workspace."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the workspace."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the workspace belongs to."
                    },
                    "packagerImage": {
                      "description": "No longer used. A packager's image comes from its deployment adapter, then the organization, then the system default.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "description": "When the workspace was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the workspace was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "v1-workspaces-update",
        "summary": "Update workspace",
        "description": "Update a workspace by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Workspaces"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the workspace to update."
            },
            "required": true,
            "description": "ID of the workspace to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "Name of the workspace.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "packagerImage": {
                    "description": "No longer used. A packager's image comes from its deployment adapter, then the organization, then the system default.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the workspace."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the workspace."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the workspace belongs to."
                    },
                    "packagerImage": {
                      "description": "No longer used. A packager's image comes from its deployment adapter, then the organization, then the system default.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "description": "When the workspace was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the workspace was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-workspaces-delete",
        "summary": "Delete workspace",
        "description": "Delete a workspace by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Workspaces"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the workspace to delete."
            },
            "required": true,
            "description": "ID of the workspace to delete."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/workspace-connect-keys": {
      "get": {
        "operationId": "v1-workspaceConnectKeys-get",
        "summary": "List connect keys",
        "description": "Get a list of connect keys that the provided API key has access to.",
        "tags": [
          "Packagers / Workspace Connect Keys"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "id",
                "name"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "workspaceId",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the connect key."
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256,
                            "description": "Name of the connect key."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Whether the connect key is active."
                          },
                          "workspaceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Workspace the connect key belongs to."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization the connect key belongs to."
                          },
                          "lastUsedAt": {
                            "description": "When a packager session using the key last started or ended. Not updated while a session runs.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "description": "When the connect key was created.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the connect key was last updated.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "active",
                          "workspaceId",
                          "organizationId",
                          "lastUsedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of connect keys, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of connect keys."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-workspaceConnectKeys-create",
        "summary": "Create connect key",
        "description": "Create a new connect key. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Workspace Connect Keys"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Name of the connect key."
                  },
                  "workspaceId": {
                    "description": "Workspace the connect key belongs to. Defaults to the organization's workspace.",
                    "type": "string",
                    "format": "nanoid",
                    "pattern": "^[a-zA-Z0-9_-]{21}$"
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization to create the connect key in."
                  }
                },
                "required": [
                  "name",
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the connect key."
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "description": "Name of the connect key."
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the connect key is active."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the connect key belongs to."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization the connect key belongs to."
                    },
                    "lastUsedAt": {
                      "description": "When a packager session using the key last started or ended. Not updated while a session runs.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "description": "When the connect key was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the connect key was last updated.",
                      "type": "string"
                    },
                    "key": {
                      "type": "string",
                      "description": "Plaintext key, only returned on creation."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "active",
                    "workspaceId",
                    "organizationId",
                    "lastUsedAt",
                    "createdAt",
                    "updatedAt",
                    "key"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/workspace-connect-keys/{id}": {
      "get": {
        "operationId": "v1-workspaceConnectKeys-getById",
        "summary": "Get connect key",
        "description": "Get a connect key by id.",
        "tags": [
          "Packagers / Workspace Connect Keys"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the connect key to get."
            },
            "required": true,
            "description": "ID of the connect key to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the connect key."
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "description": "Name of the connect key."
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the connect key is active."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the connect key belongs to."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization the connect key belongs to."
                    },
                    "lastUsedAt": {
                      "description": "When a packager session using the key last started or ended. Not updated while a session runs.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "description": "When the connect key was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the connect key was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "active",
                    "workspaceId",
                    "organizationId",
                    "lastUsedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "v1-workspaceConnectKeys-update",
        "summary": "Update connect key",
        "description": "Update a connect key by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Workspace Connect Keys"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the connect key to update."
            },
            "required": true,
            "description": "ID of the connect key to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "Name of the connect key.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "active": {
                    "description": "Whether the connect key is active.",
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the connect key."
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "description": "Name of the connect key."
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the connect key is active."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the connect key belongs to."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization the connect key belongs to."
                    },
                    "lastUsedAt": {
                      "description": "When a packager session using the key last started or ended. Not updated while a session runs.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "createdAt": {
                      "description": "When the connect key was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the connect key was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "active",
                    "workspaceId",
                    "organizationId",
                    "lastUsedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-workspaceConnectKeys-delete",
        "summary": "Delete connect key",
        "description": "Delete a connect key by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Workspace Connect Keys"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the connect key to delete."
            },
            "required": true,
            "description": "ID of the connect key to delete."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/transcoder-instances": {
      "get": {
        "operationId": "v1-transcoderInstances-get",
        "summary": "List transcoder instances",
        "description": "Get a list of transcoder instances that the provided API key has access to. A transcoder instance is a transcoder task running on a packager; start or stop one with POST /v1/packagers/transcoder-instances/{id}/start or /stop.",
        "tags": [
          "Packagers / Transcoders"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "createdAt",
                "taskId"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "packagerId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the transcoder instance."
                          },
                          "createdAt": {
                            "description": "When the transcoder instance was created",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the transcoder instance was last modified",
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that owns this transcoder instance"
                          },
                          "packagerId": {
                            "type": "string",
                            "description": "Packager this instance runs on"
                          },
                          "resourceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Packager resource assigned to this instance"
                          },
                          "transcoderConfigId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "nanoid",
                                "pattern": "^[a-zA-Z0-9_-]{21}$"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "TranscoderConfig this instance was created from, or null when no matching deployment config was found"
                          },
                          "taskId": {
                            "type": "string",
                            "description": "Task identifier on the packager running this transcoder"
                          },
                          "info": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "target_state": {
                                    "type": "string",
                                    "enum": [
                                      "started",
                                      "stopped",
                                      "destroyed"
                                    ],
                                    "description": "Desired state commanded by the control plane"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "starting",
                                      "started",
                                      "stopping",
                                      "stopped",
                                      "waiting",
                                      "congested"
                                    ],
                                    "description": "Actual current operational state reported by the packager"
                                  },
                                  "tracks": {
                                    "type": "object",
                                    "properties": {
                                      "all": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "video"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "hw_pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "width": {
                                                      "type": "number"
                                                    },
                                                    "height": {
                                                      "type": "number"
                                                    },
                                                    "color_range": {
                                                      "type": "string"
                                                    },
                                                    "color_space": {
                                                      "type": "string"
                                                    },
                                                    "color_primaries": {
                                                      "type": "string"
                                                    },
                                                    "color_trc": {
                                                      "type": "string"
                                                    },
                                                    "chroma_location": {
                                                      "type": "string"
                                                    },
                                                    "field_order": {
                                                      "type": "string"
                                                    },
                                                    "separated_fields": {
                                                      "type": "boolean"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    },
                                                    "sample_aspect_ratio": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "number"
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "hw_pixel_format",
                                                    "pixel_format",
                                                    "width",
                                                    "height",
                                                    "color_range",
                                                    "color_space",
                                                    "color_primaries",
                                                    "color_trc",
                                                    "chroma_location",
                                                    "field_order",
                                                    "separated_fields",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level",
                                                    "sample_aspect_ratio"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "avg_frame_rate": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "gop_size": {
                                                  "type": "number"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "avg_frame_rate",
                                                "gop_size",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "audio"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "sample_format": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "anyOf": [
                                                                {
                                                                  "anyOf": [
                                                                    {
                                                                      "anyOf": [
                                                                        {
                                                                          "anyOf": [
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "u8": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "u8"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            },
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "i16": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "i16"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "type": "object",
                                                                          "properties": {
                                                                            "i32": {
                                                                              "type": "string"
                                                                            }
                                                                          },
                                                                          "required": [
                                                                            "i32"
                                                                          ],
                                                                          "additionalProperties": false
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "i64": {
                                                                          "type": "string"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "i64"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "f32": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "f32"
                                                                  ],
                                                                  "additionalProperties": false
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "f64": {
                                                                  "type": "string"
                                                                }
                                                              },
                                                              "required": [
                                                                "f64"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "string",
                                                          "const": "none"
                                                        }
                                                      ]
                                                    },
                                                    "channel_layout": {
                                                      "type": "string"
                                                    },
                                                    "sample_rate": {
                                                      "type": "number"
                                                    },
                                                    "block_align": {
                                                      "type": "number"
                                                    },
                                                    "frame_size": {
                                                      "type": "number"
                                                    },
                                                    "initial_padding": {
                                                      "type": "number"
                                                    },
                                                    "trailing_padding": {
                                                      "type": "number"
                                                    },
                                                    "seek_preroll": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "sample_format",
                                                    "channel_layout",
                                                    "sample_rate",
                                                    "block_align",
                                                    "frame_size",
                                                    "initial_padding",
                                                    "trailing_padding",
                                                    "seek_preroll",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "language": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "language",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "subtitles"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "data"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "attachment"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "unknown"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      }
                                    },
                                    "required": [
                                      "all"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Track details of the input stream"
                                  },
                                  "config": {
                                    "type": "object",
                                    "properties": {
                                      "source_ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "target_state": {
                                        "type": "string",
                                        "enum": [
                                          "started",
                                          "stopped",
                                          "destroyed"
                                        ]
                                      },
                                      "device": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "cpu",
                                              "nvidia",
                                              "netint_quadra",
                                              "netint_t4xx",
                                              "qsv",
                                              "vaapi"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "tracks": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "video"
                                                },
                                                "id": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "name": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "track_selector": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "type": {
                                                          "type": "string",
                                                          "const": "track-kind"
                                                        },
                                                        "kind": {
                                                          "type": "string",
                                                          "enum": [
                                                            "unknown",
                                                            "video",
                                                            "audio",
                                                            "data",
                                                            "subtitle",
                                                            "attachment"
                                                          ]
                                                        },
                                                        "codec": {
                                                          "type": [
                                                            "string",
                                                            "null"
                                                          ]
                                                        },
                                                        "criteria": {
                                                          "type": "string",
                                                          "enum": [
                                                            "all",
                                                            "best"
                                                          ]
                                                        },
                                                        "language": {
                                                          "type": [
                                                            "string",
                                                            "null"
                                                          ]
                                                        },
                                                        "is_required": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "type",
                                                        "kind"
                                                      ],
                                                      "additionalProperties": {}
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "type": {
                                                          "type": "string",
                                                          "const": "track-id"
                                                        },
                                                        "id": {
                                                          "type": "integer",
                                                          "minimum": -9007199254740991,
                                                          "maximum": 9007199254740991
                                                        },
                                                        "is_required": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "type",
                                                        "id"
                                                      ],
                                                      "additionalProperties": {}
                                                    }
                                                  ],
                                                  "type": "object"
                                                },
                                                "passthrough": {
                                                  "type": "boolean"
                                                },
                                                "renditions": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "size": {
                                                        "type": "object",
                                                        "properties": {
                                                          "width": {
                                                            "type": "integer",
                                                            "exclusiveMinimum": 0,
                                                            "maximum": 9007199254740991
                                                          },
                                                          "height": {
                                                            "anyOf": [
                                                              {
                                                                "type": "integer",
                                                                "exclusiveMinimum": 0,
                                                                "maximum": 9007199254740991
                                                              },
                                                              {
                                                                "type": "null"
                                                              }
                                                            ]
                                                          }
                                                        },
                                                        "additionalProperties": {}
                                                      },
                                                      "codec": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "gop_size_ms": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "maximum": 9007199254740991
                                                      },
                                                      "bit_rate": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 9007199254740991
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "frame_skipping": {
                                                        "type": "string",
                                                        "enum": [
                                                          "none",
                                                          "half",
                                                          "quarter",
                                                          "frame_every_1_seconds",
                                                          "frame_every_5_seconds"
                                                        ]
                                                      }
                                                    },
                                                    "required": [
                                                      "id",
                                                      "codec"
                                                    ],
                                                    "additionalProperties": {}
                                                  }
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "id",
                                                "track_selector"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "audio"
                                                },
                                                "id": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "name": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "track_selector": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "type": {
                                                          "type": "string",
                                                          "const": "track-kind"
                                                        },
                                                        "kind": {
                                                          "type": "string",
                                                          "enum": [
                                                            "unknown",
                                                            "video",
                                                            "audio",
                                                            "data",
                                                            "subtitle",
                                                            "attachment"
                                                          ]
                                                        },
                                                        "codec": {
                                                          "type": [
                                                            "string",
                                                            "null"
                                                          ]
                                                        },
                                                        "criteria": {
                                                          "type": "string",
                                                          "enum": [
                                                            "all",
                                                            "best"
                                                          ]
                                                        },
                                                        "language": {
                                                          "type": [
                                                            "string",
                                                            "null"
                                                          ]
                                                        },
                                                        "is_required": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "type",
                                                        "kind"
                                                      ],
                                                      "additionalProperties": {}
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "type": {
                                                          "type": "string",
                                                          "const": "track-id"
                                                        },
                                                        "id": {
                                                          "type": "integer",
                                                          "minimum": -9007199254740991,
                                                          "maximum": 9007199254740991
                                                        },
                                                        "is_required": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "type",
                                                        "id"
                                                      ],
                                                      "additionalProperties": {}
                                                    }
                                                  ],
                                                  "type": "object"
                                                },
                                                "passthrough": {
                                                  "type": "boolean"
                                                },
                                                "renditions": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "codec": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "sample_rate": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 9007199254740991
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "channels": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 9007199254740991
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "bit_rate": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 9007199254740991
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      }
                                                    },
                                                    "required": [
                                                      "id",
                                                      "codec"
                                                    ],
                                                    "additionalProperties": {}
                                                  }
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "id",
                                                "track_selector"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "subtitle"
                                                },
                                                "id": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "name": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "track_selector": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "type": {
                                                          "type": "string",
                                                          "const": "track-kind"
                                                        },
                                                        "kind": {
                                                          "type": "string",
                                                          "enum": [
                                                            "unknown",
                                                            "video",
                                                            "audio",
                                                            "data",
                                                            "subtitle",
                                                            "attachment"
                                                          ]
                                                        },
                                                        "codec": {
                                                          "type": [
                                                            "string",
                                                            "null"
                                                          ]
                                                        },
                                                        "criteria": {
                                                          "type": "string",
                                                          "enum": [
                                                            "all",
                                                            "best"
                                                          ]
                                                        },
                                                        "language": {
                                                          "type": [
                                                            "string",
                                                            "null"
                                                          ]
                                                        },
                                                        "is_required": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "type",
                                                        "kind"
                                                      ],
                                                      "additionalProperties": {}
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "type": {
                                                          "type": "string",
                                                          "const": "track-id"
                                                        },
                                                        "id": {
                                                          "type": "integer",
                                                          "minimum": -9007199254740991,
                                                          "maximum": 9007199254740991
                                                        },
                                                        "is_required": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "type",
                                                        "id"
                                                      ],
                                                      "additionalProperties": {}
                                                    }
                                                  ],
                                                  "type": "object"
                                                },
                                                "passthrough": {
                                                  "type": "boolean"
                                                },
                                                "renditions": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "codec": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    },
                                                    "required": [
                                                      "id",
                                                      "codec"
                                                    ],
                                                    "additionalProperties": {}
                                                  }
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "id",
                                                "track_selector"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "annotations": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "source_ids",
                                      "id"
                                    ],
                                    "additionalProperties": {},
                                    "description": "Active transcoder configuration used by this instance"
                                  },
                                  "pipelines": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "track_config_id": {
                                          "type": "string"
                                        },
                                        "source_id": {
                                          "type": "string"
                                        },
                                        "source_track_index": {
                                          "type": "integer",
                                          "minimum": -9007199254740991,
                                          "maximum": 9007199254740991
                                        },
                                        "info": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "transcoded"
                                                },
                                                "decoder": {
                                                  "type": "object",
                                                  "properties": {
                                                    "name": {
                                                      "type": "string"
                                                    },
                                                    "parameters": {
                                                      "oneOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "codec": {
                                                              "type": "string"
                                                            },
                                                            "bit_rate": {
                                                              "type": "number"
                                                            },
                                                            "extradata": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "number"
                                                                  }
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "sample_format": {
                                                              "anyOf": [
                                                                {
                                                                  "anyOf": [
                                                                    {
                                                                      "anyOf": [
                                                                        {
                                                                          "anyOf": [
                                                                            {
                                                                              "anyOf": [
                                                                                {
                                                                                  "anyOf": [
                                                                                    {
                                                                                      "type": "object",
                                                                                      "properties": {
                                                                                        "u8": {
                                                                                          "type": "string"
                                                                                        }
                                                                                      },
                                                                                      "required": [
                                                                                        "u8"
                                                                                      ],
                                                                                      "additionalProperties": false
                                                                                    },
                                                                                    {
                                                                                      "type": "object",
                                                                                      "properties": {
                                                                                        "i16": {
                                                                                          "type": "string"
                                                                                        }
                                                                                      },
                                                                                      "required": [
                                                                                        "i16"
                                                                                      ],
                                                                                      "additionalProperties": false
                                                                                    }
                                                                                  ]
                                                                                },
                                                                                {
                                                                                  "type": "object",
                                                                                  "properties": {
                                                                                    "i32": {
                                                                                      "type": "string"
                                                                                    }
                                                                                  },
                                                                                  "required": [
                                                                                    "i32"
                                                                                  ],
                                                                                  "additionalProperties": false
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "i64": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "i64"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "type": "object",
                                                                          "properties": {
                                                                            "f32": {
                                                                              "type": "string"
                                                                            }
                                                                          },
                                                                          "required": [
                                                                            "f32"
                                                                          ],
                                                                          "additionalProperties": false
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "f64": {
                                                                          "type": "string"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "f64"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "type": "string",
                                                                  "const": "none"
                                                                }
                                                              ]
                                                            },
                                                            "channel_layout": {
                                                              "type": "string"
                                                            },
                                                            "sample_rate": {
                                                              "type": "number"
                                                            },
                                                            "block_align": {
                                                              "type": "number"
                                                            },
                                                            "frame_size": {
                                                              "type": "number"
                                                            },
                                                            "initial_padding": {
                                                              "type": "number"
                                                            },
                                                            "trailing_padding": {
                                                              "type": "number"
                                                            },
                                                            "seek_preroll": {
                                                              "type": "number"
                                                            },
                                                            "bits_per_coded_sample": {
                                                              "type": "number"
                                                            },
                                                            "bits_per_raw_sample": {
                                                              "type": "number"
                                                            },
                                                            "profile": {
                                                              "type": "number"
                                                            },
                                                            "level": {
                                                              "type": "number"
                                                            },
                                                            "type": {
                                                              "type": "string",
                                                              "const": "audio"
                                                            }
                                                          },
                                                          "required": [
                                                            "codec",
                                                            "bit_rate",
                                                            "extradata",
                                                            "sample_format",
                                                            "channel_layout",
                                                            "sample_rate",
                                                            "block_align",
                                                            "frame_size",
                                                            "initial_padding",
                                                            "trailing_padding",
                                                            "seek_preroll",
                                                            "bits_per_coded_sample",
                                                            "bits_per_raw_sample",
                                                            "profile",
                                                            "level",
                                                            "type"
                                                          ],
                                                          "additionalProperties": false
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "codec": {
                                                              "type": "string"
                                                            },
                                                            "bit_rate": {
                                                              "type": "number"
                                                            },
                                                            "extradata": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "number"
                                                                  }
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "hw_pixel_format": {
                                                              "type": "string"
                                                            },
                                                            "pixel_format": {
                                                              "type": "string"
                                                            },
                                                            "width": {
                                                              "type": "number"
                                                            },
                                                            "height": {
                                                              "type": "number"
                                                            },
                                                            "color_range": {
                                                              "type": "string"
                                                            },
                                                            "color_space": {
                                                              "type": "string"
                                                            },
                                                            "color_primaries": {
                                                              "type": "string"
                                                            },
                                                            "color_trc": {
                                                              "type": "string"
                                                            },
                                                            "chroma_location": {
                                                              "type": "string"
                                                            },
                                                            "field_order": {
                                                              "type": "string"
                                                            },
                                                            "separated_fields": {
                                                              "type": "boolean"
                                                            },
                                                            "bits_per_coded_sample": {
                                                              "type": "number"
                                                            },
                                                            "bits_per_raw_sample": {
                                                              "type": "number"
                                                            },
                                                            "profile": {
                                                              "type": "number"
                                                            },
                                                            "level": {
                                                              "type": "number"
                                                            },
                                                            "sample_aspect_ratio": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "number"
                                                              }
                                                            },
                                                            "type": {
                                                              "type": "string",
                                                              "const": "video"
                                                            }
                                                          },
                                                          "required": [
                                                            "codec",
                                                            "bit_rate",
                                                            "extradata",
                                                            "hw_pixel_format",
                                                            "pixel_format",
                                                            "width",
                                                            "height",
                                                            "color_range",
                                                            "color_space",
                                                            "color_primaries",
                                                            "color_trc",
                                                            "chroma_location",
                                                            "field_order",
                                                            "separated_fields",
                                                            "bits_per_coded_sample",
                                                            "bits_per_raw_sample",
                                                            "profile",
                                                            "level",
                                                            "sample_aspect_ratio",
                                                            "type"
                                                          ],
                                                          "additionalProperties": false
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "codec": {
                                                              "type": "string"
                                                            },
                                                            "kind": {
                                                              "type": "string",
                                                              "enum": [
                                                                "audio",
                                                                "video",
                                                                "subtitle",
                                                                "data",
                                                                "attachment"
                                                              ]
                                                            },
                                                            "extradata": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "number"
                                                                  }
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "bits_per_coded_sample": {
                                                              "type": "number"
                                                            },
                                                            "bits_per_raw_sample": {
                                                              "type": "number"
                                                            },
                                                            "profile": {
                                                              "type": "number"
                                                            },
                                                            "level": {
                                                              "type": "number"
                                                            },
                                                            "type": {
                                                              "type": "string",
                                                              "const": "basic"
                                                            }
                                                          },
                                                          "required": [
                                                            "codec",
                                                            "kind",
                                                            "extradata",
                                                            "bits_per_coded_sample",
                                                            "bits_per_raw_sample",
                                                            "profile",
                                                            "level",
                                                            "type"
                                                          ],
                                                          "additionalProperties": false
                                                        }
                                                      ],
                                                      "type": "object"
                                                    },
                                                    "options": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "array",
                                                        "prefixItems": [
                                                          {
                                                            "type": "string"
                                                          },
                                                          {
                                                            "oneOf": [
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "string"
                                                                  },
                                                                  "value": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "int"
                                                                  },
                                                                  "value": {
                                                                    "type": "integer",
                                                                    "minimum": -9007199254740991,
                                                                    "maximum": 9007199254740991
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "u_int"
                                                                  },
                                                                  "value": {
                                                                    "type": "integer",
                                                                    "minimum": 0,
                                                                    "maximum": 9007199254740991
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "double"
                                                                  },
                                                                  "value": {
                                                                    "type": "number"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "bool"
                                                                  },
                                                                  "value": {
                                                                    "default": false,
                                                                    "type": "boolean"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "ratio"
                                                                  },
                                                                  "value": {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                      {
                                                                        "type": "integer",
                                                                        "minimum": -9007199254740991,
                                                                        "maximum": 9007199254740991
                                                                      },
                                                                      {
                                                                        "type": "integer",
                                                                        "minimum": -9007199254740991,
                                                                        "maximum": 9007199254740991
                                                                      }
                                                                    ],
                                                                    "items": false,
                                                                    "minItems": 2,
                                                                    "maxItems": 2
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "pixel"
                                                                  },
                                                                  "value": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "type": {
                                                                    "type": "string",
                                                                    "const": "sample"
                                                                  },
                                                                  "value": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "type",
                                                                  "value"
                                                                ],
                                                                "additionalProperties": {}
                                                              }
                                                            ],
                                                            "type": "object"
                                                          }
                                                        ],
                                                        "items": false,
                                                        "minItems": 2,
                                                        "maxItems": 2
                                                      }
                                                    },
                                                    "frame_rate": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "prefixItems": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "number"
                                                            }
                                                          ],
                                                          "items": false,
                                                          "minItems": 2,
                                                          "maxItems": 2
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "name",
                                                    "parameters",
                                                    "options"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "encoders": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "rendition_id": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": "string"
                                                      },
                                                      "options": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "array",
                                                          "prefixItems": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "oneOf": [
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "string"
                                                                    },
                                                                    "value": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "int"
                                                                    },
                                                                    "value": {
                                                                      "type": "integer",
                                                                      "minimum": -9007199254740991,
                                                                      "maximum": 9007199254740991
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "u_int"
                                                                    },
                                                                    "value": {
                                                                      "type": "integer",
                                                                      "minimum": 0,
                                                                      "maximum": 9007199254740991
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "double"
                                                                    },
                                                                    "value": {
                                                                      "type": "number"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "bool"
                                                                    },
                                                                    "value": {
                                                                      "default": false,
                                                                      "type": "boolean"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "ratio"
                                                                    },
                                                                    "value": {
                                                                      "type": "array",
                                                                      "prefixItems": [
                                                                        {
                                                                          "type": "integer",
                                                                          "minimum": -9007199254740991,
                                                                          "maximum": 9007199254740991
                                                                        },
                                                                        {
                                                                          "type": "integer",
                                                                          "minimum": -9007199254740991,
                                                                          "maximum": 9007199254740991
                                                                        }
                                                                      ],
                                                                      "items": false,
                                                                      "minItems": 2,
                                                                      "maxItems": 2
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "pixel"
                                                                    },
                                                                    "value": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "type": {
                                                                      "type": "string",
                                                                      "const": "sample"
                                                                    },
                                                                    "value": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "type",
                                                                    "value"
                                                                  ],
                                                                  "additionalProperties": {}
                                                                }
                                                              ],
                                                              "type": "object"
                                                            }
                                                          ],
                                                          "items": false,
                                                          "minItems": 2,
                                                          "maxItems": 2
                                                        }
                                                      },
                                                      "parameters": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "codec": {
                                                                "type": "string"
                                                              },
                                                              "bit_rate": {
                                                                "type": "number"
                                                              },
                                                              "extradata": {
                                                                "anyOf": [
                                                                  {
                                                                    "type": "array",
                                                                    "items": {
                                                                      "type": "number"
                                                                    }
                                                                  },
                                                                  {
                                                                    "type": "null"
                                                                  }
                                                                ]
                                                              },
                                                              "sample_format": {
                                                                "anyOf": [
                                                                  {
                                                                    "anyOf": [
                                                                      {
                                                                        "anyOf": [
                                                                          {
                                                                            "anyOf": [
                                                                              {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "anyOf": [
                                                                                      {
                                                                                        "type": "object",
                                                                                        "properties": {
                                                                                          "u8": {
                                                                                            "type": "string"
                                                                                          }
                                                                                        },
                                                                                        "required": [
                                                                                          "u8"
                                                                                        ],
                                                                                        "additionalProperties": false
                                                                                      },
                                                                                      {
                                                                                        "type": "object",
                                                                                        "properties": {
                                                                                          "i16": {
                                                                                            "type": "string"
                                                                                          }
                                                                                        },
                                                                                        "required": [
                                                                                          "i16"
                                                                                        ],
                                                                                        "additionalProperties": false
                                                                                      }
                                                                                    ]
                                                                                  },
                                                                                  {
                                                                                    "type": "object",
                                                                                    "properties": {
                                                                                      "i32": {
                                                                                        "type": "string"
                                                                                      }
                                                                                    },
                                                                                    "required": [
                                                                                      "i32"
                                                                                    ],
                                                                                    "additionalProperties": false
                                                                                  }
                                                                                ]
                                                                              },
                                                                              {
                                                                                "type": "object",
                                                                                "properties": {
                                                                                  "i64": {
                                                                                    "type": "string"
                                                                                  }
                                                                                },
                                                                                "required": [
                                                                                  "i64"
                                                                                ],
                                                                                "additionalProperties": false
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "type": "object",
                                                                            "properties": {
                                                                              "f32": {
                                                                                "type": "string"
                                                                              }
                                                                            },
                                                                            "required": [
                                                                              "f32"
                                                                            ],
                                                                            "additionalProperties": false
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "f64": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "f64"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "type": "string",
                                                                    "const": "none"
                                                                  }
                                                                ]
                                                              },
                                                              "channel_layout": {
                                                                "type": "string"
                                                              },
                                                              "sample_rate": {
                                                                "type": "number"
                                                              },
                                                              "block_align": {
                                                                "type": "number"
                                                              },
                                                              "frame_size": {
                                                                "type": "number"
                                                              },
                                                              "initial_padding": {
                                                                "type": "number"
                                                              },
                                                              "trailing_padding": {
                                                                "type": "number"
                                                              },
                                                              "seek_preroll": {
                                                                "type": "number"
                                                              },
                                                              "bits_per_coded_sample": {
                                                                "type": "number"
                                                              },
                                                              "bits_per_raw_sample": {
                                                                "type": "number"
                                                              },
                                                              "profile": {
                                                                "type": "number"
                                                              },
                                                              "level": {
                                                                "type": "number"
                                                              },
                                                              "type": {
                                                                "type": "string",
                                                                "const": "audio"
                                                              }
                                                            },
                                                            "required": [
                                                              "codec",
                                                              "bit_rate",
                                                              "extradata",
                                                              "sample_format",
                                                              "channel_layout",
                                                              "sample_rate",
                                                              "block_align",
                                                              "frame_size",
                                                              "initial_padding",
                                                              "trailing_padding",
                                                              "seek_preroll",
                                                              "bits_per_coded_sample",
                                                              "bits_per_raw_sample",
                                                              "profile",
                                                              "level",
                                                              "type"
                                                            ],
                                                            "additionalProperties": false
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "codec": {
                                                                "type": "string"
                                                              },
                                                              "bit_rate": {
                                                                "type": "number"
                                                              },
                                                              "extradata": {
                                                                "anyOf": [
                                                                  {
                                                                    "type": "array",
                                                                    "items": {
                                                                      "type": "number"
                                                                    }
                                                                  },
                                                                  {
                                                                    "type": "null"
                                                                  }
                                                                ]
                                                              },
                                                              "hw_pixel_format": {
                                                                "type": "string"
                                                              },
                                                              "pixel_format": {
                                                                "type": "string"
                                                              },
                                                              "width": {
                                                                "type": "number"
                                                              },
                                                              "height": {
                                                                "type": "number"
                                                              },
                                                              "color_range": {
                                                                "type": "string"
                                                              },
                                                              "color_space": {
                                                                "type": "string"
                                                              },
                                                              "color_primaries": {
                                                                "type": "string"
                                                              },
                                                              "color_trc": {
                                                                "type": "string"
                                                              },
                                                              "chroma_location": {
                                                                "type": "string"
                                                              },
                                                              "field_order": {
                                                                "type": "string"
                                                              },
                                                              "separated_fields": {
                                                                "type": "boolean"
                                                              },
                                                              "bits_per_coded_sample": {
                                                                "type": "number"
                                                              },
                                                              "bits_per_raw_sample": {
                                                                "type": "number"
                                                              },
                                                              "profile": {
                                                                "type": "number"
                                                              },
                                                              "level": {
                                                                "type": "number"
                                                              },
                                                              "sample_aspect_ratio": {
                                                                "type": "array",
                                                                "items": {
                                                                  "type": "number"
                                                                }
                                                              },
                                                              "type": {
                                                                "type": "string",
                                                                "const": "video"
                                                              }
                                                            },
                                                            "required": [
                                                              "codec",
                                                              "bit_rate",
                                                              "extradata",
                                                              "hw_pixel_format",
                                                              "pixel_format",
                                                              "width",
                                                              "height",
                                                              "color_range",
                                                              "color_space",
                                                              "color_primaries",
                                                              "color_trc",
                                                              "chroma_location",
                                                              "field_order",
                                                              "separated_fields",
                                                              "bits_per_coded_sample",
                                                              "bits_per_raw_sample",
                                                              "profile",
                                                              "level",
                                                              "sample_aspect_ratio",
                                                              "type"
                                                            ],
                                                            "additionalProperties": false
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "codec": {
                                                                "type": "string"
                                                              },
                                                              "kind": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "audio",
                                                                  "video",
                                                                  "subtitle",
                                                                  "data",
                                                                  "attachment"
                                                                ]
                                                              },
                                                              "extradata": {
                                                                "anyOf": [
                                                                  {
                                                                    "type": "array",
                                                                    "items": {
                                                                      "type": "number"
                                                                    }
                                                                  },
                                                                  {
                                                                    "type": "null"
                                                                  }
                                                                ]
                                                              },
                                                              "bits_per_coded_sample": {
                                                                "type": "number"
                                                              },
                                                              "bits_per_raw_sample": {
                                                                "type": "number"
                                                              },
                                                              "profile": {
                                                                "type": "number"
                                                              },
                                                              "level": {
                                                                "type": "number"
                                                              },
                                                              "type": {
                                                                "type": "string",
                                                                "const": "basic"
                                                              }
                                                            },
                                                            "required": [
                                                              "codec",
                                                              "kind",
                                                              "extradata",
                                                              "bits_per_coded_sample",
                                                              "bits_per_raw_sample",
                                                              "profile",
                                                              "level",
                                                              "type"
                                                            ],
                                                            "additionalProperties": false
                                                          }
                                                        ],
                                                        "type": "object"
                                                      },
                                                      "gop_size": {
                                                        "type": [
                                                          "number",
                                                          "null"
                                                        ]
                                                      },
                                                      "track_index": {
                                                        "type": "integer",
                                                        "minimum": -9007199254740991,
                                                        "maximum": 9007199254740991
                                                      },
                                                      "frame_rate": {
                                                        "anyOf": [
                                                          {
                                                            "type": "array",
                                                            "prefixItems": [
                                                              {
                                                                "type": "number"
                                                              },
                                                              {
                                                                "type": "number"
                                                              }
                                                            ],
                                                            "items": false,
                                                            "minItems": 2,
                                                            "maxItems": 2
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      }
                                                    },
                                                    "required": [
                                                      "rendition_id",
                                                      "name",
                                                      "options",
                                                      "parameters",
                                                      "track_index"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "decoder",
                                                "encoders"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "passthrough"
                                                },
                                                "track_index": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "track_index"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "required": [
                                        "track_config_id",
                                        "source_id",
                                        "source_track_index",
                                        "info"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "description": "Decode/encode pipelines currently running for this instance"
                                  },
                                  "start_time": {
                                    "description": "Unix timestamp (ms) when the transcoder started, null if not yet started",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "target_state",
                                  "state",
                                  "tracks",
                                  "config",
                                  "pipelines",
                                  "start_time"
                                ],
                                "additionalProperties": false,
                                "description": "Current runtime state reported by the packager"
                              }
                            ],
                            "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "organizationId",
                          "packagerId",
                          "resourceId",
                          "transcoderConfigId",
                          "taskId",
                          "info"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of transcoder instances, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of transcoder instances."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/transcoder-instances/{id}": {
      "get": {
        "operationId": "v1-transcoderInstances-getById",
        "summary": "Get transcoder instance",
        "description": "Get a transcoder instance by id.",
        "tags": [
          "Packagers / Transcoders"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the transcoder instance to get."
            },
            "required": true,
            "description": "ID of the transcoder instance to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the transcoder instance."
                    },
                    "createdAt": {
                      "description": "When the transcoder instance was created",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the transcoder instance was last modified",
                      "type": "string"
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that owns this transcoder instance"
                    },
                    "packagerId": {
                      "type": "string",
                      "description": "Packager this instance runs on"
                    },
                    "resourceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Packager resource assigned to this instance"
                    },
                    "transcoderConfigId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "TranscoderConfig this instance was created from, or null when no matching deployment config was found"
                    },
                    "taskId": {
                      "type": "string",
                      "description": "Task identifier on the packager running this transcoder"
                    },
                    "info": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ],
                              "description": "Desired state commanded by the control plane"
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "starting",
                                "started",
                                "stopping",
                                "stopped",
                                "waiting",
                                "congested"
                              ],
                              "description": "Actual current operational state reported by the packager"
                            },
                            "tracks": {
                              "type": "object",
                              "properties": {
                                "all": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "video"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "hw_pixel_format": {
                                                "type": "string"
                                              },
                                              "pixel_format": {
                                                "type": "string"
                                              },
                                              "width": {
                                                "type": "number"
                                              },
                                              "height": {
                                                "type": "number"
                                              },
                                              "color_range": {
                                                "type": "string"
                                              },
                                              "color_space": {
                                                "type": "string"
                                              },
                                              "color_primaries": {
                                                "type": "string"
                                              },
                                              "color_trc": {
                                                "type": "string"
                                              },
                                              "chroma_location": {
                                                "type": "string"
                                              },
                                              "field_order": {
                                                "type": "string"
                                              },
                                              "separated_fields": {
                                                "type": "boolean"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              },
                                              "sample_aspect_ratio": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                }
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "hw_pixel_format",
                                              "pixel_format",
                                              "width",
                                              "height",
                                              "color_range",
                                              "color_space",
                                              "color_primaries",
                                              "color_trc",
                                              "chroma_location",
                                              "field_order",
                                              "separated_fields",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level",
                                              "sample_aspect_ratio"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "avg_frame_rate": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          },
                                          "gop_size": {
                                            "type": "number"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "avg_frame_rate",
                                          "gop_size",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "audio"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "sample_format": {
                                                "anyOf": [
                                                  {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "anyOf": [
                                                                  {
                                                                    "anyOf": [
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "u8": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "u8"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      },
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "i16": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "i16"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "i32": {
                                                                        "type": "string"
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "i32"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "i64": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "i64"
                                                                ],
                                                                "additionalProperties": false
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "f32": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "f32"
                                                            ],
                                                            "additionalProperties": false
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "f64": {
                                                            "type": "string"
                                                          }
                                                        },
                                                        "required": [
                                                          "f64"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "string",
                                                    "const": "none"
                                                  }
                                                ]
                                              },
                                              "channel_layout": {
                                                "type": "string"
                                              },
                                              "sample_rate": {
                                                "type": "number"
                                              },
                                              "block_align": {
                                                "type": "number"
                                              },
                                              "frame_size": {
                                                "type": "number"
                                              },
                                              "initial_padding": {
                                                "type": "number"
                                              },
                                              "trailing_padding": {
                                                "type": "number"
                                              },
                                              "seek_preroll": {
                                                "type": "number"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "sample_format",
                                              "channel_layout",
                                              "sample_rate",
                                              "block_align",
                                              "frame_size",
                                              "initial_padding",
                                              "trailing_padding",
                                              "seek_preroll",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "language": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "language",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "subtitles"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "data"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "attachment"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "unknown"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ],
                                    "type": "object"
                                  }
                                }
                              },
                              "required": [
                                "all"
                              ],
                              "additionalProperties": false,
                              "description": "Track details of the input stream"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "source_ids": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "type": "string"
                                },
                                "target_state": {
                                  "type": "string",
                                  "enum": [
                                    "started",
                                    "stopped",
                                    "destroyed"
                                  ]
                                },
                                "device": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "cpu",
                                        "nvidia",
                                        "netint_quadra",
                                        "netint_t4xx",
                                        "qsv",
                                        "vaapi"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tracks": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "video"
                                          },
                                          "id": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "type": "object"
                                          },
                                          "passthrough": {
                                            "type": "boolean"
                                          },
                                          "renditions": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "size": {
                                                  "type": "object",
                                                  "properties": {
                                                    "width": {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    "height": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer",
                                                          "exclusiveMinimum": 0,
                                                          "maximum": 9007199254740991
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "additionalProperties": {}
                                                },
                                                "codec": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "gop_size_ms": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "bit_rate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "frame_skipping": {
                                                  "type": "string",
                                                  "enum": [
                                                    "none",
                                                    "half",
                                                    "quarter",
                                                    "frame_every_1_seconds",
                                                    "frame_every_5_seconds"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "audio"
                                          },
                                          "id": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "type": "object"
                                          },
                                          "passthrough": {
                                            "type": "boolean"
                                          },
                                          "renditions": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "codec": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "sample_rate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "channels": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "bit_rate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "subtitle"
                                          },
                                          "id": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "type": "object"
                                          },
                                          "passthrough": {
                                            "type": "boolean"
                                          },
                                          "renditions": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "codec": {
                                                  "type": "string",
                                                  "minLength": 1
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "codec"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "annotations": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "source_ids",
                                "id"
                              ],
                              "additionalProperties": {},
                              "description": "Active transcoder configuration used by this instance"
                            },
                            "pipelines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "track_config_id": {
                                    "type": "string"
                                  },
                                  "source_id": {
                                    "type": "string"
                                  },
                                  "source_track_index": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "info": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "transcoded"
                                          },
                                          "decoder": {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string"
                                              },
                                              "parameters": {
                                                "oneOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "codec": {
                                                        "type": "string"
                                                      },
                                                      "bit_rate": {
                                                        "type": "number"
                                                      },
                                                      "extradata": {
                                                        "anyOf": [
                                                          {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "number"
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "sample_format": {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "anyOf": [
                                                                  {
                                                                    "anyOf": [
                                                                      {
                                                                        "anyOf": [
                                                                          {
                                                                            "anyOf": [
                                                                              {
                                                                                "type": "object",
                                                                                "properties": {
                                                                                  "u8": {
                                                                                    "type": "string"
                                                                                  }
                                                                                },
                                                                                "required": [
                                                                                  "u8"
                                                                                ],
                                                                                "additionalProperties": false
                                                                              },
                                                                              {
                                                                                "type": "object",
                                                                                "properties": {
                                                                                  "i16": {
                                                                                    "type": "string"
                                                                                  }
                                                                                },
                                                                                "required": [
                                                                                  "i16"
                                                                                ],
                                                                                "additionalProperties": false
                                                                              }
                                                                            ]
                                                                          },
                                                                          {
                                                                            "type": "object",
                                                                            "properties": {
                                                                              "i32": {
                                                                                "type": "string"
                                                                              }
                                                                            },
                                                                            "required": [
                                                                              "i32"
                                                                            ],
                                                                            "additionalProperties": false
                                                                          }
                                                                        ]
                                                                      },
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "i64": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "i64"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "f32": {
                                                                        "type": "string"
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "f32"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "f64": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "f64"
                                                                ],
                                                                "additionalProperties": false
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "string",
                                                            "const": "none"
                                                          }
                                                        ]
                                                      },
                                                      "channel_layout": {
                                                        "type": "string"
                                                      },
                                                      "sample_rate": {
                                                        "type": "number"
                                                      },
                                                      "block_align": {
                                                        "type": "number"
                                                      },
                                                      "frame_size": {
                                                        "type": "number"
                                                      },
                                                      "initial_padding": {
                                                        "type": "number"
                                                      },
                                                      "trailing_padding": {
                                                        "type": "number"
                                                      },
                                                      "seek_preroll": {
                                                        "type": "number"
                                                      },
                                                      "bits_per_coded_sample": {
                                                        "type": "number"
                                                      },
                                                      "bits_per_raw_sample": {
                                                        "type": "number"
                                                      },
                                                      "profile": {
                                                        "type": "number"
                                                      },
                                                      "level": {
                                                        "type": "number"
                                                      },
                                                      "type": {
                                                        "type": "string",
                                                        "const": "audio"
                                                      }
                                                    },
                                                    "required": [
                                                      "codec",
                                                      "bit_rate",
                                                      "extradata",
                                                      "sample_format",
                                                      "channel_layout",
                                                      "sample_rate",
                                                      "block_align",
                                                      "frame_size",
                                                      "initial_padding",
                                                      "trailing_padding",
                                                      "seek_preroll",
                                                      "bits_per_coded_sample",
                                                      "bits_per_raw_sample",
                                                      "profile",
                                                      "level",
                                                      "type"
                                                    ],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "codec": {
                                                        "type": "string"
                                                      },
                                                      "bit_rate": {
                                                        "type": "number"
                                                      },
                                                      "extradata": {
                                                        "anyOf": [
                                                          {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "number"
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "hw_pixel_format": {
                                                        "type": "string"
                                                      },
                                                      "pixel_format": {
                                                        "type": "string"
                                                      },
                                                      "width": {
                                                        "type": "number"
                                                      },
                                                      "height": {
                                                        "type": "number"
                                                      },
                                                      "color_range": {
                                                        "type": "string"
                                                      },
                                                      "color_space": {
                                                        "type": "string"
                                                      },
                                                      "color_primaries": {
                                                        "type": "string"
                                                      },
                                                      "color_trc": {
                                                        "type": "string"
                                                      },
                                                      "chroma_location": {
                                                        "type": "string"
                                                      },
                                                      "field_order": {
                                                        "type": "string"
                                                      },
                                                      "separated_fields": {
                                                        "type": "boolean"
                                                      },
                                                      "bits_per_coded_sample": {
                                                        "type": "number"
                                                      },
                                                      "bits_per_raw_sample": {
                                                        "type": "number"
                                                      },
                                                      "profile": {
                                                        "type": "number"
                                                      },
                                                      "level": {
                                                        "type": "number"
                                                      },
                                                      "sample_aspect_ratio": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "number"
                                                        }
                                                      },
                                                      "type": {
                                                        "type": "string",
                                                        "const": "video"
                                                      }
                                                    },
                                                    "required": [
                                                      "codec",
                                                      "bit_rate",
                                                      "extradata",
                                                      "hw_pixel_format",
                                                      "pixel_format",
                                                      "width",
                                                      "height",
                                                      "color_range",
                                                      "color_space",
                                                      "color_primaries",
                                                      "color_trc",
                                                      "chroma_location",
                                                      "field_order",
                                                      "separated_fields",
                                                      "bits_per_coded_sample",
                                                      "bits_per_raw_sample",
                                                      "profile",
                                                      "level",
                                                      "sample_aspect_ratio",
                                                      "type"
                                                    ],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "codec": {
                                                        "type": "string"
                                                      },
                                                      "kind": {
                                                        "type": "string",
                                                        "enum": [
                                                          "audio",
                                                          "video",
                                                          "subtitle",
                                                          "data",
                                                          "attachment"
                                                        ]
                                                      },
                                                      "extradata": {
                                                        "anyOf": [
                                                          {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "number"
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "bits_per_coded_sample": {
                                                        "type": "number"
                                                      },
                                                      "bits_per_raw_sample": {
                                                        "type": "number"
                                                      },
                                                      "profile": {
                                                        "type": "number"
                                                      },
                                                      "level": {
                                                        "type": "number"
                                                      },
                                                      "type": {
                                                        "type": "string",
                                                        "const": "basic"
                                                      }
                                                    },
                                                    "required": [
                                                      "codec",
                                                      "kind",
                                                      "extradata",
                                                      "bits_per_coded_sample",
                                                      "bits_per_raw_sample",
                                                      "profile",
                                                      "level",
                                                      "type"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                ],
                                                "type": "object"
                                              },
                                              "options": {
                                                "type": "array",
                                                "items": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "oneOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "string"
                                                            },
                                                            "value": {
                                                              "type": "string"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "int"
                                                            },
                                                            "value": {
                                                              "type": "integer",
                                                              "minimum": -9007199254740991,
                                                              "maximum": 9007199254740991
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "u_int"
                                                            },
                                                            "value": {
                                                              "type": "integer",
                                                              "minimum": 0,
                                                              "maximum": 9007199254740991
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "double"
                                                            },
                                                            "value": {
                                                              "type": "number"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "bool"
                                                            },
                                                            "value": {
                                                              "default": false,
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "ratio"
                                                            },
                                                            "value": {
                                                              "type": "array",
                                                              "prefixItems": [
                                                                {
                                                                  "type": "integer",
                                                                  "minimum": -9007199254740991,
                                                                  "maximum": 9007199254740991
                                                                },
                                                                {
                                                                  "type": "integer",
                                                                  "minimum": -9007199254740991,
                                                                  "maximum": 9007199254740991
                                                                }
                                                              ],
                                                              "items": false,
                                                              "minItems": 2,
                                                              "maxItems": 2
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "pixel"
                                                            },
                                                            "value": {
                                                              "type": "string"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "sample"
                                                            },
                                                            "value": {
                                                              "type": "string"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "value"
                                                          ],
                                                          "additionalProperties": {}
                                                        }
                                                      ],
                                                      "type": "object"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "frame_rate": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "prefixItems": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "number"
                                                      }
                                                    ],
                                                    "items": false,
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "required": [
                                              "name",
                                              "parameters",
                                              "options"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "encoders": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "rendition_id": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                },
                                                "options": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "string"
                                                              },
                                                              "value": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "int"
                                                              },
                                                              "value": {
                                                                "type": "integer",
                                                                "minimum": -9007199254740991,
                                                                "maximum": 9007199254740991
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "u_int"
                                                              },
                                                              "value": {
                                                                "type": "integer",
                                                                "minimum": 0,
                                                                "maximum": 9007199254740991
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "double"
                                                              },
                                                              "value": {
                                                                "type": "number"
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "bool"
                                                              },
                                                              "value": {
                                                                "default": false,
                                                                "type": "boolean"
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "ratio"
                                                              },
                                                              "value": {
                                                                "type": "array",
                                                                "prefixItems": [
                                                                  {
                                                                    "type": "integer",
                                                                    "minimum": -9007199254740991,
                                                                    "maximum": 9007199254740991
                                                                  },
                                                                  {
                                                                    "type": "integer",
                                                                    "minimum": -9007199254740991,
                                                                    "maximum": 9007199254740991
                                                                  }
                                                                ],
                                                                "items": false,
                                                                "minItems": 2,
                                                                "maxItems": 2
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "pixel"
                                                              },
                                                              "value": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "type": {
                                                                "type": "string",
                                                                "const": "sample"
                                                              },
                                                              "value": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "type",
                                                              "value"
                                                            ],
                                                            "additionalProperties": {}
                                                          }
                                                        ],
                                                        "type": "object"
                                                      }
                                                    ],
                                                    "items": false,
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                  }
                                                },
                                                "parameters": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "codec": {
                                                          "type": "string"
                                                        },
                                                        "bit_rate": {
                                                          "type": "number"
                                                        },
                                                        "extradata": {
                                                          "anyOf": [
                                                            {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "number"
                                                              }
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sample_format": {
                                                          "anyOf": [
                                                            {
                                                              "anyOf": [
                                                                {
                                                                  "anyOf": [
                                                                    {
                                                                      "anyOf": [
                                                                        {
                                                                          "anyOf": [
                                                                            {
                                                                              "anyOf": [
                                                                                {
                                                                                  "type": "object",
                                                                                  "properties": {
                                                                                    "u8": {
                                                                                      "type": "string"
                                                                                    }
                                                                                  },
                                                                                  "required": [
                                                                                    "u8"
                                                                                  ],
                                                                                  "additionalProperties": false
                                                                                },
                                                                                {
                                                                                  "type": "object",
                                                                                  "properties": {
                                                                                    "i16": {
                                                                                      "type": "string"
                                                                                    }
                                                                                  },
                                                                                  "required": [
                                                                                    "i16"
                                                                                  ],
                                                                                  "additionalProperties": false
                                                                                }
                                                                              ]
                                                                            },
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "i32": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "i32"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "type": "object",
                                                                          "properties": {
                                                                            "i64": {
                                                                              "type": "string"
                                                                            }
                                                                          },
                                                                          "required": [
                                                                            "i64"
                                                                          ],
                                                                          "additionalProperties": false
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "f32": {
                                                                          "type": "string"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "f32"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "f64": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "f64"
                                                                  ],
                                                                  "additionalProperties": false
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "type": "string",
                                                              "const": "none"
                                                            }
                                                          ]
                                                        },
                                                        "channel_layout": {
                                                          "type": "string"
                                                        },
                                                        "sample_rate": {
                                                          "type": "number"
                                                        },
                                                        "block_align": {
                                                          "type": "number"
                                                        },
                                                        "frame_size": {
                                                          "type": "number"
                                                        },
                                                        "initial_padding": {
                                                          "type": "number"
                                                        },
                                                        "trailing_padding": {
                                                          "type": "number"
                                                        },
                                                        "seek_preroll": {
                                                          "type": "number"
                                                        },
                                                        "bits_per_coded_sample": {
                                                          "type": "number"
                                                        },
                                                        "bits_per_raw_sample": {
                                                          "type": "number"
                                                        },
                                                        "profile": {
                                                          "type": "number"
                                                        },
                                                        "level": {
                                                          "type": "number"
                                                        },
                                                        "type": {
                                                          "type": "string",
                                                          "const": "audio"
                                                        }
                                                      },
                                                      "required": [
                                                        "codec",
                                                        "bit_rate",
                                                        "extradata",
                                                        "sample_format",
                                                        "channel_layout",
                                                        "sample_rate",
                                                        "block_align",
                                                        "frame_size",
                                                        "initial_padding",
                                                        "trailing_padding",
                                                        "seek_preroll",
                                                        "bits_per_coded_sample",
                                                        "bits_per_raw_sample",
                                                        "profile",
                                                        "level",
                                                        "type"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "codec": {
                                                          "type": "string"
                                                        },
                                                        "bit_rate": {
                                                          "type": "number"
                                                        },
                                                        "extradata": {
                                                          "anyOf": [
                                                            {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "number"
                                                              }
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "hw_pixel_format": {
                                                          "type": "string"
                                                        },
                                                        "pixel_format": {
                                                          "type": "string"
                                                        },
                                                        "width": {
                                                          "type": "number"
                                                        },
                                                        "height": {
                                                          "type": "number"
                                                        },
                                                        "color_range": {
                                                          "type": "string"
                                                        },
                                                        "color_space": {
                                                          "type": "string"
                                                        },
                                                        "color_primaries": {
                                                          "type": "string"
                                                        },
                                                        "color_trc": {
                                                          "type": "string"
                                                        },
                                                        "chroma_location": {
                                                          "type": "string"
                                                        },
                                                        "field_order": {
                                                          "type": "string"
                                                        },
                                                        "separated_fields": {
                                                          "type": "boolean"
                                                        },
                                                        "bits_per_coded_sample": {
                                                          "type": "number"
                                                        },
                                                        "bits_per_raw_sample": {
                                                          "type": "number"
                                                        },
                                                        "profile": {
                                                          "type": "number"
                                                        },
                                                        "level": {
                                                          "type": "number"
                                                        },
                                                        "sample_aspect_ratio": {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        "type": {
                                                          "type": "string",
                                                          "const": "video"
                                                        }
                                                      },
                                                      "required": [
                                                        "codec",
                                                        "bit_rate",
                                                        "extradata",
                                                        "hw_pixel_format",
                                                        "pixel_format",
                                                        "width",
                                                        "height",
                                                        "color_range",
                                                        "color_space",
                                                        "color_primaries",
                                                        "color_trc",
                                                        "chroma_location",
                                                        "field_order",
                                                        "separated_fields",
                                                        "bits_per_coded_sample",
                                                        "bits_per_raw_sample",
                                                        "profile",
                                                        "level",
                                                        "sample_aspect_ratio",
                                                        "type"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "codec": {
                                                          "type": "string"
                                                        },
                                                        "kind": {
                                                          "type": "string",
                                                          "enum": [
                                                            "audio",
                                                            "video",
                                                            "subtitle",
                                                            "data",
                                                            "attachment"
                                                          ]
                                                        },
                                                        "extradata": {
                                                          "anyOf": [
                                                            {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "number"
                                                              }
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "bits_per_coded_sample": {
                                                          "type": "number"
                                                        },
                                                        "bits_per_raw_sample": {
                                                          "type": "number"
                                                        },
                                                        "profile": {
                                                          "type": "number"
                                                        },
                                                        "level": {
                                                          "type": "number"
                                                        },
                                                        "type": {
                                                          "type": "string",
                                                          "const": "basic"
                                                        }
                                                      },
                                                      "required": [
                                                        "codec",
                                                        "kind",
                                                        "extradata",
                                                        "bits_per_coded_sample",
                                                        "bits_per_raw_sample",
                                                        "profile",
                                                        "level",
                                                        "type"
                                                      ],
                                                      "additionalProperties": false
                                                    }
                                                  ],
                                                  "type": "object"
                                                },
                                                "gop_size": {
                                                  "type": [
                                                    "number",
                                                    "null"
                                                  ]
                                                },
                                                "track_index": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                "frame_rate": {
                                                  "anyOf": [
                                                    {
                                                      "type": "array",
                                                      "prefixItems": [
                                                        {
                                                          "type": "number"
                                                        },
                                                        {
                                                          "type": "number"
                                                        }
                                                      ],
                                                      "items": false,
                                                      "minItems": 2,
                                                      "maxItems": 2
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "rendition_id",
                                                "name",
                                                "options",
                                                "parameters",
                                                "track_index"
                                              ],
                                              "additionalProperties": false
                                            }
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "decoder",
                                          "encoders"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "passthrough"
                                          },
                                          "track_index": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "track_index"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "required": [
                                  "track_config_id",
                                  "source_id",
                                  "source_track_index",
                                  "info"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Decode/encode pipelines currently running for this instance"
                            },
                            "start_time": {
                              "description": "Unix timestamp (ms) when the transcoder started, null if not yet started",
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "target_state",
                            "state",
                            "tracks",
                            "config",
                            "pipelines",
                            "start_time"
                          ],
                          "additionalProperties": false,
                          "description": "Current runtime state reported by the packager"
                        }
                      ],
                      "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "organizationId",
                    "packagerId",
                    "resourceId",
                    "transcoderConfigId",
                    "taskId",
                    "info"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/compositor-instances": {
      "get": {
        "operationId": "v1-compositorInstances-get",
        "summary": "List compositor instances",
        "description": "Get a list of compositor instances that the provided api key has access to; start or stop one with POST /v1/packagers/compositor-instances/{id}/start or /stop.",
        "tags": [
          "Packagers / Compositors"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "createdAt",
                "taskId"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "packagerId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the compositor instance."
                          },
                          "createdAt": {
                            "description": "When the compositor instance was created",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the compositor instance was last modified",
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that owns this compositor instance"
                          },
                          "packagerId": {
                            "type": "string",
                            "description": "Packager this instance runs on"
                          },
                          "resourceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Packager resource assigned to this instance"
                          },
                          "compositorConfigId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "nanoid",
                                "pattern": "^[a-zA-Z0-9_-]{21}$"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "CompositorConfig this instance was created from, null if created ad-hoc"
                          },
                          "taskId": {
                            "type": "string",
                            "description": "Task identifier on the packager running this compositor"
                          },
                          "info": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "target_state": {
                                    "type": "string",
                                    "enum": [
                                      "started",
                                      "stopped",
                                      "destroyed"
                                    ],
                                    "description": "Desired state commanded by the control plane"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "starting",
                                      "started",
                                      "stopping",
                                      "stopped",
                                      "waiting",
                                      "congested"
                                    ],
                                    "description": "Actual current operational state reported by the packager"
                                  },
                                  "tracks": {
                                    "type": "object",
                                    "properties": {
                                      "all": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "video"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "hw_pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "width": {
                                                      "type": "number"
                                                    },
                                                    "height": {
                                                      "type": "number"
                                                    },
                                                    "color_range": {
                                                      "type": "string"
                                                    },
                                                    "color_space": {
                                                      "type": "string"
                                                    },
                                                    "color_primaries": {
                                                      "type": "string"
                                                    },
                                                    "color_trc": {
                                                      "type": "string"
                                                    },
                                                    "chroma_location": {
                                                      "type": "string"
                                                    },
                                                    "field_order": {
                                                      "type": "string"
                                                    },
                                                    "separated_fields": {
                                                      "type": "boolean"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    },
                                                    "sample_aspect_ratio": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "number"
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "hw_pixel_format",
                                                    "pixel_format",
                                                    "width",
                                                    "height",
                                                    "color_range",
                                                    "color_space",
                                                    "color_primaries",
                                                    "color_trc",
                                                    "chroma_location",
                                                    "field_order",
                                                    "separated_fields",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level",
                                                    "sample_aspect_ratio"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "avg_frame_rate": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "gop_size": {
                                                  "type": "number"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "avg_frame_rate",
                                                "gop_size",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "audio"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "sample_format": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "anyOf": [
                                                                {
                                                                  "anyOf": [
                                                                    {
                                                                      "anyOf": [
                                                                        {
                                                                          "anyOf": [
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "u8": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "u8"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            },
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "i16": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "i16"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "type": "object",
                                                                          "properties": {
                                                                            "i32": {
                                                                              "type": "string"
                                                                            }
                                                                          },
                                                                          "required": [
                                                                            "i32"
                                                                          ],
                                                                          "additionalProperties": false
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "i64": {
                                                                          "type": "string"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "i64"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "f32": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "f32"
                                                                  ],
                                                                  "additionalProperties": false
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "f64": {
                                                                  "type": "string"
                                                                }
                                                              },
                                                              "required": [
                                                                "f64"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "string",
                                                          "const": "none"
                                                        }
                                                      ]
                                                    },
                                                    "channel_layout": {
                                                      "type": "string"
                                                    },
                                                    "sample_rate": {
                                                      "type": "number"
                                                    },
                                                    "block_align": {
                                                      "type": "number"
                                                    },
                                                    "frame_size": {
                                                      "type": "number"
                                                    },
                                                    "initial_padding": {
                                                      "type": "number"
                                                    },
                                                    "trailing_padding": {
                                                      "type": "number"
                                                    },
                                                    "seek_preroll": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "sample_format",
                                                    "channel_layout",
                                                    "sample_rate",
                                                    "block_align",
                                                    "frame_size",
                                                    "initial_padding",
                                                    "trailing_padding",
                                                    "seek_preroll",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "language": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "language",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "subtitles"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "data"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "attachment"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "unknown"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      }
                                    },
                                    "required": [
                                      "all"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Track details of the composited output"
                                  },
                                  "config": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "target_state": {
                                        "type": "string",
                                        "enum": [
                                          "started",
                                          "stopped",
                                          "destroyed"
                                        ]
                                      },
                                      "video": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "sources": {
                                                "default": [],
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                                    },
                                                    "source_id": {
                                                      "type": "string",
                                                      "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                                    },
                                                    "track_selector": {
                                                      "oneOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "track-kind"
                                                            },
                                                            "kind": {
                                                              "type": "string",
                                                              "enum": [
                                                                "unknown",
                                                                "video",
                                                                "audio",
                                                                "data",
                                                                "subtitle",
                                                                "attachment"
                                                              ]
                                                            },
                                                            "codec": {
                                                              "type": [
                                                                "string",
                                                                "null"
                                                              ]
                                                            },
                                                            "criteria": {
                                                              "type": "string",
                                                              "enum": [
                                                                "all",
                                                                "best"
                                                              ]
                                                            },
                                                            "language": {
                                                              "type": [
                                                                "string",
                                                                "null"
                                                              ]
                                                            },
                                                            "is_required": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "kind"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "track-id"
                                                            },
                                                            "id": {
                                                              "type": "integer",
                                                              "minimum": -9007199254740991,
                                                              "maximum": 9007199254740991
                                                            },
                                                            "is_required": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "id"
                                                          ],
                                                          "additionalProperties": {}
                                                        }
                                                      ],
                                                      "description": "Rule used to pick the track out of the feeding task",
                                                      "type": "object"
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "source_id",
                                                    "track_selector"
                                                  ],
                                                  "additionalProperties": {}
                                                }
                                              },
                                              "nodes": {
                                                "default": [],
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "description": "Unique within the compositor; this is what runtime filter commands address"
                                                    },
                                                    "source_ids": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string"
                                                      },
                                                      "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "description": "Which video filter this node runs — overlay | overlay_cuda | xstack | drawtext | null today"
                                                    },
                                                    "output_format": {
                                                      "description": "Appends a format conversion filter when set, e.g. \"yuv420p\" for GPU compatibility",
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "source_ids",
                                                    "type"
                                                  ],
                                                  "additionalProperties": {}
                                                }
                                              }
                                            },
                                            "required": [
                                              "sources",
                                              "nodes"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "audio": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "sources": {
                                                "default": [],
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                                    },
                                                    "source_id": {
                                                      "type": "string",
                                                      "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                                    },
                                                    "track_selector": {
                                                      "oneOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "track-kind"
                                                            },
                                                            "kind": {
                                                              "type": "string",
                                                              "enum": [
                                                                "unknown",
                                                                "video",
                                                                "audio",
                                                                "data",
                                                                "subtitle",
                                                                "attachment"
                                                              ]
                                                            },
                                                            "codec": {
                                                              "type": [
                                                                "string",
                                                                "null"
                                                              ]
                                                            },
                                                            "criteria": {
                                                              "type": "string",
                                                              "enum": [
                                                                "all",
                                                                "best"
                                                              ]
                                                            },
                                                            "language": {
                                                              "type": [
                                                                "string",
                                                                "null"
                                                              ]
                                                            },
                                                            "is_required": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "kind"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "track-id"
                                                            },
                                                            "id": {
                                                              "type": "integer",
                                                              "minimum": -9007199254740991,
                                                              "maximum": 9007199254740991
                                                            },
                                                            "is_required": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "id"
                                                          ],
                                                          "additionalProperties": {}
                                                        }
                                                      ],
                                                      "description": "Rule used to pick the track out of the feeding task",
                                                      "type": "object"
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "source_id",
                                                    "track_selector"
                                                  ],
                                                  "additionalProperties": {}
                                                }
                                              },
                                              "nodes": {
                                                "default": [],
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "description": "Unique within the compositor; this is what runtime filter commands address"
                                                    },
                                                    "source_ids": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string"
                                                      },
                                                      "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "description": "Which audio filter this node runs — volume | amix | amerge | anull today"
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "source_ids",
                                                    "type"
                                                  ],
                                                  "additionalProperties": {}
                                                }
                                              }
                                            },
                                            "required": [
                                              "sources",
                                              "nodes"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "passthrough": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "sources": {
                                                "default": [],
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                                    },
                                                    "source_id": {
                                                      "type": "string",
                                                      "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                                    },
                                                    "track_selector": {
                                                      "oneOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "track-kind"
                                                            },
                                                            "kind": {
                                                              "type": "string",
                                                              "enum": [
                                                                "unknown",
                                                                "video",
                                                                "audio",
                                                                "data",
                                                                "subtitle",
                                                                "attachment"
                                                              ]
                                                            },
                                                            "codec": {
                                                              "type": [
                                                                "string",
                                                                "null"
                                                              ]
                                                            },
                                                            "criteria": {
                                                              "type": "string",
                                                              "enum": [
                                                                "all",
                                                                "best"
                                                              ]
                                                            },
                                                            "language": {
                                                              "type": [
                                                                "string",
                                                                "null"
                                                              ]
                                                            },
                                                            "is_required": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "kind"
                                                          ],
                                                          "additionalProperties": {}
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "type": {
                                                              "type": "string",
                                                              "const": "track-id"
                                                            },
                                                            "id": {
                                                              "type": "integer",
                                                              "minimum": -9007199254740991,
                                                              "maximum": 9007199254740991
                                                            },
                                                            "is_required": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "type",
                                                            "id"
                                                          ],
                                                          "additionalProperties": {}
                                                        }
                                                      ],
                                                      "description": "Rule used to pick the track out of the feeding task",
                                                      "type": "object"
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "source_id",
                                                    "track_selector"
                                                  ],
                                                  "additionalProperties": {}
                                                }
                                              }
                                            },
                                            "required": [
                                              "sources"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "anchor": {
                                        "description": "Input id whose clock the output carries; its timestamps are never rewritten. Defaults to a passthrough video input, else the first decoded input",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ],
                                    "additionalProperties": {},
                                    "description": "Active compositor configuration used by this instance"
                                  },
                                  "start_time": {
                                    "description": "Unix timestamp (ms) when the compositor started, null if not yet started",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "target_state",
                                  "state",
                                  "tracks",
                                  "config",
                                  "start_time"
                                ],
                                "additionalProperties": false,
                                "description": "Current runtime state reported by the packager"
                              }
                            ],
                            "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "organizationId",
                          "packagerId",
                          "resourceId",
                          "compositorConfigId",
                          "taskId",
                          "info"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of compositor instances, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of compositor instances."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/compositor-instances/{id}": {
      "get": {
        "operationId": "v1-compositorInstances-getById",
        "summary": "Get compositor instance",
        "description": "Get a compositor instance by id.",
        "tags": [
          "Packagers / Compositors"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the compositor instance to get."
            },
            "required": true,
            "description": "ID of the compositor instance to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the compositor instance."
                    },
                    "createdAt": {
                      "description": "When the compositor instance was created",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the compositor instance was last modified",
                      "type": "string"
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that owns this compositor instance"
                    },
                    "packagerId": {
                      "type": "string",
                      "description": "Packager this instance runs on"
                    },
                    "resourceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Packager resource assigned to this instance"
                    },
                    "compositorConfigId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "CompositorConfig this instance was created from, null if created ad-hoc"
                    },
                    "taskId": {
                      "type": "string",
                      "description": "Task identifier on the packager running this compositor"
                    },
                    "info": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ],
                              "description": "Desired state commanded by the control plane"
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "starting",
                                "started",
                                "stopping",
                                "stopped",
                                "waiting",
                                "congested"
                              ],
                              "description": "Actual current operational state reported by the packager"
                            },
                            "tracks": {
                              "type": "object",
                              "properties": {
                                "all": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "video"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "hw_pixel_format": {
                                                "type": "string"
                                              },
                                              "pixel_format": {
                                                "type": "string"
                                              },
                                              "width": {
                                                "type": "number"
                                              },
                                              "height": {
                                                "type": "number"
                                              },
                                              "color_range": {
                                                "type": "string"
                                              },
                                              "color_space": {
                                                "type": "string"
                                              },
                                              "color_primaries": {
                                                "type": "string"
                                              },
                                              "color_trc": {
                                                "type": "string"
                                              },
                                              "chroma_location": {
                                                "type": "string"
                                              },
                                              "field_order": {
                                                "type": "string"
                                              },
                                              "separated_fields": {
                                                "type": "boolean"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              },
                                              "sample_aspect_ratio": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                }
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "hw_pixel_format",
                                              "pixel_format",
                                              "width",
                                              "height",
                                              "color_range",
                                              "color_space",
                                              "color_primaries",
                                              "color_trc",
                                              "chroma_location",
                                              "field_order",
                                              "separated_fields",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level",
                                              "sample_aspect_ratio"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "avg_frame_rate": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          },
                                          "gop_size": {
                                            "type": "number"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "avg_frame_rate",
                                          "gop_size",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "audio"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "sample_format": {
                                                "anyOf": [
                                                  {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "anyOf": [
                                                                  {
                                                                    "anyOf": [
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "u8": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "u8"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      },
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "i16": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "i16"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "i32": {
                                                                        "type": "string"
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "i32"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "i64": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "i64"
                                                                ],
                                                                "additionalProperties": false
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "f32": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "f32"
                                                            ],
                                                            "additionalProperties": false
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "f64": {
                                                            "type": "string"
                                                          }
                                                        },
                                                        "required": [
                                                          "f64"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "string",
                                                    "const": "none"
                                                  }
                                                ]
                                              },
                                              "channel_layout": {
                                                "type": "string"
                                              },
                                              "sample_rate": {
                                                "type": "number"
                                              },
                                              "block_align": {
                                                "type": "number"
                                              },
                                              "frame_size": {
                                                "type": "number"
                                              },
                                              "initial_padding": {
                                                "type": "number"
                                              },
                                              "trailing_padding": {
                                                "type": "number"
                                              },
                                              "seek_preroll": {
                                                "type": "number"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "sample_format",
                                              "channel_layout",
                                              "sample_rate",
                                              "block_align",
                                              "frame_size",
                                              "initial_padding",
                                              "trailing_padding",
                                              "seek_preroll",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "language": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "language",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "subtitles"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "data"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "attachment"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "unknown"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ],
                                    "type": "object"
                                  }
                                }
                              },
                              "required": [
                                "all"
                              ],
                              "additionalProperties": false,
                              "description": "Track details of the composited output"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "description": {
                                  "type": "string"
                                },
                                "target_state": {
                                  "type": "string",
                                  "enum": [
                                    "started",
                                    "stopped",
                                    "destroyed"
                                  ]
                                },
                                "video": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sources": {
                                          "default": [],
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                              },
                                              "source_id": {
                                                "type": "string",
                                                "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                              },
                                              "track_selector": {
                                                "oneOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "type": {
                                                        "type": "string",
                                                        "const": "track-kind"
                                                      },
                                                      "kind": {
                                                        "type": "string",
                                                        "enum": [
                                                          "unknown",
                                                          "video",
                                                          "audio",
                                                          "data",
                                                          "subtitle",
                                                          "attachment"
                                                        ]
                                                      },
                                                      "codec": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "criteria": {
                                                        "type": "string",
                                                        "enum": [
                                                          "all",
                                                          "best"
                                                        ]
                                                      },
                                                      "language": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "is_required": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "type",
                                                      "kind"
                                                    ],
                                                    "additionalProperties": {}
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "type": {
                                                        "type": "string",
                                                        "const": "track-id"
                                                      },
                                                      "id": {
                                                        "type": "integer",
                                                        "minimum": -9007199254740991,
                                                        "maximum": 9007199254740991
                                                      },
                                                      "is_required": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "type",
                                                      "id"
                                                    ],
                                                    "additionalProperties": {}
                                                  }
                                                ],
                                                "description": "Rule used to pick the track out of the feeding task",
                                                "type": "object"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "source_id",
                                              "track_selector"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        },
                                        "nodes": {
                                          "default": [],
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "description": "Unique within the compositor; this is what runtime filter commands address"
                                              },
                                              "source_ids": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                },
                                                "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                              },
                                              "type": {
                                                "type": "string",
                                                "description": "Which video filter this node runs — overlay | overlay_cuda | xstack | drawtext | null today"
                                              },
                                              "output_format": {
                                                "description": "Appends a format conversion filter when set, e.g. \"yuv420p\" for GPU compatibility",
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "source_ids",
                                              "type"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        }
                                      },
                                      "required": [
                                        "sources",
                                        "nodes"
                                      ],
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "audio": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sources": {
                                          "default": [],
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                              },
                                              "source_id": {
                                                "type": "string",
                                                "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                              },
                                              "track_selector": {
                                                "oneOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "type": {
                                                        "type": "string",
                                                        "const": "track-kind"
                                                      },
                                                      "kind": {
                                                        "type": "string",
                                                        "enum": [
                                                          "unknown",
                                                          "video",
                                                          "audio",
                                                          "data",
                                                          "subtitle",
                                                          "attachment"
                                                        ]
                                                      },
                                                      "codec": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "criteria": {
                                                        "type": "string",
                                                        "enum": [
                                                          "all",
                                                          "best"
                                                        ]
                                                      },
                                                      "language": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "is_required": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "type",
                                                      "kind"
                                                    ],
                                                    "additionalProperties": {}
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "type": {
                                                        "type": "string",
                                                        "const": "track-id"
                                                      },
                                                      "id": {
                                                        "type": "integer",
                                                        "minimum": -9007199254740991,
                                                        "maximum": 9007199254740991
                                                      },
                                                      "is_required": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "type",
                                                      "id"
                                                    ],
                                                    "additionalProperties": {}
                                                  }
                                                ],
                                                "description": "Rule used to pick the track out of the feeding task",
                                                "type": "object"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "source_id",
                                              "track_selector"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        },
                                        "nodes": {
                                          "default": [],
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "description": "Unique within the compositor; this is what runtime filter commands address"
                                              },
                                              "source_ids": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                },
                                                "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                              },
                                              "type": {
                                                "type": "string",
                                                "description": "Which audio filter this node runs — volume | amix | amerge | anull today"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "source_ids",
                                              "type"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        }
                                      },
                                      "required": [
                                        "sources",
                                        "nodes"
                                      ],
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "passthrough": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "sources": {
                                          "default": [],
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                              },
                                              "source_id": {
                                                "type": "string",
                                                "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                              },
                                              "track_selector": {
                                                "oneOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "type": {
                                                        "type": "string",
                                                        "const": "track-kind"
                                                      },
                                                      "kind": {
                                                        "type": "string",
                                                        "enum": [
                                                          "unknown",
                                                          "video",
                                                          "audio",
                                                          "data",
                                                          "subtitle",
                                                          "attachment"
                                                        ]
                                                      },
                                                      "codec": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "criteria": {
                                                        "type": "string",
                                                        "enum": [
                                                          "all",
                                                          "best"
                                                        ]
                                                      },
                                                      "language": {
                                                        "type": [
                                                          "string",
                                                          "null"
                                                        ]
                                                      },
                                                      "is_required": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "type",
                                                      "kind"
                                                    ],
                                                    "additionalProperties": {}
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "type": {
                                                        "type": "string",
                                                        "const": "track-id"
                                                      },
                                                      "id": {
                                                        "type": "integer",
                                                        "minimum": -9007199254740991,
                                                        "maximum": 9007199254740991
                                                      },
                                                      "is_required": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "type",
                                                      "id"
                                                    ],
                                                    "additionalProperties": {}
                                                  }
                                                ],
                                                "description": "Rule used to pick the track out of the feeding task",
                                                "type": "object"
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "source_id",
                                              "track_selector"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        }
                                      },
                                      "required": [
                                        "sources"
                                      ],
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "anchor": {
                                  "description": "Input id whose clock the output carries; its timestamps are never rewritten. Defaults to a passthrough video input, else the first decoded input",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {},
                              "description": "Active compositor configuration used by this instance"
                            },
                            "start_time": {
                              "description": "Unix timestamp (ms) when the compositor started, null if not yet started",
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "target_state",
                            "state",
                            "tracks",
                            "config",
                            "start_time"
                          ],
                          "additionalProperties": false,
                          "description": "Current runtime state reported by the packager"
                        }
                      ],
                      "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "organizationId",
                    "packagerId",
                    "resourceId",
                    "compositorConfigId",
                    "taskId",
                    "info"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/source-instances": {
      "get": {
        "operationId": "v1-sourceInstances-get",
        "summary": "List source instances",
        "description": "Get a list of source instances that the provided API key has access to. A source instance is a source task running on a packager; start or stop one with POST /v1/packagers/source-instances/{id}/start or /stop.",
        "tags": [
          "Packagers / Sources"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "createdAt",
                "taskId"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "packagerId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the source instance."
                          },
                          "createdAt": {
                            "description": "When the source instance was created",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the source instance was last modified",
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that owns this source instance"
                          },
                          "packagerId": {
                            "type": "string",
                            "description": "Packager this instance runs on"
                          },
                          "resourceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Packager resource assigned to this instance"
                          },
                          "sourceConfigId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "nanoid",
                                "pattern": "^[a-zA-Z0-9_-]{21}$"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "SourceConfig this instance was created from, or null when no matching deployment config was found"
                          },
                          "taskId": {
                            "type": "string",
                            "description": "Task identifier on the packager running this source"
                          },
                          "info": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "target_state": {
                                    "type": "string",
                                    "enum": [
                                      "started",
                                      "stopped",
                                      "destroyed"
                                    ],
                                    "description": "Desired state commanded by the control plane"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "starting",
                                      "started",
                                      "stopping",
                                      "stopped",
                                      "waiting",
                                      "congested"
                                    ],
                                    "description": "Actual current operational state reported by the packager"
                                  },
                                  "tracks": {
                                    "type": "object",
                                    "properties": {
                                      "all": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "video"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "hw_pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "width": {
                                                      "type": "number"
                                                    },
                                                    "height": {
                                                      "type": "number"
                                                    },
                                                    "color_range": {
                                                      "type": "string"
                                                    },
                                                    "color_space": {
                                                      "type": "string"
                                                    },
                                                    "color_primaries": {
                                                      "type": "string"
                                                    },
                                                    "color_trc": {
                                                      "type": "string"
                                                    },
                                                    "chroma_location": {
                                                      "type": "string"
                                                    },
                                                    "field_order": {
                                                      "type": "string"
                                                    },
                                                    "separated_fields": {
                                                      "type": "boolean"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    },
                                                    "sample_aspect_ratio": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "number"
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "hw_pixel_format",
                                                    "pixel_format",
                                                    "width",
                                                    "height",
                                                    "color_range",
                                                    "color_space",
                                                    "color_primaries",
                                                    "color_trc",
                                                    "chroma_location",
                                                    "field_order",
                                                    "separated_fields",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level",
                                                    "sample_aspect_ratio"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "avg_frame_rate": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "gop_size": {
                                                  "type": "number"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "avg_frame_rate",
                                                "gop_size",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "audio"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "sample_format": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "anyOf": [
                                                                {
                                                                  "anyOf": [
                                                                    {
                                                                      "anyOf": [
                                                                        {
                                                                          "anyOf": [
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "u8": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "u8"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            },
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "i16": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "i16"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "type": "object",
                                                                          "properties": {
                                                                            "i32": {
                                                                              "type": "string"
                                                                            }
                                                                          },
                                                                          "required": [
                                                                            "i32"
                                                                          ],
                                                                          "additionalProperties": false
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "i64": {
                                                                          "type": "string"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "i64"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "f32": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "f32"
                                                                  ],
                                                                  "additionalProperties": false
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "f64": {
                                                                  "type": "string"
                                                                }
                                                              },
                                                              "required": [
                                                                "f64"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "string",
                                                          "const": "none"
                                                        }
                                                      ]
                                                    },
                                                    "channel_layout": {
                                                      "type": "string"
                                                    },
                                                    "sample_rate": {
                                                      "type": "number"
                                                    },
                                                    "block_align": {
                                                      "type": "number"
                                                    },
                                                    "frame_size": {
                                                      "type": "number"
                                                    },
                                                    "initial_padding": {
                                                      "type": "number"
                                                    },
                                                    "trailing_padding": {
                                                      "type": "number"
                                                    },
                                                    "seek_preroll": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "sample_format",
                                                    "channel_layout",
                                                    "sample_rate",
                                                    "block_align",
                                                    "frame_size",
                                                    "initial_padding",
                                                    "trailing_padding",
                                                    "seek_preroll",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "language": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "language",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "subtitles"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "data"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "attachment"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "unknown"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      }
                                    },
                                    "required": [
                                      "all"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Track details of the input stream"
                                  },
                                  "config": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "source_type": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "target_state": {
                                        "type": "string",
                                        "enum": [
                                          "started",
                                          "stopped",
                                          "destroyed"
                                        ]
                                      },
                                      "track_selectors": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "track-kind"
                                                },
                                                "kind": {
                                                  "type": "string",
                                                  "enum": [
                                                    "unknown",
                                                    "video",
                                                    "audio",
                                                    "data",
                                                    "subtitle",
                                                    "attachment"
                                                  ]
                                                },
                                                "codec": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "criteria": {
                                                  "type": "string",
                                                  "enum": [
                                                    "all",
                                                    "best"
                                                  ]
                                                },
                                                "language": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "is_required": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "kind"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "track-id"
                                                },
                                                "id": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                "is_required": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "id"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "demuxer_options": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "string"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "u_int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "double"
                                                },
                                                "value": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "bool"
                                                },
                                                "value": {
                                                  "default": false,
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "ratio"
                                                },
                                                "value": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "pixel"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "sample"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "protocol_options": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "string"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "u_int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "double"
                                                },
                                                "value": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "bool"
                                                },
                                                "value": {
                                                  "default": false,
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "ratio"
                                                },
                                                "value": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "pixel"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "sample"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "reconnect_delay_ms": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "connect_timeout_ms": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "interleave_buffer": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "max_buffer_size_ms": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 9007199254740991
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "annotations": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "source_type"
                                    ],
                                    "additionalProperties": {},
                                    "description": "Active source configuration used by this instance"
                                  },
                                  "demuxer_options": {
                                    "default": {},
                                    "description": "Resolved demuxer options in effect",
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": -9007199254740991,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "default": false,
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "prefixItems": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              ],
                                              "items": false,
                                              "minItems": 2,
                                              "maxItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      ],
                                      "type": "object"
                                    }
                                  },
                                  "protocol_options": {
                                    "default": {},
                                    "description": "Resolved protocol options in effect",
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": -9007199254740991,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "default": false,
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "prefixItems": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              ],
                                              "items": false,
                                              "minItems": 2,
                                              "maxItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      ],
                                      "type": "object"
                                    }
                                  },
                                  "start_time": {
                                    "description": "Unix timestamp (ms) when the source started, null if not yet started",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "target_state",
                                  "state",
                                  "tracks",
                                  "config",
                                  "demuxer_options",
                                  "protocol_options",
                                  "start_time"
                                ],
                                "additionalProperties": false,
                                "description": "Current runtime state reported by the packager"
                              }
                            ],
                            "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "organizationId",
                          "packagerId",
                          "resourceId",
                          "sourceConfigId",
                          "taskId",
                          "info"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of source instances, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of source instances."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/source-instances/{id}": {
      "get": {
        "operationId": "v1-sourceInstances-getById",
        "summary": "Get source instance",
        "description": "Get a source instance by id.",
        "tags": [
          "Packagers / Sources"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the source instance to get."
            },
            "required": true,
            "description": "ID of the source instance to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the source instance."
                    },
                    "createdAt": {
                      "description": "When the source instance was created",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the source instance was last modified",
                      "type": "string"
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that owns this source instance"
                    },
                    "packagerId": {
                      "type": "string",
                      "description": "Packager this instance runs on"
                    },
                    "resourceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Packager resource assigned to this instance"
                    },
                    "sourceConfigId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "SourceConfig this instance was created from, or null when no matching deployment config was found"
                    },
                    "taskId": {
                      "type": "string",
                      "description": "Task identifier on the packager running this source"
                    },
                    "info": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ],
                              "description": "Desired state commanded by the control plane"
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "starting",
                                "started",
                                "stopping",
                                "stopped",
                                "waiting",
                                "congested"
                              ],
                              "description": "Actual current operational state reported by the packager"
                            },
                            "tracks": {
                              "type": "object",
                              "properties": {
                                "all": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "video"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "hw_pixel_format": {
                                                "type": "string"
                                              },
                                              "pixel_format": {
                                                "type": "string"
                                              },
                                              "width": {
                                                "type": "number"
                                              },
                                              "height": {
                                                "type": "number"
                                              },
                                              "color_range": {
                                                "type": "string"
                                              },
                                              "color_space": {
                                                "type": "string"
                                              },
                                              "color_primaries": {
                                                "type": "string"
                                              },
                                              "color_trc": {
                                                "type": "string"
                                              },
                                              "chroma_location": {
                                                "type": "string"
                                              },
                                              "field_order": {
                                                "type": "string"
                                              },
                                              "separated_fields": {
                                                "type": "boolean"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              },
                                              "sample_aspect_ratio": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                }
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "hw_pixel_format",
                                              "pixel_format",
                                              "width",
                                              "height",
                                              "color_range",
                                              "color_space",
                                              "color_primaries",
                                              "color_trc",
                                              "chroma_location",
                                              "field_order",
                                              "separated_fields",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level",
                                              "sample_aspect_ratio"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "avg_frame_rate": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          },
                                          "gop_size": {
                                            "type": "number"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "avg_frame_rate",
                                          "gop_size",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "audio"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "sample_format": {
                                                "anyOf": [
                                                  {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "anyOf": [
                                                                  {
                                                                    "anyOf": [
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "u8": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "u8"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      },
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "i16": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "i16"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "i32": {
                                                                        "type": "string"
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "i32"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "i64": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "i64"
                                                                ],
                                                                "additionalProperties": false
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "f32": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "f32"
                                                            ],
                                                            "additionalProperties": false
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "f64": {
                                                            "type": "string"
                                                          }
                                                        },
                                                        "required": [
                                                          "f64"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "string",
                                                    "const": "none"
                                                  }
                                                ]
                                              },
                                              "channel_layout": {
                                                "type": "string"
                                              },
                                              "sample_rate": {
                                                "type": "number"
                                              },
                                              "block_align": {
                                                "type": "number"
                                              },
                                              "frame_size": {
                                                "type": "number"
                                              },
                                              "initial_padding": {
                                                "type": "number"
                                              },
                                              "trailing_padding": {
                                                "type": "number"
                                              },
                                              "seek_preroll": {
                                                "type": "number"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "sample_format",
                                              "channel_layout",
                                              "sample_rate",
                                              "block_align",
                                              "frame_size",
                                              "initial_padding",
                                              "trailing_padding",
                                              "seek_preroll",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "language": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "language",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "subtitles"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "data"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "attachment"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "unknown"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ],
                                    "type": "object"
                                  }
                                }
                              },
                              "required": [
                                "all"
                              ],
                              "additionalProperties": false,
                              "description": "Track details of the input stream"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "source_type": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "description": {
                                  "type": "string"
                                },
                                "target_state": {
                                  "type": "string",
                                  "enum": [
                                    "started",
                                    "stopped",
                                    "destroyed"
                                  ]
                                },
                                "track_selectors": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "track-kind"
                                          },
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "unknown",
                                              "video",
                                              "audio",
                                              "data",
                                              "subtitle",
                                              "attachment"
                                            ]
                                          },
                                          "codec": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "criteria": {
                                            "type": "string",
                                            "enum": [
                                              "all",
                                              "best"
                                            ]
                                          },
                                          "language": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "is_required": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "kind"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "track-id"
                                          },
                                          "id": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          "is_required": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "id"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "demuxer_options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "u_int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "double"
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "bool"
                                          },
                                          "value": {
                                            "default": false,
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "ratio"
                                          },
                                          "value": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "pixel"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "sample"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "protocol_options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "u_int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "double"
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "bool"
                                          },
                                          "value": {
                                            "default": false,
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "ratio"
                                          },
                                          "value": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "pixel"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "sample"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "reconnect_delay_ms": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "connect_timeout_ms": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "interleave_buffer": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "max_buffer_size_ms": {
                                          "anyOf": [
                                            {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "annotations": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "source_type"
                              ],
                              "additionalProperties": {},
                              "description": "Active source configuration used by this instance"
                            },
                            "demuxer_options": {
                              "default": {},
                              "description": "Resolved demuxer options in effect",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "default": false,
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "protocol_options": {
                              "default": {},
                              "description": "Resolved protocol options in effect",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "default": false,
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "start_time": {
                              "description": "Unix timestamp (ms) when the source started, null if not yet started",
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "target_state",
                            "state",
                            "tracks",
                            "config",
                            "demuxer_options",
                            "protocol_options",
                            "start_time"
                          ],
                          "additionalProperties": false,
                          "description": "Current runtime state reported by the packager"
                        }
                      ],
                      "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "organizationId",
                    "packagerId",
                    "resourceId",
                    "sourceConfigId",
                    "taskId",
                    "info"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/configs": {
      "get": {
        "operationId": "v1-packagerConfigs-get",
        "summary": "List packager configs",
        "description": "Get a list of packager configs that the provided API key has access to.",
        "tags": [
          "Packagers / Configs"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "id",
                "name"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "workspaceId",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the packager config."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the packager config."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description for the packager config."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the packager config belongs to."
                          },
                          "workspaceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Workspace the packager config is associated with."
                          },
                          "revision": {
                            "type": "number",
                            "description": "Starts at 1, incremented on every replace. A deployment stays on its revision until moved to the latest."
                          },
                          "createdAt": {
                            "description": "When the packager config was created.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the packager config was last updated.",
                            "type": "string"
                          },
                          "sources": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "nanoid",
                                  "pattern": "^[a-zA-Z0-9_-]{21}$",
                                  "description": "Unique identifier for the task."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name of the task."
                                },
                                "description": {
                                  "type": "string",
                                  "description": "Description of the task."
                                },
                                "previewEnabled": {
                                  "type": "boolean",
                                  "description": "Reserved for a future preview feature. Not available right now."
                                },
                                "config": {
                                  "description": "Task configuration. Same shape as on create and replace."
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "description",
                                "previewEnabled",
                                "config"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Source task configurations."
                          },
                          "transcoders": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "nanoid",
                                  "pattern": "^[a-zA-Z0-9_-]{21}$",
                                  "description": "Unique identifier for the task."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name of the task."
                                },
                                "description": {
                                  "type": "string",
                                  "description": "Description of the task."
                                },
                                "previewEnabled": {
                                  "type": "boolean",
                                  "description": "Reserved for a future preview feature. Not available right now."
                                },
                                "config": {
                                  "description": "Task configuration. Same shape as on create and replace."
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "description",
                                "previewEnabled",
                                "config"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Transcoder task configurations."
                          },
                          "compositors": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "nanoid",
                                  "pattern": "^[a-zA-Z0-9_-]{21}$",
                                  "description": "Unique identifier for the task."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name of the task."
                                },
                                "description": {
                                  "type": "string",
                                  "description": "Description of the task."
                                },
                                "previewEnabled": {
                                  "type": "boolean",
                                  "description": "Reserved for a future preview feature. Not available right now."
                                },
                                "config": {
                                  "description": "Task configuration. Same shape as on create and replace."
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "description",
                                "previewEnabled",
                                "config"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Compositor task configurations."
                          },
                          "sinks": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "nanoid",
                                  "pattern": "^[a-zA-Z0-9_-]{21}$",
                                  "description": "Unique identifier for the task."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name of the task."
                                },
                                "description": {
                                  "type": "string",
                                  "description": "Description of the task."
                                },
                                "previewEnabled": {
                                  "type": "boolean",
                                  "description": "Reserved for a future preview feature. Not available right now."
                                },
                                "config": {
                                  "description": "Task configuration. Same shape as on create and replace."
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "description",
                                "previewEnabled",
                                "config"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Sink task configurations."
                          },
                          "settings": {
                            "description": "Top-level packager settings, or null when none are set. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "organizationId",
                          "workspaceId",
                          "revision",
                          "createdAt",
                          "updatedAt",
                          "sources",
                          "transcoders",
                          "compositors",
                          "sinks",
                          "settings"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of packager configs, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of packager configs."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-packagerConfigs-create",
        "summary": "Create packager config",
        "description": "Create a new packager config. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Configs"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Name of the packager config."
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization to create the packager config in."
                  },
                  "workspaceId": {
                    "description": "Workspace the packager config belongs to. Defaults to the organization's workspace.",
                    "type": "string",
                    "format": "nanoid",
                    "pattern": "^[a-zA-Z0-9_-]{21}$"
                  },
                  "description": {
                    "default": "",
                    "description": "Description of the packager config.",
                    "type": "string",
                    "maxLength": 512
                  },
                  "sources": {
                    "description": "Source task configurations.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_type": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "track_selectors": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-kind"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "unknown",
                                          "video",
                                          "audio",
                                          "data",
                                          "subtitle",
                                          "attachment"
                                        ]
                                      },
                                      "codec": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "criteria": {
                                        "type": "string",
                                        "enum": [
                                          "all",
                                          "best"
                                        ]
                                      },
                                      "language": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "kind"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-id"
                                      },
                                      "id": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "demuxer_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "protocol_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "reconnect_delay_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connect_timeout_ms": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "interleave_buffer": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "max_buffer_size_ms": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "annotations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "id",
                            "source_type"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    }
                  },
                  "transcoders": {
                    "default": [],
                    "description": "Transcoder task configurations.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "source_ids": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "device": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "cpu",
                                    "nvidia",
                                    "netint_quadra",
                                    "netint_t4xx",
                                    "qsv",
                                    "vaapi"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tracks": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "video"
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "track_selector": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      "passthrough": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "size": {
                                              "type": "object",
                                              "properties": {
                                                "width": {
                                                  "type": "integer",
                                                  "exclusiveMinimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "height": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                }
                                              },
                                              "additionalProperties": {}
                                            },
                                            "codec": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "gop_size_ms": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "bit_rate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "frame_skipping": {
                                              "type": "string",
                                              "enum": [
                                                "none",
                                                "half",
                                                "quarter",
                                                "frame_every_1_seconds",
                                                "frame_every_5_seconds"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id",
                                      "track_selector"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "audio"
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "track_selector": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      "passthrough": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "codec": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "sample_rate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "channels": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "bit_rate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id",
                                      "track_selector"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "subtitle"
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "track_selector": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      "passthrough": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "codec": {
                                              "type": "string",
                                              "minLength": 1
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id",
                                      "track_selector"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "annotations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "source_ids",
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    }
                  },
                  "compositors": {
                    "default": [],
                    "description": "Compositor task configurations.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "video": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sources": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "description": "Rule used to pick the track out of the feeding task",
                                            "type": "object"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    },
                                    "nodes": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique within the compositor; this is what runtime filter commands address"
                                          },
                                          "source_ids": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                          },
                                          "type": {
                                            "type": "string",
                                            "description": "Which video filter this node runs — overlay | overlay_cuda | xstack | drawtext | null today"
                                          },
                                          "output_format": {
                                            "description": "Appends a format conversion filter when set, e.g. \"yuv420p\" for GPU compatibility",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_ids",
                                          "type"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "audio": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sources": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "description": "Rule used to pick the track out of the feeding task",
                                            "type": "object"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    },
                                    "nodes": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique within the compositor; this is what runtime filter commands address"
                                          },
                                          "source_ids": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                          },
                                          "type": {
                                            "type": "string",
                                            "description": "Which audio filter this node runs — volume | amix | amerge | anull today"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_ids",
                                          "type"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "passthrough": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sources": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "description": "Rule used to pick the track out of the feeding task",
                                            "type": "object"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "anchor": {
                              "description": "Input id whose clock the output carries; its timestamps are never rewritten. Defaults to a passthrough video input, else the first decoded input",
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    }
                  },
                  "sinks": {
                    "description": "Sink task configurations.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "source_ids": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sink_type": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "track_selectors": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-kind"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "unknown",
                                          "video",
                                          "audio",
                                          "data",
                                          "subtitle",
                                          "attachment"
                                        ]
                                      },
                                      "codec": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "criteria": {
                                        "type": "string",
                                        "enum": [
                                          "all",
                                          "best"
                                        ]
                                      },
                                      "language": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "kind"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-id"
                                      },
                                      "id": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "muxer_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "protocol_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "reconnect_delay_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connect_timeout_ms": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "wait_for_all_sources": {
                              "type": "boolean"
                            },
                            "idle_timeout_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "annotations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "source_ids",
                            "id",
                            "sink_type"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    }
                  },
                  "settings": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "logging": {
                            "type": "object",
                            "properties": {
                              "level": {
                                "description": "Log level.",
                                "type": "string",
                                "enum": [
                                  "trace",
                                  "debug",
                                  "info",
                                  "warn",
                                  "error"
                                ]
                              },
                              "filter": {
                                "description": "Per-target log directives on top of the level, e.g. \"media_engine_moq=debug,ffmpeg=debug\".",
                                "type": "string",
                                "maxLength": 1024
                              },
                              "ffmpeg_log_level": {
                                "description": "FFmpeg's own log level.",
                                "type": "string",
                                "enum": [
                                  "quiet",
                                  "panic",
                                  "fatal",
                                  "error",
                                  "warning",
                                  "info",
                                  "verbose",
                                  "debug",
                                  "trace"
                                ]
                              },
                              "kind": {
                                "description": "Log line format. Applies when the packager starts.",
                                "type": "string",
                                "enum": [
                                  "fancy",
                                  "json"
                                ]
                              },
                              "browser_log_level": {
                                "description": "Chromium's own log level, for browser sources. Applies when the packager starts.",
                                "type": "string",
                                "enum": [
                                  "disable",
                                  "fatal",
                                  "error",
                                  "warning",
                                  "info",
                                  "verbose"
                                ]
                              },
                              "sentry_tracing": {
                                "description": "Send tracing events to Sentry; panics and errors are sent either way. Applies when the packager starts.",
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false,
                            "description": "Logging the packager applies: at runtime, unless a field says it applies when the packager starts."
                          },
                          "api": {
                            "type": "object",
                            "properties": {
                              "bind": {
                                "description": "Address the packager's HTTP API listens on, e.g. 0.0.0.0:4040. A new port applies right away, a new IP when the packager restarts.",
                                "patternErrorMessage": "Use an IP address and port, e.g. 0.0.0.0:4040",
                                "type": "string",
                                "pattern": "^$|^(?:\\[([0-9a-fA-F:.]+)\\]|([\\d.]+)):\\d{1,5}$"
                              }
                            },
                            "additionalProperties": false,
                            "description": "Packager HTTP API settings."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Top-level sections of the packager's config file. A field left out keeps the packager's own value, its default unless it runs with a local config file."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the packager config."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager config."
                    },
                    "description": {
                      "type": "string",
                      "description": "Description for the packager config."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager config belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager config is associated with."
                    },
                    "revision": {
                      "type": "number",
                      "description": "Starts at 1, incremented on every replace. A deployment stays on its revision until moved to the latest."
                    },
                    "createdAt": {
                      "description": "When the packager config was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager config was last updated.",
                      "type": "string"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Source task configurations."
                    },
                    "transcoders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Transcoder task configurations."
                    },
                    "compositors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Compositor task configurations."
                    },
                    "sinks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Sink task configurations."
                    },
                    "settings": {
                      "description": "Top-level packager settings, or null when none are set. Same shape as on create and replace."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "organizationId",
                    "workspaceId",
                    "revision",
                    "createdAt",
                    "updatedAt",
                    "sources",
                    "transcoders",
                    "compositors",
                    "sinks",
                    "settings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/configs/{id}": {
      "get": {
        "operationId": "v1-packagerConfigs-getById",
        "summary": "Get packager config",
        "description": "Get a packager config by id.",
        "tags": [
          "Packagers / Configs"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the packager config to get."
            },
            "required": true,
            "description": "ID of the packager config to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the packager config."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager config."
                    },
                    "description": {
                      "type": "string",
                      "description": "Description for the packager config."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager config belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager config is associated with."
                    },
                    "revision": {
                      "type": "number",
                      "description": "Starts at 1, incremented on every replace. A deployment stays on its revision until moved to the latest."
                    },
                    "createdAt": {
                      "description": "When the packager config was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager config was last updated.",
                      "type": "string"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Source task configurations."
                    },
                    "transcoders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Transcoder task configurations."
                    },
                    "compositors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Compositor task configurations."
                    },
                    "sinks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Sink task configurations."
                    },
                    "settings": {
                      "description": "Top-level packager settings, or null when none are set. Same shape as on create and replace."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "organizationId",
                    "workspaceId",
                    "revision",
                    "createdAt",
                    "updatedAt",
                    "sources",
                    "transcoders",
                    "compositors",
                    "sinks",
                    "settings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "v1-packagerConfigs-update",
        "summary": "Replace packager config",
        "description": "Fully replaces a packager config. The request body must include all sources, transcoders, compositors, and sinks you want to keep — any tasks omitted from the payload will be permanently deleted. Fetch the current config first, apply your changes, then submit the complete config. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Configs"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the packager config to update."
            },
            "required": true,
            "description": "ID of the packager config to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Name of the packager config."
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 512,
                    "description": "Description of the packager config."
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_type": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "track_selectors": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-kind"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "unknown",
                                          "video",
                                          "audio",
                                          "data",
                                          "subtitle",
                                          "attachment"
                                        ]
                                      },
                                      "codec": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "criteria": {
                                        "type": "string",
                                        "enum": [
                                          "all",
                                          "best"
                                        ]
                                      },
                                      "language": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "kind"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-id"
                                      },
                                      "id": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "demuxer_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "protocol_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "reconnect_delay_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connect_timeout_ms": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "interleave_buffer": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "max_buffer_size_ms": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "annotations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "id",
                            "source_type"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    },
                    "description": "Source task configurations."
                  },
                  "transcoders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "source_ids": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "device": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "cpu",
                                    "nvidia",
                                    "netint_quadra",
                                    "netint_t4xx",
                                    "qsv",
                                    "vaapi"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tracks": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "video"
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "track_selector": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      "passthrough": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "size": {
                                              "type": "object",
                                              "properties": {
                                                "width": {
                                                  "type": "integer",
                                                  "exclusiveMinimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                "height": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                }
                                              },
                                              "additionalProperties": {}
                                            },
                                            "codec": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "gop_size_ms": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "bit_rate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "frame_skipping": {
                                              "type": "string",
                                              "enum": [
                                                "none",
                                                "half",
                                                "quarter",
                                                "frame_every_1_seconds",
                                                "frame_every_5_seconds"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id",
                                      "track_selector"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "audio"
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "track_selector": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      "passthrough": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "codec": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "sample_rate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "channels": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "bit_rate": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id",
                                      "track_selector"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "subtitle"
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "track_selector": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      "passthrough": {
                                        "type": "boolean"
                                      },
                                      "renditions": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "codec": {
                                              "type": "string",
                                              "minLength": 1
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "codec"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id",
                                      "track_selector"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "annotations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "source_ids",
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    },
                    "description": "Transcoder task configurations."
                  },
                  "compositors": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "video": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sources": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "description": "Rule used to pick the track out of the feeding task",
                                            "type": "object"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    },
                                    "nodes": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique within the compositor; this is what runtime filter commands address"
                                          },
                                          "source_ids": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                          },
                                          "type": {
                                            "type": "string",
                                            "description": "Which video filter this node runs — overlay | overlay_cuda | xstack | drawtext | null today"
                                          },
                                          "output_format": {
                                            "description": "Appends a format conversion filter when set, e.g. \"yuv420p\" for GPU compatibility",
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_ids",
                                          "type"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "audio": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sources": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "description": "Rule used to pick the track out of the feeding task",
                                            "type": "object"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    },
                                    "nodes": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique within the compositor; this is what runtime filter commands address"
                                          },
                                          "source_ids": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "Order matters: overlay [0]=base [1]=overlay, xstack [i]=grid cell, amix weights[i] (master first)"
                                          },
                                          "type": {
                                            "type": "string",
                                            "description": "Which audio filter this node runs — volume | amix | amerge | anull today"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_ids",
                                          "type"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "passthrough": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "sources": {
                                      "default": [],
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Compositor-local handle for this input, referenced by node.source_ids"
                                          },
                                          "source_id": {
                                            "type": "string",
                                            "description": "Id of any packager task feeding this input — source, transcoder or compositor"
                                          },
                                          "track_selector": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-kind"
                                                  },
                                                  "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                      "unknown",
                                                      "video",
                                                      "audio",
                                                      "data",
                                                      "subtitle",
                                                      "attachment"
                                                    ]
                                                  },
                                                  "codec": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "criteria": {
                                                    "type": "string",
                                                    "enum": [
                                                      "all",
                                                      "best"
                                                    ]
                                                  },
                                                  "language": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "kind"
                                                ],
                                                "additionalProperties": {}
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "const": "track-id"
                                                  },
                                                  "id": {
                                                    "type": "integer",
                                                    "minimum": -9007199254740991,
                                                    "maximum": 9007199254740991
                                                  },
                                                  "is_required": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "type",
                                                  "id"
                                                ],
                                                "additionalProperties": {}
                                              }
                                            ],
                                            "description": "Rule used to pick the track out of the feeding task",
                                            "type": "object"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "source_id",
                                          "track_selector"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    }
                                  },
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "anchor": {
                              "description": "Input id whose clock the output carries; its timestamps are never rewritten. Defaults to a passthrough video input, else the first decoded input",
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    },
                    "description": "Compositor task configurations."
                  },
                  "sinks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "previewEnabled": {
                          "type": "boolean"
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "source_ids": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sink_type": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": {
                              "type": "string"
                            },
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ]
                            },
                            "track_selectors": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-kind"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "unknown",
                                          "video",
                                          "audio",
                                          "data",
                                          "subtitle",
                                          "attachment"
                                        ]
                                      },
                                      "codec": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "criteria": {
                                        "type": "string",
                                        "enum": [
                                          "all",
                                          "best"
                                        ]
                                      },
                                      "language": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "kind"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "track-id"
                                      },
                                      "id": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      },
                                      "is_required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "id"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "muxer_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "protocol_options": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {}
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "reconnect_delay_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "connect_timeout_ms": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "wait_for_all_sources": {
                              "type": "boolean"
                            },
                            "idle_timeout_ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "annotations": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "source_ids",
                            "id",
                            "sink_type"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "previewEnabled",
                        "config"
                      ]
                    },
                    "description": "Sink task configurations."
                  },
                  "settings": {
                    "description": "Top-level packager settings. Omit to keep the stored value, null to clear it.",
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "logging": {
                            "type": "object",
                            "properties": {
                              "level": {
                                "description": "Log level.",
                                "type": "string",
                                "enum": [
                                  "trace",
                                  "debug",
                                  "info",
                                  "warn",
                                  "error"
                                ]
                              },
                              "filter": {
                                "description": "Per-target log directives on top of the level, e.g. \"media_engine_moq=debug,ffmpeg=debug\".",
                                "type": "string",
                                "maxLength": 1024
                              },
                              "ffmpeg_log_level": {
                                "description": "FFmpeg's own log level.",
                                "type": "string",
                                "enum": [
                                  "quiet",
                                  "panic",
                                  "fatal",
                                  "error",
                                  "warning",
                                  "info",
                                  "verbose",
                                  "debug",
                                  "trace"
                                ]
                              },
                              "kind": {
                                "description": "Log line format. Applies when the packager starts.",
                                "type": "string",
                                "enum": [
                                  "fancy",
                                  "json"
                                ]
                              },
                              "browser_log_level": {
                                "description": "Chromium's own log level, for browser sources. Applies when the packager starts.",
                                "type": "string",
                                "enum": [
                                  "disable",
                                  "fatal",
                                  "error",
                                  "warning",
                                  "info",
                                  "verbose"
                                ]
                              },
                              "sentry_tracing": {
                                "description": "Send tracing events to Sentry; panics and errors are sent either way. Applies when the packager starts.",
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false,
                            "description": "Logging the packager applies: at runtime, unless a field says it applies when the packager starts."
                          },
                          "api": {
                            "type": "object",
                            "properties": {
                              "bind": {
                                "description": "Address the packager's HTTP API listens on, e.g. 0.0.0.0:4040. A new port applies right away, a new IP when the packager restarts.",
                                "patternErrorMessage": "Use an IP address and port, e.g. 0.0.0.0:4040",
                                "type": "string",
                                "pattern": "^$|^(?:\\[([0-9a-fA-F:.]+)\\]|([\\d.]+)):\\d{1,5}$"
                              }
                            },
                            "additionalProperties": false,
                            "description": "Packager HTTP API settings."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Top-level sections of the packager's config file. A field left out keeps the packager's own value, its default unless it runs with a local config file."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "changeReason": {
                    "description": "Reason for this update.",
                    "type": "string",
                    "maxLength": 512
                  },
                  "restoredFromRevision": {
                    "description": "Revision this update restores, when it replays an earlier revision's contents.",
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "name",
                  "description",
                  "sources",
                  "transcoders",
                  "compositors",
                  "sinks"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the packager config."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager config."
                    },
                    "description": {
                      "type": "string",
                      "description": "Description for the packager config."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager config belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager config is associated with."
                    },
                    "revision": {
                      "type": "number",
                      "description": "Starts at 1, incremented on every replace. A deployment stays on its revision until moved to the latest."
                    },
                    "createdAt": {
                      "description": "When the packager config was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager config was last updated.",
                      "type": "string"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Source task configurations."
                    },
                    "transcoders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Transcoder task configurations."
                    },
                    "compositors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Compositor task configurations."
                    },
                    "sinks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the task."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the task."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the task."
                          },
                          "previewEnabled": {
                            "type": "boolean",
                            "description": "Reserved for a future preview feature. Not available right now."
                          },
                          "config": {
                            "description": "Task configuration. Same shape as on create and replace."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "previewEnabled",
                          "config"
                        ],
                        "additionalProperties": false
                      },
                      "description": "Sink task configurations."
                    },
                    "settings": {
                      "description": "Top-level packager settings, or null when none are set. Same shape as on create and replace."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "organizationId",
                    "workspaceId",
                    "revision",
                    "createdAt",
                    "updatedAt",
                    "sources",
                    "transcoders",
                    "compositors",
                    "sinks",
                    "settings"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-packagerConfigs-delete",
        "summary": "Delete packager config",
        "description": "Delete a packager config by id, together with its sources, transcoders, compositors and sinks. Refused while the config has deployments. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Configs"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the packager config to delete."
            },
            "required": true,
            "description": "ID of the packager config to delete."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/sink-instances": {
      "get": {
        "operationId": "v1-sinkInstances-get",
        "summary": "List sink instances",
        "description": "Get a list of sink instances that the provided API key has access to. A sink instance is a sink task running on a packager; start or stop one with POST /v1/packagers/sink-instances/{id}/start or /stop.",
        "tags": [
          "Packagers / Sinks"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "createdAt",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "createdAt",
                "taskId"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "packagerId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the sink instance."
                          },
                          "createdAt": {
                            "description": "When the sink instance was created",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the sink instance was last modified",
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that owns this sink instance"
                          },
                          "packagerId": {
                            "type": "string",
                            "description": "Packager this instance runs on"
                          },
                          "resourceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Packager resource assigned to this instance"
                          },
                          "sinkConfigId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "nanoid",
                                "pattern": "^[a-zA-Z0-9_-]{21}$"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "SinkConfig this instance was created from, or null when no matching deployment config was found"
                          },
                          "taskId": {
                            "type": "string",
                            "description": "Task identifier on the packager running this sink"
                          },
                          "info": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "target_state": {
                                    "type": "string",
                                    "enum": [
                                      "started",
                                      "stopped",
                                      "destroyed"
                                    ],
                                    "description": "Desired state commanded by the control plane"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "starting",
                                      "started",
                                      "stopping",
                                      "stopped",
                                      "waiting",
                                      "congested"
                                    ],
                                    "description": "Actual current operational state reported by the packager"
                                  },
                                  "tracks": {
                                    "type": "object",
                                    "properties": {
                                      "all": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "video"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "hw_pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "pixel_format": {
                                                      "type": "string"
                                                    },
                                                    "width": {
                                                      "type": "number"
                                                    },
                                                    "height": {
                                                      "type": "number"
                                                    },
                                                    "color_range": {
                                                      "type": "string"
                                                    },
                                                    "color_space": {
                                                      "type": "string"
                                                    },
                                                    "color_primaries": {
                                                      "type": "string"
                                                    },
                                                    "color_trc": {
                                                      "type": "string"
                                                    },
                                                    "chroma_location": {
                                                      "type": "string"
                                                    },
                                                    "field_order": {
                                                      "type": "string"
                                                    },
                                                    "separated_fields": {
                                                      "type": "boolean"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    },
                                                    "sample_aspect_ratio": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "number"
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "hw_pixel_format",
                                                    "pixel_format",
                                                    "width",
                                                    "height",
                                                    "color_range",
                                                    "color_space",
                                                    "color_primaries",
                                                    "color_trc",
                                                    "chroma_location",
                                                    "field_order",
                                                    "separated_fields",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level",
                                                    "sample_aspect_ratio"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "avg_frame_rate": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                },
                                                "gop_size": {
                                                  "type": "number"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "avg_frame_rate",
                                                "gop_size",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "audio"
                                                },
                                                "parameters": {
                                                  "type": "object",
                                                  "properties": {
                                                    "codec": {
                                                      "type": "string"
                                                    },
                                                    "bit_rate": {
                                                      "type": "number"
                                                    },
                                                    "extradata": {
                                                      "anyOf": [
                                                        {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "sample_format": {
                                                      "anyOf": [
                                                        {
                                                          "anyOf": [
                                                            {
                                                              "anyOf": [
                                                                {
                                                                  "anyOf": [
                                                                    {
                                                                      "anyOf": [
                                                                        {
                                                                          "anyOf": [
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "u8": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "u8"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            },
                                                                            {
                                                                              "type": "object",
                                                                              "properties": {
                                                                                "i16": {
                                                                                  "type": "string"
                                                                                }
                                                                              },
                                                                              "required": [
                                                                                "i16"
                                                                              ],
                                                                              "additionalProperties": false
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "type": "object",
                                                                          "properties": {
                                                                            "i32": {
                                                                              "type": "string"
                                                                            }
                                                                          },
                                                                          "required": [
                                                                            "i32"
                                                                          ],
                                                                          "additionalProperties": false
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "i64": {
                                                                          "type": "string"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "i64"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "f32": {
                                                                      "type": "string"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "f32"
                                                                  ],
                                                                  "additionalProperties": false
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "f64": {
                                                                  "type": "string"
                                                                }
                                                              },
                                                              "required": [
                                                                "f64"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "type": "string",
                                                          "const": "none"
                                                        }
                                                      ]
                                                    },
                                                    "channel_layout": {
                                                      "type": "string"
                                                    },
                                                    "sample_rate": {
                                                      "type": "number"
                                                    },
                                                    "block_align": {
                                                      "type": "number"
                                                    },
                                                    "frame_size": {
                                                      "type": "number"
                                                    },
                                                    "initial_padding": {
                                                      "type": "number"
                                                    },
                                                    "trailing_padding": {
                                                      "type": "number"
                                                    },
                                                    "seek_preroll": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_coded_sample": {
                                                      "type": "number"
                                                    },
                                                    "bits_per_raw_sample": {
                                                      "type": "number"
                                                    },
                                                    "profile": {
                                                      "type": "number"
                                                    },
                                                    "level": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "codec",
                                                    "bit_rate",
                                                    "extradata",
                                                    "sample_format",
                                                    "channel_layout",
                                                    "sample_rate",
                                                    "block_align",
                                                    "frame_size",
                                                    "initial_padding",
                                                    "trailing_padding",
                                                    "seek_preroll",
                                                    "bits_per_coded_sample",
                                                    "bits_per_raw_sample",
                                                    "profile",
                                                    "level"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "language": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "parameters",
                                                "language",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "subtitles"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "data"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "attachment"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "number"
                                                },
                                                "index": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "is_transcoded": {
                                                  "type": "boolean"
                                                },
                                                "is_parameters_provisional": {
                                                  "type": "boolean"
                                                },
                                                "pts_wrap_bits": {
                                                  "type": "number",
                                                  "minimum": 0
                                                },
                                                "start_time": {
                                                  "type": "number"
                                                },
                                                "metadata": {
                                                  "type": "object",
                                                  "propertyNames": {
                                                    "type": "string"
                                                  },
                                                  "additionalProperties": {
                                                    "type": "string"
                                                  }
                                                },
                                                "variant_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "content_uid": {
                                                  "type": "string",
                                                  "format": "uuid",
                                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "const": "unknown"
                                                },
                                                "time_base": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "number"
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "index",
                                                "is_transcoded",
                                                "is_parameters_provisional",
                                                "pts_wrap_bits",
                                                "start_time",
                                                "metadata",
                                                "variant_uid",
                                                "content_uid",
                                                "type",
                                                "time_base"
                                              ],
                                              "additionalProperties": false
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      }
                                    },
                                    "required": [
                                      "all"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Track details of the output stream"
                                  },
                                  "config": {
                                    "type": "object",
                                    "properties": {
                                      "source_ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "id": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "sink_type": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "target_state": {
                                        "type": "string",
                                        "enum": [
                                          "started",
                                          "stopped",
                                          "destroyed"
                                        ]
                                      },
                                      "track_selectors": {
                                        "type": "array",
                                        "items": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "track-kind"
                                                },
                                                "kind": {
                                                  "type": "string",
                                                  "enum": [
                                                    "unknown",
                                                    "video",
                                                    "audio",
                                                    "data",
                                                    "subtitle",
                                                    "attachment"
                                                  ]
                                                },
                                                "codec": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "criteria": {
                                                  "type": "string",
                                                  "enum": [
                                                    "all",
                                                    "best"
                                                  ]
                                                },
                                                "language": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "is_required": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "kind"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "track-id"
                                                },
                                                "id": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                "is_required": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "id"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "muxer_options": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "string"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "u_int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "double"
                                                },
                                                "value": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "bool"
                                                },
                                                "value": {
                                                  "default": false,
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "ratio"
                                                },
                                                "value": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "pixel"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "sample"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "protocol_options": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "string"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "u_int"
                                                },
                                                "value": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "double"
                                                },
                                                "value": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "bool"
                                                },
                                                "value": {
                                                  "default": false,
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "ratio"
                                                },
                                                "value": {
                                                  "type": "array",
                                                  "prefixItems": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    }
                                                  ],
                                                  "items": false,
                                                  "minItems": 2,
                                                  "maxItems": 2
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "pixel"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "const": "sample"
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "type",
                                                "value"
                                              ],
                                              "additionalProperties": {}
                                            }
                                          ],
                                          "type": "object"
                                        }
                                      },
                                      "reconnect_delay_ms": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "connect_timeout_ms": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "wait_for_all_sources": {
                                        "type": "boolean"
                                      },
                                      "idle_timeout_ms": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "annotations": {
                                        "type": "object",
                                        "propertyNames": {
                                          "type": "string"
                                        },
                                        "additionalProperties": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "source_ids",
                                      "id",
                                      "sink_type"
                                    ],
                                    "additionalProperties": {},
                                    "description": "Active sink configuration used by this instance"
                                  },
                                  "muxer_options": {
                                    "default": {},
                                    "description": "Resolved muxer options in effect",
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": -9007199254740991,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "default": false,
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "prefixItems": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              ],
                                              "items": false,
                                              "minItems": 2,
                                              "maxItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      ],
                                      "type": "object"
                                    }
                                  },
                                  "protocol_options": {
                                    "default": {},
                                    "description": "Resolved protocol options in effect",
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": -9007199254740991,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "default": false,
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "prefixItems": [
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "integer",
                                                  "minimum": -9007199254740991,
                                                  "maximum": 9007199254740991
                                                }
                                              ],
                                              "items": false,
                                              "minItems": 2,
                                              "maxItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": {}
                                        }
                                      ],
                                      "type": "object"
                                    }
                                  },
                                  "mappings": {
                                    "default": [],
                                    "description": "Source-to-output track mappings",
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "track_selector": {
                                          "description": "Optional rule used to select this track from the source",
                                          "anyOf": [
                                            {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "type": {
                                                      "type": "string",
                                                      "const": "track-kind"
                                                    },
                                                    "kind": {
                                                      "type": "string",
                                                      "enum": [
                                                        "unknown",
                                                        "video",
                                                        "audio",
                                                        "data",
                                                        "subtitle",
                                                        "attachment"
                                                      ]
                                                    },
                                                    "codec": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "criteria": {
                                                      "type": "string",
                                                      "enum": [
                                                        "all",
                                                        "best"
                                                      ]
                                                    },
                                                    "language": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "is_required": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": [
                                                    "type",
                                                    "kind"
                                                  ],
                                                  "additionalProperties": {}
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "type": {
                                                      "type": "string",
                                                      "const": "track-id"
                                                    },
                                                    "id": {
                                                      "type": "integer",
                                                      "minimum": -9007199254740991,
                                                      "maximum": 9007199254740991
                                                    },
                                                    "is_required": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": [
                                                    "type",
                                                    "id"
                                                  ],
                                                  "additionalProperties": {}
                                                }
                                              ],
                                              "type": "object"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "source_track_index": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index of the track within the source stream"
                                        },
                                        "source_id": {
                                          "type": "string",
                                          "description": "Identifier of the source providing this track"
                                        },
                                        "track_index": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991,
                                          "description": "Index of this track in the sink output"
                                        }
                                      },
                                      "required": [
                                        "source_track_index",
                                        "source_id",
                                        "track_index"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "start_time": {
                                    "description": "Unix timestamp (ms) when the sink started, null if not yet started",
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "target_state",
                                  "state",
                                  "tracks",
                                  "config",
                                  "muxer_options",
                                  "protocol_options",
                                  "mappings",
                                  "start_time"
                                ],
                                "additionalProperties": false,
                                "description": "Current runtime state reported by the packager"
                              }
                            ],
                            "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "organizationId",
                          "packagerId",
                          "resourceId",
                          "sinkConfigId",
                          "taskId",
                          "info"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of sink instances, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of sink instances."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/sink-instances/{id}": {
      "get": {
        "operationId": "v1-sinkInstances-getById",
        "summary": "Get sink instance",
        "description": "Get a sink instance by id.",
        "tags": [
          "Packagers / Sinks"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the sink instance to get."
            },
            "required": true,
            "description": "ID of the sink instance to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the sink instance."
                    },
                    "createdAt": {
                      "description": "When the sink instance was created",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the sink instance was last modified",
                      "type": "string"
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that owns this sink instance"
                    },
                    "packagerId": {
                      "type": "string",
                      "description": "Packager this instance runs on"
                    },
                    "resourceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Packager resource assigned to this instance"
                    },
                    "sinkConfigId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "nanoid",
                          "pattern": "^[a-zA-Z0-9_-]{21}$"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "SinkConfig this instance was created from, or null when no matching deployment config was found"
                    },
                    "taskId": {
                      "type": "string",
                      "description": "Task identifier on the packager running this sink"
                    },
                    "info": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "target_state": {
                              "type": "string",
                              "enum": [
                                "started",
                                "stopped",
                                "destroyed"
                              ],
                              "description": "Desired state commanded by the control plane"
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "starting",
                                "started",
                                "stopping",
                                "stopped",
                                "waiting",
                                "congested"
                              ],
                              "description": "Actual current operational state reported by the packager"
                            },
                            "tracks": {
                              "type": "object",
                              "properties": {
                                "all": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "video"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "hw_pixel_format": {
                                                "type": "string"
                                              },
                                              "pixel_format": {
                                                "type": "string"
                                              },
                                              "width": {
                                                "type": "number"
                                              },
                                              "height": {
                                                "type": "number"
                                              },
                                              "color_range": {
                                                "type": "string"
                                              },
                                              "color_space": {
                                                "type": "string"
                                              },
                                              "color_primaries": {
                                                "type": "string"
                                              },
                                              "color_trc": {
                                                "type": "string"
                                              },
                                              "chroma_location": {
                                                "type": "string"
                                              },
                                              "field_order": {
                                                "type": "string"
                                              },
                                              "separated_fields": {
                                                "type": "boolean"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              },
                                              "sample_aspect_ratio": {
                                                "type": "array",
                                                "items": {
                                                  "type": "number"
                                                }
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "hw_pixel_format",
                                              "pixel_format",
                                              "width",
                                              "height",
                                              "color_range",
                                              "color_space",
                                              "color_primaries",
                                              "color_trc",
                                              "chroma_location",
                                              "field_order",
                                              "separated_fields",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level",
                                              "sample_aspect_ratio"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "avg_frame_rate": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          },
                                          "gop_size": {
                                            "type": "number"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "avg_frame_rate",
                                          "gop_size",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "audio"
                                          },
                                          "parameters": {
                                            "type": "object",
                                            "properties": {
                                              "codec": {
                                                "type": "string"
                                              },
                                              "bit_rate": {
                                                "type": "number"
                                              },
                                              "extradata": {
                                                "anyOf": [
                                                  {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "sample_format": {
                                                "anyOf": [
                                                  {
                                                    "anyOf": [
                                                      {
                                                        "anyOf": [
                                                          {
                                                            "anyOf": [
                                                              {
                                                                "anyOf": [
                                                                  {
                                                                    "anyOf": [
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "u8": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "u8"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      },
                                                                      {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "i16": {
                                                                            "type": "string"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "i16"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "i32": {
                                                                        "type": "string"
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "i32"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "type": "object",
                                                                "properties": {
                                                                  "i64": {
                                                                    "type": "string"
                                                                  }
                                                                },
                                                                "required": [
                                                                  "i64"
                                                                ],
                                                                "additionalProperties": false
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "f32": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "f32"
                                                            ],
                                                            "additionalProperties": false
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "f64": {
                                                            "type": "string"
                                                          }
                                                        },
                                                        "required": [
                                                          "f64"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "type": "string",
                                                    "const": "none"
                                                  }
                                                ]
                                              },
                                              "channel_layout": {
                                                "type": "string"
                                              },
                                              "sample_rate": {
                                                "type": "number"
                                              },
                                              "block_align": {
                                                "type": "number"
                                              },
                                              "frame_size": {
                                                "type": "number"
                                              },
                                              "initial_padding": {
                                                "type": "number"
                                              },
                                              "trailing_padding": {
                                                "type": "number"
                                              },
                                              "seek_preroll": {
                                                "type": "number"
                                              },
                                              "bits_per_coded_sample": {
                                                "type": "number"
                                              },
                                              "bits_per_raw_sample": {
                                                "type": "number"
                                              },
                                              "profile": {
                                                "type": "number"
                                              },
                                              "level": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "codec",
                                              "bit_rate",
                                              "extradata",
                                              "sample_format",
                                              "channel_layout",
                                              "sample_rate",
                                              "block_align",
                                              "frame_size",
                                              "initial_padding",
                                              "trailing_padding",
                                              "seek_preroll",
                                              "bits_per_coded_sample",
                                              "bits_per_raw_sample",
                                              "profile",
                                              "level"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "language": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "parameters",
                                          "language",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "subtitles"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "data"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "attachment"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "number"
                                          },
                                          "index": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "is_transcoded": {
                                            "type": "boolean"
                                          },
                                          "is_parameters_provisional": {
                                            "type": "boolean"
                                          },
                                          "pts_wrap_bits": {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          "start_time": {
                                            "type": "number"
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "propertyNames": {
                                              "type": "string"
                                            },
                                            "additionalProperties": {
                                              "type": "string"
                                            }
                                          },
                                          "variant_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "content_uid": {
                                            "type": "string",
                                            "format": "uuid",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "unknown"
                                          },
                                          "time_base": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "number"
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "index",
                                          "is_transcoded",
                                          "is_parameters_provisional",
                                          "pts_wrap_bits",
                                          "start_time",
                                          "metadata",
                                          "variant_uid",
                                          "content_uid",
                                          "type",
                                          "time_base"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ],
                                    "type": "object"
                                  }
                                }
                              },
                              "required": [
                                "all"
                              ],
                              "additionalProperties": false,
                              "description": "Track details of the output stream"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "source_ids": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sink_type": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "description": {
                                  "type": "string"
                                },
                                "target_state": {
                                  "type": "string",
                                  "enum": [
                                    "started",
                                    "stopped",
                                    "destroyed"
                                  ]
                                },
                                "track_selectors": {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "track-kind"
                                          },
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "unknown",
                                              "video",
                                              "audio",
                                              "data",
                                              "subtitle",
                                              "attachment"
                                            ]
                                          },
                                          "codec": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "criteria": {
                                            "type": "string",
                                            "enum": [
                                              "all",
                                              "best"
                                            ]
                                          },
                                          "language": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "is_required": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "kind"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "track-id"
                                          },
                                          "id": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          "is_required": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "id"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "muxer_options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "u_int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "double"
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "bool"
                                          },
                                          "value": {
                                            "default": false,
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "ratio"
                                          },
                                          "value": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "pixel"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "sample"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "protocol_options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "u_int"
                                          },
                                          "value": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "double"
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "bool"
                                          },
                                          "value": {
                                            "default": false,
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "ratio"
                                          },
                                          "value": {
                                            "type": "array",
                                            "prefixItems": [
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              }
                                            ],
                                            "items": false,
                                            "minItems": 2,
                                            "maxItems": 2
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "pixel"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "type": {
                                            "type": "string",
                                            "const": "sample"
                                          },
                                          "value": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "type",
                                          "value"
                                        ],
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "type": "object"
                                  }
                                },
                                "reconnect_delay_ms": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "connect_timeout_ms": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "wait_for_all_sources": {
                                  "type": "boolean"
                                },
                                "idle_timeout_ms": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "annotations": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "source_ids",
                                "id",
                                "sink_type"
                              ],
                              "additionalProperties": {},
                              "description": "Active sink configuration used by this instance"
                            },
                            "muxer_options": {
                              "default": {},
                              "description": "Resolved muxer options in effect",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "default": false,
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "protocol_options": {
                              "default": {},
                              "description": "Resolved protocol options in effect",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": -9007199254740991,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "default": false,
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "prefixItems": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          }
                                        ],
                                        "items": false,
                                        "minItems": 2,
                                        "maxItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": {}
                                  }
                                ],
                                "type": "object"
                              }
                            },
                            "mappings": {
                              "default": [],
                              "description": "Source-to-output track mappings",
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "track_selector": {
                                    "description": "Optional rule used to select this track from the source",
                                    "anyOf": [
                                      {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-kind"
                                              },
                                              "kind": {
                                                "type": "string",
                                                "enum": [
                                                  "unknown",
                                                  "video",
                                                  "audio",
                                                  "data",
                                                  "subtitle",
                                                  "attachment"
                                                ]
                                              },
                                              "codec": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "criteria": {
                                                "type": "string",
                                                "enum": [
                                                  "all",
                                                  "best"
                                                ]
                                              },
                                              "language": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "kind"
                                            ],
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "track-id"
                                              },
                                              "id": {
                                                "type": "integer",
                                                "minimum": -9007199254740991,
                                                "maximum": 9007199254740991
                                              },
                                              "is_required": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "id"
                                            ],
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "type": "object"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "source_track_index": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991,
                                    "description": "Index of the track within the source stream"
                                  },
                                  "source_id": {
                                    "type": "string",
                                    "description": "Identifier of the source providing this track"
                                  },
                                  "track_index": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991,
                                    "description": "Index of this track in the sink output"
                                  }
                                },
                                "required": [
                                  "source_track_index",
                                  "source_id",
                                  "track_index"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "start_time": {
                              "description": "Unix timestamp (ms) when the sink started, null if not yet started",
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "target_state",
                            "state",
                            "tracks",
                            "config",
                            "muxer_options",
                            "protocol_options",
                            "mappings",
                            "start_time"
                          ],
                          "additionalProperties": false,
                          "description": "Current runtime state reported by the packager"
                        }
                      ],
                      "description": "Runtime state as reported by the packager. It may carry values this version of the API does not document."
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "organizationId",
                    "packagerId",
                    "resourceId",
                    "sinkConfigId",
                    "taskId",
                    "info"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/deployment-adapters": {
      "get": {
        "operationId": "v1-deploymentAdapters-get",
        "summary": "List deployment adapters",
        "description": "Get a list of deployment adapters that the provided API key has access to.",
        "tags": [
          "Packagers / Deployment Adapters"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "id",
                "name"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          },
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Unique identifier for the deployment adapter."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the deployment adapter."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the deployment adapter belongs to."
                          },
                          "config": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "const": "manual",
                                    "description": "You start the packager container yourself from the generated run command."
                                  },
                                  "image": {
                                    "description": "Container image override. Falls back to the organization's packager image, then the system default.",
                                    "type": "string"
                                  },
                                  "url": {
                                    "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                                    "type": "string"
                                  },
                                  "dockerRunTemplate": {
                                    "description": "Template for the generated run command. Placeholders: {{image}}, {{url}}, {{token}}, {{packager-name}}.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "const": "docker",
                                    "description": "Reserved for future use; deployments reject it."
                                  },
                                  "image": {
                                    "type": "string",
                                    "description": "Container image to run."
                                  }
                                },
                                "required": [
                                  "type",
                                  "image"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "const": "hosted"
                                  },
                                  "image": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                                    "type": "string"
                                  },
                                  "datacenters": {
                                    "default": [],
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "datacenters"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "description": "Configuration for the deployment adapter.",
                            "type": "object"
                          },
                          "createdAt": {
                            "description": "When the deployment adapter was created.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the deployment adapter was last updated.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "organizationId",
                          "config",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of deployment adapters, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of deployment adapters."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-deploymentAdapters-create",
        "summary": "Create deployment adapter",
        "description": "Create a new deployment adapter. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Deployment Adapters"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization to create the deployment adapter in."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Name of the deployment adapter."
                  },
                  "config": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "manual",
                            "description": "You start the packager container yourself from the generated run command."
                          },
                          "image": {
                            "description": "Container image override. Falls back to the organization's packager image, then the system default.",
                            "type": "string",
                            "maxLength": 512
                          },
                          "url": {
                            "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                            "type": "string",
                            "maxLength": 512
                          },
                          "dockerRunTemplate": {
                            "description": "Template for the generated run command. Placeholders: {{image}}, {{url}}, {{token}}, {{packager-name}}.",
                            "type": "string",
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "docker",
                            "description": "Reserved for future use; deployments reject it."
                          },
                          "image": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512,
                            "description": "Container image to run."
                          }
                        },
                        "required": [
                          "type",
                          "image"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "hosted"
                          },
                          "image": {
                            "type": "string",
                            "maxLength": 512
                          },
                          "url": {
                            "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                            "type": "string",
                            "maxLength": 512
                          },
                          "datacenters": {
                            "default": [],
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          }
                        },
                        "required": [
                          "type"
                        ]
                      }
                    ],
                    "description": "Configuration for the deployment adapter.",
                    "type": "object"
                  }
                },
                "required": [
                  "organizationId",
                  "name",
                  "config"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the deployment adapter."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the deployment adapter."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the deployment adapter belongs to."
                    },
                    "config": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "manual",
                              "description": "You start the packager container yourself from the generated run command."
                            },
                            "image": {
                              "description": "Container image override. Falls back to the organization's packager image, then the system default.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                              "type": "string"
                            },
                            "dockerRunTemplate": {
                              "description": "Template for the generated run command. Placeholders: {{image}}, {{url}}, {{token}}, {{packager-name}}.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "docker",
                              "description": "Reserved for future use; deployments reject it."
                            },
                            "image": {
                              "type": "string",
                              "description": "Container image to run."
                            }
                          },
                          "required": [
                            "type",
                            "image"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "hosted"
                            },
                            "image": {
                              "type": "string"
                            },
                            "url": {
                              "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                              "type": "string"
                            },
                            "datacenters": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "datacenters"
                          ],
                          "additionalProperties": false
                        }
                      ],
                      "description": "Configuration for the deployment adapter.",
                      "type": "object"
                    },
                    "createdAt": {
                      "description": "When the deployment adapter was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the deployment adapter was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "config",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/deployment-adapters/{id}": {
      "get": {
        "operationId": "v1-deploymentAdapters-getById",
        "summary": "Get deployment adapter",
        "description": "Get a deployment adapter by id.",
        "tags": [
          "Packagers / Deployment Adapters"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the deployment adapter to get."
            },
            "required": true,
            "description": "ID of the deployment adapter to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the deployment adapter."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the deployment adapter."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the deployment adapter belongs to."
                    },
                    "config": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "manual",
                              "description": "You start the packager container yourself from the generated run command."
                            },
                            "image": {
                              "description": "Container image override. Falls back to the organization's packager image, then the system default.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                              "type": "string"
                            },
                            "dockerRunTemplate": {
                              "description": "Template for the generated run command. Placeholders: {{image}}, {{url}}, {{token}}, {{packager-name}}.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "docker",
                              "description": "Reserved for future use; deployments reject it."
                            },
                            "image": {
                              "type": "string",
                              "description": "Container image to run."
                            }
                          },
                          "required": [
                            "type",
                            "image"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "hosted"
                            },
                            "image": {
                              "type": "string"
                            },
                            "url": {
                              "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                              "type": "string"
                            },
                            "datacenters": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "datacenters"
                          ],
                          "additionalProperties": false
                        }
                      ],
                      "description": "Configuration for the deployment adapter.",
                      "type": "object"
                    },
                    "createdAt": {
                      "description": "When the deployment adapter was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the deployment adapter was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "config",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "v1-deploymentAdapters-update",
        "summary": "Update deployment adapter",
        "description": "Update a deployment adapter by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Deployment Adapters"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the deployment adapter"
            },
            "required": true,
            "description": "ID of the deployment adapter"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "description": "Name of the deployment adapter.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "config": {
                    "description": "Configuration for the deployment adapter.",
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "manual",
                            "description": "You start the packager container yourself from the generated run command."
                          },
                          "image": {
                            "description": "Container image override. Falls back to the organization's packager image, then the system default.",
                            "type": "string",
                            "maxLength": 512
                          },
                          "url": {
                            "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                            "type": "string",
                            "maxLength": 512
                          },
                          "dockerRunTemplate": {
                            "description": "Template for the generated run command. Placeholders: {{image}}, {{url}}, {{token}}, {{packager-name}}.",
                            "type": "string",
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "docker",
                            "description": "Reserved for future use; deployments reject it."
                          },
                          "image": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512,
                            "description": "Container image to run."
                          }
                        },
                        "required": [
                          "type",
                          "image"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "const": "hosted"
                          },
                          "image": {
                            "type": "string",
                            "maxLength": 512
                          },
                          "url": {
                            "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                            "type": "string",
                            "maxLength": 512
                          },
                          "datacenters": {
                            "default": [],
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          }
                        },
                        "required": [
                          "type"
                        ]
                      }
                    ],
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Unique identifier for the deployment adapter."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the deployment adapter."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the deployment adapter belongs to."
                    },
                    "config": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "manual",
                              "description": "You start the packager container yourself from the generated run command."
                            },
                            "image": {
                              "description": "Container image override. Falls back to the organization's packager image, then the system default.",
                              "type": "string"
                            },
                            "url": {
                              "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                              "type": "string"
                            },
                            "dockerRunTemplate": {
                              "description": "Template for the generated run command. Placeholders: {{image}}, {{url}}, {{token}}, {{packager-name}}.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "docker",
                              "description": "Reserved for future use; deployments reject it."
                            },
                            "image": {
                              "type": "string",
                              "description": "Container image to run."
                            }
                          },
                          "required": [
                            "type",
                            "image"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "hosted"
                            },
                            "image": {
                              "type": "string"
                            },
                            "url": {
                              "description": "Control plane URL the packager connects back to. Defaults to the system packager URL.",
                              "type": "string"
                            },
                            "datacenters": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "datacenters"
                          ],
                          "additionalProperties": false
                        }
                      ],
                      "description": "Configuration for the deployment adapter.",
                      "type": "object"
                    },
                    "createdAt": {
                      "description": "When the deployment adapter was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the deployment adapter was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "config",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-deploymentAdapters-delete",
        "summary": "Delete deployment adapter",
        "description": "Delete a deployment adapter by id. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers / Deployment Adapters"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the deployment adapter to delete."
            },
            "required": true,
            "description": "ID of the deployment adapter to delete."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers": {
      "get": {
        "operationId": "v1-packagers-get",
        "summary": "List packagers",
        "description": "Get a list of packagers that the provided API key has access to. A packager created in the portal or through this API is listed as pending until it registers; a connect-key packager is listed once it first registers.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "orderBy",
            "schema": {
              "default": "name",
              "description": "Specifies which column to sort the response by.",
              "type": "string",
              "enum": [
                "id",
                "name",
                "hostname",
                "status"
              ]
            },
            "description": "Specifies which column to sort the response by."
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "default": "asc",
              "description": "How to sort the response records, either in ascending or descending order.",
              "anyOf": [
                {
                  "type": "string",
                  "const": "asc"
                },
                {
                  "type": "string",
                  "const": "desc"
                }
              ]
            },
            "description": "How to sort the response records, either in ascending or descending order."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the packager."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                          },
                          "organizationId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "description": "Organization that the packager belongs to."
                          },
                          "workspaceId": {
                            "type": "string",
                            "format": "nanoid",
                            "pattern": "^[a-zA-Z0-9_-]{21}$",
                            "description": "Workspace the packager is associated with."
                          },
                          "hostname": {
                            "description": "Hostname reported by the packager. Null until it first registers.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "packagerConfigId": {
                            "description": "Packager config the packager runs. Null for a connect-key packager.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "packagerConfigRevision": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Config revision last pushed to the packager. Null for a connect-key packager."
                          },
                          "deploymentAdapterId": {
                            "description": "Deployment adapter used to start the packager. Null when created without one or with a connect key.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "connectKeyId": {
                            "description": "Connect key the packager last registered with. Null for a packager created in the portal.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "description": "Packager software version, as reported by the packager.",
                            "type": "string"
                          },
                          "build": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "licensed": {
                                    "description": "Whether the packager is a licensed build, which enforces a packager licence.",
                                    "type": "boolean"
                                  },
                                  "cef": {
                                    "description": "Whether the packager is built with CEF browser sources.",
                                    "type": "boolean"
                                  },
                                  "ffmpeg": {
                                    "type": "object",
                                    "properties": {
                                      "version": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256,
                                        "description": "FFmpeg version the packager loaded at runtime."
                                      },
                                      "license": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256,
                                        "description": "Licence of the FFmpeg build the packager loaded at runtime."
                                      }
                                    },
                                    "required": [
                                      "version",
                                      "license"
                                    ],
                                    "additionalProperties": false,
                                    "description": "FFmpeg the packager loaded at runtime."
                                  }
                                },
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Build facts the packager reported when it last registered. Null when it reported none, or has not registered yet."
                          },
                          "status": {
                            "type": "string",
                            "description": "Current operational status of the packager. \"pending\" until it first registers, then \"online\" or \"offline\"."
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                          },
                          "createdAt": {
                            "description": "When the packager was created.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "When the packager was last updated.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "organizationId",
                          "workspaceId",
                          "hostname",
                          "packagerConfigId",
                          "packagerConfigRevision",
                          "deploymentAdapterId",
                          "connectKeyId",
                          "build",
                          "status",
                          "labels",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of packager objects, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of packagers."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "v1-packagers-create",
        "summary": "Create packager",
        "description": "Create a packager that runs a packager config. The deployment adapter is optional and must be `manual` or `hosted` when given. Without an adapter, or with a `manual` one, the response carries the registration token once; it cannot be retrieved again. It also carries `command`, which starts the packager with that token; to start it another way, pass the token to the packager yourself. A `hosted` adapter has Vindral run the packager and returns neither `token` nor `command`. It is refused, and nothing is created, with 400 when no eligible node in the adapter's datacenters can run the packager, including when the nodes that could are down, draining or unhealthy, and with 409 when it cannot be placed for now, such as when no node has room. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 256,
                    "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                  },
                  "organizationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Organization to create the packager in."
                  },
                  "packagerConfigId": {
                    "type": "string",
                    "format": "nanoid",
                    "pattern": "^[a-zA-Z0-9_-]{21}$",
                    "description": "Packager config the packager runs."
                  },
                  "deploymentAdapterId": {
                    "description": "Deployment adapter used to start the packager. Without one you start the packager yourself with the organization's packager image and the default control plane URL.",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "nanoid",
                        "pattern": "^[a-zA-Z0-9_-]{21}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "labels": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                  }
                },
                "required": [
                  "name",
                  "organizationId",
                  "packagerConfigId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the packager."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager is associated with."
                    },
                    "hostname": {
                      "description": "Hostname reported by the packager. Null until it first registers.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigId": {
                      "description": "Packager config the packager runs. Null for a connect-key packager.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigRevision": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Config revision last pushed to the packager. Null for a connect-key packager."
                    },
                    "deploymentAdapterId": {
                      "description": "Deployment adapter used to start the packager. Null when created without one or with a connect key.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connectKeyId": {
                      "description": "Connect key the packager last registered with. Null for a packager created in the portal.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "version": {
                      "description": "Packager software version, as reported by the packager.",
                      "type": "string"
                    },
                    "build": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "licensed": {
                              "description": "Whether the packager is a licensed build, which enforces a packager licence.",
                              "type": "boolean"
                            },
                            "cef": {
                              "description": "Whether the packager is built with CEF browser sources.",
                              "type": "boolean"
                            },
                            "ffmpeg": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "FFmpeg version the packager loaded at runtime."
                                },
                                "license": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "Licence of the FFmpeg build the packager loaded at runtime."
                                }
                              },
                              "required": [
                                "version",
                                "license"
                              ],
                              "additionalProperties": false,
                              "description": "FFmpeg the packager loaded at runtime."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Build facts the packager reported when it last registered. Null when it reported none, or has not registered yet."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current operational status of the packager. \"pending\" until it first registers, then \"online\" or \"offline\"."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                    },
                    "createdAt": {
                      "description": "When the packager was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager was last updated.",
                      "type": "string"
                    },
                    "token": {
                      "description": "Registration token. Shown only in this response. Absent for a `hosted` adapter.",
                      "type": "string"
                    },
                    "command": {
                      "description": "Command that starts the packager with this token, rendered from the adapter's run template or the default one. Absent for a `hosted` adapter, whose packager Vindral starts itself.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "workspaceId",
                    "hostname",
                    "packagerConfigId",
                    "packagerConfigRevision",
                    "deploymentAdapterId",
                    "connectKeyId",
                    "build",
                    "status",
                    "labels",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}": {
      "get": {
        "operationId": "v1-packagers-getById",
        "summary": "Get packager",
        "description": "Get a packager by id.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "ID of the packager to get."
            },
            "required": true,
            "description": "ID of the packager to get."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the packager."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager is associated with."
                    },
                    "hostname": {
                      "description": "Hostname reported by the packager. Null until it first registers.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigId": {
                      "description": "Packager config the packager runs. Null for a connect-key packager.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigRevision": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Config revision last pushed to the packager. Null for a connect-key packager."
                    },
                    "deploymentAdapterId": {
                      "description": "Deployment adapter used to start the packager. Null when created without one or with a connect key.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connectKeyId": {
                      "description": "Connect key the packager last registered with. Null for a packager created in the portal.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "version": {
                      "description": "Packager software version, as reported by the packager.",
                      "type": "string"
                    },
                    "build": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "licensed": {
                              "description": "Whether the packager is a licensed build, which enforces a packager licence.",
                              "type": "boolean"
                            },
                            "cef": {
                              "description": "Whether the packager is built with CEF browser sources.",
                              "type": "boolean"
                            },
                            "ffmpeg": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "FFmpeg version the packager loaded at runtime."
                                },
                                "license": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "Licence of the FFmpeg build the packager loaded at runtime."
                                }
                              },
                              "required": [
                                "version",
                                "license"
                              ],
                              "additionalProperties": false,
                              "description": "FFmpeg the packager loaded at runtime."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Build facts the packager reported when it last registered. Null when it reported none, or has not registered yet."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current operational status of the packager. \"pending\" until it first registers, then \"online\" or \"offline\"."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                    },
                    "createdAt": {
                      "description": "When the packager was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "workspaceId",
                    "hostname",
                    "packagerConfigId",
                    "packagerConfigRevision",
                    "deploymentAdapterId",
                    "connectKeyId",
                    "build",
                    "status",
                    "labels",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "v1-packagers-delete",
        "summary": "Delete packager",
        "description": "Delete a packager by id. On a `hosted` packager it also stops it. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "description": "ID of the packager to delete."
            },
            "required": true,
            "description": "ID of the packager to delete."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}/apply-latest": {
      "put": {
        "operationId": "v1-packagers-applyLatest",
        "summary": "Apply latest packager config",
        "description": "Pushes the newest revision of the packager's config to it. Packager configs are versioned; each edit produces a new revision. A connected packager also picks up the newest revision whenever it reconnects. On a `hosted` packager it also re-applies the adapter's image and datacenters, even when the revision is already the latest. A `hosted` packager is refused, and keeps its revision, with 400 when no eligible node can run it, including when the nodes that could are down, draining or unhealthy, and with 409 when it cannot be placed for now, such as when no node has room. A stopped `hosted` packager, such as after a kill, is refused with 400, and keeps its revision, until `POST /v1/packagers/{id}/redeploy` starts it again. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$",
              "description": "ID of the packager to update."
            },
            "required": true,
            "description": "ID of the packager to update."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the packager."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager is associated with."
                    },
                    "hostname": {
                      "description": "Hostname reported by the packager. Null until it first registers.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigId": {
                      "description": "Packager config the packager runs. Null for a connect-key packager.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigRevision": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Config revision last pushed to the packager. Null for a connect-key packager."
                    },
                    "deploymentAdapterId": {
                      "description": "Deployment adapter used to start the packager. Null when created without one or with a connect key.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connectKeyId": {
                      "description": "Connect key the packager last registered with. Null for a packager created in the portal.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "version": {
                      "description": "Packager software version, as reported by the packager.",
                      "type": "string"
                    },
                    "build": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "licensed": {
                              "description": "Whether the packager is a licensed build, which enforces a packager licence.",
                              "type": "boolean"
                            },
                            "cef": {
                              "description": "Whether the packager is built with CEF browser sources.",
                              "type": "boolean"
                            },
                            "ffmpeg": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "FFmpeg version the packager loaded at runtime."
                                },
                                "license": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "Licence of the FFmpeg build the packager loaded at runtime."
                                }
                              },
                              "required": [
                                "version",
                                "license"
                              ],
                              "additionalProperties": false,
                              "description": "FFmpeg the packager loaded at runtime."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Build facts the packager reported when it last registered. Null when it reported none, or has not registered yet."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current operational status of the packager. \"pending\" until it first registers, then \"online\" or \"offline\"."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                    },
                    "createdAt": {
                      "description": "When the packager was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "workspaceId",
                    "hostname",
                    "packagerConfigId",
                    "packagerConfigRevision",
                    "deploymentAdapterId",
                    "connectKeyId",
                    "build",
                    "status",
                    "labels",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}/redeploy": {
      "post": {
        "operationId": "v1-packagers-redeploy",
        "summary": "Redeploy packager",
        "description": "Restarts a `hosted` packager with its adapter's image and datacenters and the newest revision of its config, and starts it again after a kill. Its streams drop until it reconnects. Refused with 400 for a packager that is not `hosted` or that no eligible node can run, including when the nodes that could are down, draining or unhealthy, and with 409 when it cannot be placed for now, such as when no node has room. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$",
              "description": "ID of the packager to update."
            },
            "required": true,
            "description": "ID of the packager to update."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the packager."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager is associated with."
                    },
                    "hostname": {
                      "description": "Hostname reported by the packager. Null until it first registers.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigId": {
                      "description": "Packager config the packager runs. Null for a connect-key packager.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigRevision": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Config revision last pushed to the packager. Null for a connect-key packager."
                    },
                    "deploymentAdapterId": {
                      "description": "Deployment adapter used to start the packager. Null when created without one or with a connect key.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connectKeyId": {
                      "description": "Connect key the packager last registered with. Null for a packager created in the portal.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "version": {
                      "description": "Packager software version, as reported by the packager.",
                      "type": "string"
                    },
                    "build": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "licensed": {
                              "description": "Whether the packager is a licensed build, which enforces a packager licence.",
                              "type": "boolean"
                            },
                            "cef": {
                              "description": "Whether the packager is built with CEF browser sources.",
                              "type": "boolean"
                            },
                            "ffmpeg": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "FFmpeg version the packager loaded at runtime."
                                },
                                "license": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "Licence of the FFmpeg build the packager loaded at runtime."
                                }
                              },
                              "required": [
                                "version",
                                "license"
                              ],
                              "additionalProperties": false,
                              "description": "FFmpeg the packager loaded at runtime."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Build facts the packager reported when it last registered. Null when it reported none, or has not registered yet."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current operational status of the packager. \"pending\" until it first registers, then \"online\" or \"offline\"."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                    },
                    "createdAt": {
                      "description": "When the packager was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "workspaceId",
                    "hostname",
                    "packagerConfigId",
                    "packagerConfigRevision",
                    "deploymentAdapterId",
                    "connectKeyId",
                    "build",
                    "status",
                    "labels",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}/labels": {
      "put": {
        "operationId": "v1-packagers-setLabels",
        "summary": "Set packager labels",
        "description": "Replaces the packager's labels with the given list. Send an empty list to remove them all. Requires a read-write scoped API key with sufficient permissions.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$",
              "description": "ID of the packager to update."
            },
            "required": true,
            "description": "ID of the packager to update."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "labels": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                  }
                },
                "required": [
                  "labels"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the packager."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the packager, unique within its organization. Chosen when it is created in the portal; a connect-key packager takes the name after the dot in its token."
                    },
                    "organizationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "description": "Organization that the packager belongs to."
                    },
                    "workspaceId": {
                      "type": "string",
                      "format": "nanoid",
                      "pattern": "^[a-zA-Z0-9_-]{21}$",
                      "description": "Workspace the packager is associated with."
                    },
                    "hostname": {
                      "description": "Hostname reported by the packager. Null until it first registers.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigId": {
                      "description": "Packager config the packager runs. Null for a connect-key packager.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "packagerConfigRevision": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Config revision last pushed to the packager. Null for a connect-key packager."
                    },
                    "deploymentAdapterId": {
                      "description": "Deployment adapter used to start the packager. Null when created without one or with a connect key.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connectKeyId": {
                      "description": "Connect key the packager last registered with. Null for a packager created in the portal.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "version": {
                      "description": "Packager software version, as reported by the packager.",
                      "type": "string"
                    },
                    "build": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "licensed": {
                              "description": "Whether the packager is a licensed build, which enforces a packager licence.",
                              "type": "boolean"
                            },
                            "cef": {
                              "description": "Whether the packager is built with CEF browser sources.",
                              "type": "boolean"
                            },
                            "ffmpeg": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "FFmpeg version the packager loaded at runtime."
                                },
                                "license": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "Licence of the FFmpeg build the packager loaded at runtime."
                                }
                              },
                              "required": [
                                "version",
                                "license"
                              ],
                              "additionalProperties": false,
                              "description": "FFmpeg the packager loaded at runtime."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Build facts the packager reported when it last registered. Null when it reported none, or has not registered yet."
                    },
                    "status": {
                      "type": "string",
                      "description": "Current operational status of the packager. \"pending\" until it first registers, then \"online\" or \"offline\"."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Free-text labels used to group and filter packagers. Each label is 1-64 characters without commas, at most 20 per packager, without duplicates. Labels that differ only in case are the same label."
                    },
                    "createdAt": {
                      "description": "When the packager was created.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "When the packager was last updated.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "organizationId",
                    "workspaceId",
                    "hostname",
                    "packagerConfigId",
                    "packagerConfigRevision",
                    "deploymentAdapterId",
                    "connectKeyId",
                    "build",
                    "status",
                    "labels",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}/kill": {
      "post": {
        "operationId": "v1-packagers-kill",
        "summary": "Kill packager",
        "description": "Asks a packager to stop itself. The packager shuts down cleanly and exits. A packager you run yourself starts again only if however it is run restarts it, for example a container restart policy. A `hosted` packager stays stopped until `POST /v1/packagers/{id}/redeploy` starts it again. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected, and with 503 when a `hosted` packager's job could not be stopped, in which case it starts again.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "force": {
                    "default": false,
                    "description": "Best-effort fast stop. The packager still shuts down cleanly, but does not wait for running tasks to confirm they stopped.",
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Kill requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}/start": {
      "post": {
        "operationId": "v1-packagers-startAllTasks",
        "summary": "Start packager",
        "description": "Asks the packager to start every task it runs, including tasks its config sets to stopped. The packager config is not changed, so each task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected or reports no tasks. A 503 can come after some tasks already got the command; calling again is safe, since a task already in the requested state is left as it is.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Start requested"
                    },
                    "tasks": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Number of tasks the command was sent to."
                    }
                  },
                  "required": [
                    "status",
                    "tasks"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/{id}/stop": {
      "post": {
        "operationId": "v1-packagers-stopAllTasks",
        "summary": "Stop packager",
        "description": "Asks the packager to stop every task it runs. The packager keeps running and stays connected; `POST /v1/packagers/{id}/kill` makes it exit. The packager config is not changed, so each task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected or reports no tasks. A 503 can come after some tasks already got the command; calling again is safe, since a task already in the requested state is left as it is.",
        "tags": [
          "Packagers"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Stop requested"
                    },
                    "tasks": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Number of tasks the command was sent to."
                    }
                  },
                  "required": [
                    "status",
                    "tasks"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/source-instances/{id}/start": {
      "post": {
        "operationId": "v1-packagers-startSourceInstance",
        "summary": "Start source instance",
        "description": "Asks the packager running this source to start it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Sources"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the source instance to start."
            },
            "required": true,
            "description": "ID of the source instance to start."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Start requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/source-instances/{id}/stop": {
      "post": {
        "operationId": "v1-packagers-stopSourceInstance",
        "summary": "Stop source instance",
        "description": "Asks the packager running this source to stop it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Sources"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the source instance to stop."
            },
            "required": true,
            "description": "ID of the source instance to stop."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Stop requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/transcoder-instances/{id}/start": {
      "post": {
        "operationId": "v1-packagers-startTranscoderInstance",
        "summary": "Start transcoder instance",
        "description": "Asks the packager running this transcoder to start it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Transcoders"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the transcoder instance to start."
            },
            "required": true,
            "description": "ID of the transcoder instance to start."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Start requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/transcoder-instances/{id}/stop": {
      "post": {
        "operationId": "v1-packagers-stopTranscoderInstance",
        "summary": "Stop transcoder instance",
        "description": "Asks the packager running this transcoder to stop it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Transcoders"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the transcoder instance to stop."
            },
            "required": true,
            "description": "ID of the transcoder instance to stop."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Stop requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/compositor-instances/{id}/start": {
      "post": {
        "operationId": "v1-packagers-startCompositorInstance",
        "summary": "Start compositor instance",
        "description": "Asks the packager running this compositor to start it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Compositors"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the compositor instance to start."
            },
            "required": true,
            "description": "ID of the compositor instance to start."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Start requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/compositor-instances/{id}/stop": {
      "post": {
        "operationId": "v1-packagers-stopCompositorInstance",
        "summary": "Stop compositor instance",
        "description": "Asks the packager running this compositor to stop it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Compositors"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the compositor instance to stop."
            },
            "required": true,
            "description": "ID of the compositor instance to stop."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Stop requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/sink-instances/{id}/start": {
      "post": {
        "operationId": "v1-packagers-startSinkInstance",
        "summary": "Start sink instance",
        "description": "Asks the packager running this sink to start it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Sinks"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the sink instance to start."
            },
            "required": true,
            "description": "ID of the sink instance to start."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Start requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packagers/sink-instances/{id}/stop": {
      "post": {
        "operationId": "v1-packagers-stopSinkInstance",
        "summary": "Stop sink instance",
        "description": "Asks the packager running this sink to stop it. The packager config is not changed, so the task returns to its configured state when the packager restarts or the task's own config is edited. Requires a read-write scoped API key with sufficient permissions. Fails if the packager is not currently connected.",
        "tags": [
          "Packagers / Sinks"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string",
              "format": "nanoid",
              "pattern": "^[a-zA-Z0-9_-]{21}$",
              "description": "ID of the sink instance to stop."
            },
            "required": true,
            "description": "ID of the sink instance to stop."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "Stop requested"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licences": {
      "get": {
        "operationId": "v1-licences-findMany",
        "summary": "List licences",
        "description": "List the licences the provided API key has access to, the most recently issued (`issuedAt`) first, and licences issued at the same time by `lic`. The licence file is not included; get a single licence for it.",
        "tags": [
          "Licences"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "skip",
            "schema": {
              "default": 0,
              "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses.",
              "type": "number"
            },
            "description": "Omits the specified number of returned records. This is useful, for example, to paginate responses."
          },
          {
            "in": "query",
            "name": "take",
            "schema": {
              "default": 100,
              "description": "Specifies how many records to include in the response.",
              "type": "number"
            },
            "description": "Specifies how many records to include in the response."
          },
          {
            "in": "query",
            "name": "organizationId",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "in": "query",
            "name": "product",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "active",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Only active licences (not expired and not revoked), or only inactive ones."
            },
            "description": "Only active licences (not expired and not revoked), or only inactive ones."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "lic": {
                            "type": "string",
                            "description": "Licence ID, the `lic` claim in the licence file."
                          },
                          "organizationId": {
                            "type": "string",
                            "description": "ID of the organization the licence is issued to."
                          },
                          "product": {
                            "type": "string",
                            "description": "Product the licence is for, such as `vindral-packager`."
                          },
                          "issuedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "description": "When the licence was signed."
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "description": "When the licence expires."
                          },
                          "instances": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Instances the licence allows at once; null for no limit."
                          },
                          "report": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "tolerance_minutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "required_at_start": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "tolerance_minutes",
                              "required_at_start"
                            ],
                            "additionalProperties": false,
                            "description": "How licensed instances report to Vindral, as the licence file sets it."
                          },
                          "revokedAt": {
                            "description": "When Vindral revoked the licence. Absent unless revoked.",
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "lic",
                          "organizationId",
                          "product",
                          "issuedAt",
                          "expiresAt",
                          "instances",
                          "report"
                        ],
                        "additionalProperties": false
                      },
                      "description": "List of licences, sorted and sized by the query parameters."
                    },
                    "total": {
                      "type": "number",
                      "description": "Total number of licences matching the filters."
                    }
                  },
                  "required": [
                    "items",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/licences/{lic}": {
      "get": {
        "operationId": "v1-licences-findOne",
        "summary": "Get licence",
        "description": "Get a licence by ID. Organization administrators and superusers also get the licence file as `raw`.",
        "tags": [
          "Licences"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "lic",
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Licence ID, the `lic` claim in the licence file."
            },
            "required": true,
            "description": "Licence ID, the `lic` claim in the licence file."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lic": {
                      "type": "string",
                      "description": "Licence ID, the `lic` claim in the licence file."
                    },
                    "organizationId": {
                      "type": "string",
                      "description": "ID of the organization the licence is issued to."
                    },
                    "product": {
                      "type": "string",
                      "description": "Product the licence is for, such as `vindral-packager`."
                    },
                    "issuedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "When the licence was signed."
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "When the licence expires."
                    },
                    "instances": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Instances the licence allows at once; null for no limit."
                    },
                    "report": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "tolerance_minutes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "required_at_start": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "tolerance_minutes",
                        "required_at_start"
                      ],
                      "additionalProperties": false,
                      "description": "How licensed instances report to Vindral, as the licence file sets it."
                    },
                    "revokedAt": {
                      "description": "When Vindral revoked the licence. Absent unless revoked.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "raw": {
                      "description": "The licence file exactly as issued. Present only for organization administrators and superusers.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "lic",
                    "organizationId",
                    "product",
                    "issuedAt",
                    "expiresAt",
                    "instances",
                    "report"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "error.BAD_REQUEST": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Invalid input data"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "BAD_REQUEST"
          },
          "issues": {
            "description": "An array of issues that were responsible for the error",
            "example": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "message",
          "code"
        ],
        "additionalProperties": false,
        "title": "Invalid input data error (400)",
        "description": "The error information",
        "example": {
          "code": "BAD_REQUEST",
          "message": "Invalid input data",
          "issues": []
        }
      },
      "error.UNAUTHORIZED": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Authorization not provided"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "UNAUTHORIZED"
          },
          "issues": {
            "description": "An array of issues that were responsible for the error",
            "example": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "message",
          "code"
        ],
        "additionalProperties": false,
        "title": "Authorization not provided error (401)",
        "description": "The error information",
        "example": {
          "code": "UNAUTHORIZED",
          "message": "Authorization not provided",
          "issues": []
        }
      },
      "error.FORBIDDEN": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Insufficient access"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "FORBIDDEN"
          },
          "issues": {
            "description": "An array of issues that were responsible for the error",
            "example": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "message",
          "code"
        ],
        "additionalProperties": false,
        "title": "Insufficient access error (403)",
        "description": "The error information",
        "example": {
          "code": "FORBIDDEN",
          "message": "Insufficient access",
          "issues": []
        }
      },
      "error.NOT_FOUND": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Not found"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "NOT_FOUND"
          },
          "issues": {
            "description": "An array of issues that were responsible for the error",
            "example": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "message",
          "code"
        ],
        "additionalProperties": false,
        "title": "Not found error (404)",
        "description": "The error information",
        "example": {
          "code": "NOT_FOUND",
          "message": "Not found",
          "issues": []
        }
      },
      "error.INTERNAL_SERVER_ERROR": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Internal server error"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "INTERNAL_SERVER_ERROR"
          },
          "issues": {
            "description": "An array of issues that were responsible for the error",
            "example": [],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "message",
          "code"
        ],
        "additionalProperties": false,
        "title": "Internal server error error (500)",
        "description": "The error information",
        "example": {
          "code": "INTERNAL_SERVER_ERROR",
          "message": "Internal server error",
          "issues": []
        }
      }
    },
    "securitySchemes": {
      "Authorization": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
