{
  "openapi": "3.0.1",
  "info": {
    "title": "Office API",
    "description": "Office automation service",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://office.api.snokam.no"
    }
  ],
  "paths": {
    "/v1.0/unloc/event": {
      "post": {
        "tags": [
          "Unloc"
        ],
        "summary": "Handles Unloc events",
        "description": "This function processes Unloc events.",
        "operationId": "unlocEvent",
        "requestBody": {
          "description": "The Unloc event payload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/unlocEvent"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Event processed successfully",
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ],
        "x-ms-visibility": "important"
      }
    },
    "/v1.0/protected/health/{provider}": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Checks an integration's connectivity",
        "description": "Verifies that a provider this function owns can be reached with the configured credentials.",
        "operationId": "integrationHealth",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of IntegrationHealthResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/integrationHealthResult"
                }
              }
            },
            "x-ms-summary": "Health result"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hue/lights/{id}": {
      "put": {
        "tags": [
          "Hue"
        ],
        "summary": "Sets a Hue light",
        "description": "Sets the state of a Hue light by ID.",
        "operationId": "setLight",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the light to set",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The ID of the light"
          }
        ],
        "requestBody": {
          "description": "The light state to set",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/lightUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Light state set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hue/lights": {
      "get": {
        "tags": [
          "Hue"
        ],
        "summary": "Gets all Hue lights",
        "description": "Gets a list of all Hue lights.",
        "operationId": "GetLights",
        "responses": {
          "200": {
            "description": "List of Hue lights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/light"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/party": {
      "put": {
        "tags": [
          "Party"
        ],
        "summary": "Sets party state",
        "description": "Sets the party state at the office, only activate on request.",
        "operationId": "setPartyState",
        "requestBody": {
          "description": "The party state to set",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/setParty"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Party state set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}/playback/play": {
      "put": {
        "tags": [
          "Sonos"
        ],
        "summary": "Plays a group",
        "description": "Starts playback on a Sonos Music group by name.",
        "operationId": "play",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to play",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "Playback started on the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}/playback/skipToNextTrack": {
      "put": {
        "tags": [
          "Sonos"
        ],
        "summary": "Skips to the next track",
        "description": "Skips to the next track on a Sonos Music group by name.",
        "operationId": "skipTrack",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to skip track",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "Skipped track on the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}/playback/skipToPreviousTrack": {
      "put": {
        "tags": [
          "Sonos"
        ],
        "summary": "Skips to the previous track",
        "description": "Skips to the previous track on a Sonos Music group by name.",
        "operationId": "previousTrack",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to skip to the previous track",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "Skipped to the previous track on the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}/playback/pause": {
      "put": {
        "tags": [
          "Sonos"
        ],
        "summary": "Pauses playback",
        "description": "Pauses playback on a Sonos Music group by name.",
        "operationId": "pause",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to pause playback",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "Paused playback on the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}/playback/status": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets playback status",
        "description": "Gets the playback status of a Sonos Music group by name.",
        "operationId": "status",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to get playback status",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "Playback status of the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/playbackStatus"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}/playbackMetadata": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets playback metadata",
        "description": "Gets the playback metadata of a Sonos Music group by name.",
        "operationId": "playbackMetadata",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to get playback metadata",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "Playback metadata of the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sonosMetaData"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{groupName}/playlist/{playlistName}": {
      "put": {
        "tags": [
          "Sonos"
        ],
        "summary": "Plays a playlist",
        "description": "Plays a Sonos Music playlist by name.",
        "operationId": "playPlaylist",
        "parameters": [
          {
            "name": "groupName",
            "in": "path",
            "description": "The name of the group to play the playlist on",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          },
          {
            "name": "playlistName",
            "in": "path",
            "description": "The name of the playlist to play",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the playlist"
          }
        ],
        "responses": {
          "200": {
            "description": "Playing the playlist on the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group or playlist not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{groupName}/setGroupMembers": {
      "put": {
        "tags": [
          "Sonos"
        ],
        "summary": "Sets group members",
        "description": "Sets the members of a Sonos Music group by name.",
        "operationId": "setGroupMembers",
        "parameters": [
          {
            "name": "groupName",
            "in": "path",
            "description": "The name of the group to set members for",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          },
          {
            "name": "groups",
            "in": "query",
            "description": "The groups to add to the group",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The groups to add"
          }
        ],
        "responses": {
          "200": {
            "description": "Added groups to the group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/ice": {
      "post": {
        "tags": [
          "Misc"
        ],
        "summary": "Ice Baby",
        "description": "Performs the Ice Baby action.",
        "operationId": "iceBaby",
        "responses": {
          "200": {
            "description": "Ice Baby action performed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/printer/create-printjob": {
      "post": {
        "tags": [
          "Printer"
        ],
        "summary": "Creates a print job",
        "description": "Uploads a PNG image to blob storage and creates a print job in the queue. Accepts multipart/form-data with a PNG file.",
        "operationId": "createPrintJob",
        "requestBody": {
          "description": "A PNG image file as multipart/form-data.",
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Print job created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/printJobResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Invalid file or file format",
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/printer/status": {
      "get": {
        "tags": [
          "Printer"
        ],
        "summary": "Gets printer status",
        "description": "Retrieves the latest printer status including the currently loaded label size and supported image dimensions. Use this endpoint to determine the correct image dimensions before creating a print job.",
        "operationId": "getPrinterStatus",
        "responses": {
          "200": {
            "description": "Printer status with currently loaded label information and supported dimensions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/printerStatusResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Printer"
        ],
        "summary": "Report printer status",
        "description": "A printer reports its status beacon (status + currently loaded label size) so print jobs can be validated against the loaded label.",
        "operationId": "reportPrinterStatus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reportStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No description",
            "x-ms-summary": "Recorded"
          },
          "400": {
            "description": "No description",
            "x-ms-summary": "Invalid body"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/printer/next-job": {
      "get": {
        "tags": [
          "Printer"
        ],
        "summary": "Lease the next print job",
        "description": "Token-authenticated pull endpoint for a printer. Returns the next queued job for the caller's business (image inlined as base64) with a receipt to acknowledge once printed, or 204 when the queue is empty.",
        "operationId": "getNextPrintJob",
        "responses": {
          "200": {
            "description": "Payload of PrintJobLease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/printJobLease"
                }
              }
            },
            "x-ms-summary": "A leased job"
          },
          "204": {
            "description": "No description",
            "x-ms-summary": "No jobs queued"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/printer/ack": {
      "post": {
        "tags": [
          "Printer"
        ],
        "summary": "Acknowledge a printed job",
        "description": "Deletes a leased job from the queue once printed. Provide the messageId and popReceipt from the lease.",
        "operationId": "ackPrintJob",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No description",
            "x-ms-summary": "Acknowledged"
          },
          "400": {
            "description": "No description",
            "x-ms-summary": "Missing receipt"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/households": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets Sonos Music households",
        "description": "Retrieves a list of Sonos Music households.",
        "operationId": "getHouseholds",
        "responses": {
          "200": {
            "description": "List of Sonos Music households",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sonosHouseholds"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/playback/status": {
      "get": {
        "tags": [
          "Playback"
        ],
        "summary": "Gets playback status",
        "description": "Retrieves the playback status of the household.",
        "operationId": "getPlaybackStatus",
        "responses": {
          "200": {
            "description": "Playback status of the household",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/household"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/household": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets a Sonos Music household",
        "description": "Retrieves a Sonos Music household.",
        "operationId": "getHousehold",
        "responses": {
          "200": {
            "description": "A Sonos Music household",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/household"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups/{name}": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets a Sonos Music group",
        "description": "Retrieves a Sonos Music group by name.",
        "operationId": "getGroup",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the group to retrieve",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The name of the group"
          }
        ],
        "responses": {
          "200": {
            "description": "A Sonos Music group",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/group"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "Group not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/groups": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets all groups",
        "description": "Gets a list of all Sonos Music groups.",
        "operationId": "getGroups",
        "responses": {
          "200": {
            "description": "List of Sonos Music groups",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/group"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sonos/playlists": {
      "get": {
        "tags": [
          "Sonos"
        ],
        "summary": "Gets all playlists",
        "description": "Gets a list of all Sonos Music playlists.",
        "operationId": "getPlaylists",
        "responses": {
          "200": {
            "description": "List of Sonos Music playlists",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sonosPlaylist"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/sanity/state": {
      "get": {
        "tags": [
          "Sanity"
        ],
        "summary": "Gets Sanity office state",
        "description": "Gets the state of the office from Sanity.",
        "operationId": "getSanityOfficeState",
        "responses": {
          "200": {
            "description": "Sanity office state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityOfficeDto"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/state": {
      "get": {
        "tags": [
          "State"
        ],
        "summary": "Gets office state",
        "description": "Gets the state of the office including Sanity, Hue, and Sonos.",
        "operationId": "getOfficeState",
        "responses": {
          "200": {
            "description": "Office state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/officeState"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/power-up-on": {
      "get": {
        "tags": [
          "State"
        ],
        "summary": "Gets powerUpOn type",
        "description": "Gets the type of powerUpOn",
        "operationId": "powerUpOn",
        "responses": {
          "200": {
            "description": "Office state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/powerUpOn"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/youtube/queue/next": {
      "get": {
        "tags": [
          "Youtube"
        ],
        "summary": "Gets next YouTube video",
        "description": "Gets the next video in the YouTube queue.",
        "operationId": "getNextYoutubeVideo",
        "responses": {
          "200": {
            "description": "Next video in the YouTube queue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nextVideo"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "204": {
            "description": "No video in the queue",
            "x-ms-summary": "No Content"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/youtube/queue/{id}": {
      "put": {
        "tags": [
          "Youtube"
        ],
        "summary": "Adds to YouTube queue",
        "description": "Adds a video to the YouTube queue.",
        "operationId": "addToYoutubeQueue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the video to add",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The ID of the video"
          }
        ],
        "responses": {
          "200": {
            "description": "Video added to the queue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Youtube"
        ],
        "summary": "Removes from YouTube queue",
        "description": "Removes a video from the YouTube queue.",
        "operationId": "removeFromQueue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the video to remove",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The ID of the video"
          }
        ],
        "responses": {
          "200": {
            "description": "Video removed from the queue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/simpleResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ackRequest": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          },
          "popReceipt": {
            "type": "string"
          }
        }
      },
      "album": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "artist": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "availablePlaybackActions": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "canPlay": {
            "type": "boolean"
          },
          "canSkip": {
            "type": "boolean"
          },
          "canSkipBack": {
            "type": "boolean"
          },
          "canSkipToPrevious": {
            "type": "boolean"
          },
          "canSeek": {
            "type": "boolean"
          },
          "canPause": {
            "type": "boolean"
          },
          "canStop": {
            "type": "boolean"
          },
          "canRepeat": {
            "type": "boolean"
          },
          "canRepeatOne": {
            "type": "boolean"
          },
          "canCrossfade": {
            "type": "boolean"
          },
          "canShuffle": {
            "type": "boolean"
          }
        }
      },
      "container": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "currentItem": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "track": {
            "$ref": "#/components/schemas/track"
          },
          "policies": {
            "$ref": "#/components/schemas/policies"
          }
        }
      },
      "group": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "coordinatorId": {
            "type": "string"
          },
          "playbackState": {
            "type": "string"
          },
          "playerIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "household": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ownerLuid": {
            "type": "string"
          }
        }
      },
      "id": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "serviceId": {
            "type": "string"
          },
          "objectId": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          }
        }
      },
      "image": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "integrationHealthResult": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "labelSize": {
        "type": "object",
        "properties": {
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "light": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "on": {
            "$ref": "#/components/schemas/lightOn"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "lightDimming": {
        "type": "object",
        "properties": {
          "brightness": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "lightEffects": {
        "type": "object",
        "properties": {
          "effect": {
            "type": "string"
          }
        }
      },
      "lightOn": {
        "type": "object",
        "properties": {
          "isOn": {
            "type": "boolean"
          }
        }
      },
      "lightUpdate": {
        "type": "object",
        "properties": {
          "on": {
            "$ref": "#/components/schemas/lightOn"
          },
          "dimming": {
            "$ref": "#/components/schemas/lightDimming"
          },
          "effects": {
            "$ref": "#/components/schemas/lightEffects"
          }
        }
      },
      "nextVideo": {
        "type": "object",
        "properties": {
          "video": {
            "type": "string"
          }
        }
      },
      "officeState": {
        "type": "object",
        "properties": {
          "sanity": {
            "$ref": "#/components/schemas/sanityOfficeDto"
          },
          "hue": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/light"
            }
          },
          "sonos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/group"
            }
          }
        }
      },
      "on": {
        "type": "object",
        "properties": {
          "isOn": {
            "type": "boolean"
          }
        }
      },
      "playbackStatus": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "playbackState": {
            "type": "string"
          },
          "isDucking": {
            "type": "boolean"
          },
          "positionMillis": {
            "type": "integer",
            "format": "int32"
          },
          "previousPositionMillis": {
            "type": "integer",
            "format": "int32"
          },
          "playModes": {
            "$ref": "#/components/schemas/playModes"
          },
          "availablePlaybackActions": {
            "$ref": "#/components/schemas/availablePlaybackActions"
          }
        }
      },
      "playlist": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "trackCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "playModes": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "repeat": {
            "type": "boolean"
          },
          "repeatOne": {
            "type": "boolean"
          },
          "shuffle": {
            "type": "boolean"
          },
          "crossfade": {
            "type": "boolean"
          }
        }
      },
      "policies": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          }
        }
      },
      "powerUpOn": {
        "type": "object",
        "properties": {
          "mode": {
            "enum": [
              0,
              1,
              2
            ],
            "type": "integer",
            "format": "int32",
            "default": 0,
            "nullable": true
          },
          "on": {
            "$ref": "#/components/schemas/on"
          }
        }
      },
      "printerStatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "labelSize": {
            "type": "string"
          },
          "labelIdentifier": {
            "type": "string"
          },
          "labelName": {
            "type": "string"
          },
          "supportedWidth": {
            "type": "integer",
            "format": "int32"
          },
          "supportedHeight": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "printJobLease": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string"
          },
          "labelSize": {
            "type": "string"
          },
          "imageBase64": {
            "type": "string"
          },
          "messageId": {
            "type": "string"
          },
          "popReceipt": {
            "type": "string"
          }
        }
      },
      "printJobResponse": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string"
          },
          "blobUrl": {
            "type": "string"
          },
          "labelSize": {
            "$ref": "#/components/schemas/labelSize"
          }
        }
      },
      "quality": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          }
        }
      },
      "reportStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "labelSize": {
            "type": "string"
          }
        }
      },
      "sanityOfficeDto": {
        "type": "object",
        "properties": {
          "party": {
            "type": "boolean",
            "nullable": true
          },
          "youtubeQueue": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "service": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "setParty": {
        "type": "object",
        "properties": {
          "party": {
            "type": "boolean"
          }
        }
      },
      "simpleResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "sonosHouseholds": {
        "type": "object",
        "properties": {
          "households": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/household"
            }
          }
        }
      },
      "sonosMetaData": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "container": {
            "$ref": "#/components/schemas/container"
          },
          "currentItem": {
            "$ref": "#/components/schemas/currentItem"
          }
        }
      },
      "sonosPlaylist": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "playlists": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/playlist"
            }
          }
        }
      },
      "track": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/image"
            }
          },
          "album": {
            "$ref": "#/components/schemas/album"
          },
          "artist": {
            "$ref": "#/components/schemas/artist"
          },
          "id": {
            "$ref": "#/components/schemas/id"
          },
          "service": {
            "$ref": "#/components/schemas/service"
          },
          "durationMillis": {
            "type": "integer",
            "format": "int32"
          },
          "quality": {
            "$ref": "#/components/schemas/quality"
          }
        }
      },
      "unlocEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "keyId": {
            "type": "string"
          },
          "lockId": {
            "type": "string"
          },
          "lockName": {
            "type": "string"
          },
          "appUserId": {
            "type": "string"
          },
          "userName": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "Implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
            "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
            "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
            "scopes": {
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
            }
          }
        }
      },
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}