{
  "openapi": "3.0.1",
  "info": {
    "title": "Blog API",
    "description": "Blog management API",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://blog.api.snokam.no"
    }
  ],
  "paths": {
    "/v1.0/GetHealth": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Health check",
        "description": "Returns a health check response.",
        "operationId": "GetHealth",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        }
      }
    },
    "/v1.0/protected/articles/drafts": {
      "post": {
        "tags": [
          "Articles"
        ],
        "summary": "Create a new article as a draft",
        "description": "Creates a new article in Sanity's `drafts.*` namespace. The article is not visible on the public site until PublishDraft is called.",
        "operationId": "CreateDraft",
        "requestBody": {
          "description": "The article content to save as a draft",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityCreateArticle"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The newly created draft",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Payload of Object",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "get": {
        "tags": [
          "Articles"
        ],
        "summary": "List drafts without a published counterpart",
        "description": "Used by the editor to surface unpublished articles authors might want to resume.",
        "operationId": "GetDraftOnlyArticles",
        "responses": {
          "200": {
            "description": "Draft article list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/getArticlesResultInner"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/articles/{slugOrId}/draft": {
      "patch": {
        "tags": [
          "Articles"
        ],
        "summary": "Write an edit to the draft",
        "description": "Patches the draft for the given article. Creates the draft from the published copy first if none exists. Only authors may call this.",
        "operationId": "PatchDraft",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          }
        ],
        "requestBody": {
          "description": "Fields to merge into the draft",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityPatchArticle"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated draft",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Payload of Object",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Articles"
        ],
        "summary": "Delete the draft",
        "description": "Removes the draft without touching the published article. Only authors may call this.",
        "operationId": "DiscardDraft",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          }
        ],
        "responses": {
          "200": {
            "description": "The discarded draft (pre-delete snapshot)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No draft exists",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/articles/{slugOrId}/publish": {
      "post": {
        "tags": [
          "Articles"
        ],
        "summary": "Promote the draft to published",
        "description": "Overwrites the published article with the current draft and removes the draft. Only authors may call this.",
        "operationId": "PublishDraft",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          }
        ],
        "responses": {
          "200": {
            "description": "The newly-published article",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No draft exists",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/{slugOrId}/article-invitation-preview": {
      "get": {
        "tags": [
          "Articles"
        ],
        "summary": "Preview invitation recipients",
        "description": "Returns the list of subscriber emails for the given tag slugs. Does not send any email.",
        "operationId": "GetArticleInvitationPreview",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          },
          {
            "name": "tagSlugs",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Comma-separated tag slugs to preview subscribers for"
          }
        ],
        "responses": {
          "200": {
            "description": "List of subscriber emails",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/articleInvitationPreviewResponse"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "At least one tag slug is required",
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/{slugOrId}/send-article-invitations": {
      "post": {
        "tags": [
          "Articles"
        ],
        "summary": "Send article invitation emails",
        "description": "Sends invitation emails to subscribers of the given tags and marks invitationSent as true on the article. Only the article author may call this.",
        "operationId": "SendArticleInvitations",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          },
          {
            "name": "tagSlugs",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Comma-separated tag slugs to send invitations to"
          }
        ],
        "responses": {
          "200": {
            "description": "Invitations sent successfully",
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Payload of Object",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "Article not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/articles": {
      "get": {
        "tags": [
          "Articles"
        ],
        "summary": "List articles (admin)",
        "description": "Returns the full published article list for the editor — live + offline articles when `includeInactive=true`. Public callers should hit sanity-function directly; this endpoint exists so my-page-web can read everything via blog-function without needing sanity-function admin perms.",
        "operationId": "GetArticles",
        "parameters": [
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Include `active=false` articles (admin view)"
          }
        ],
        "responses": {
          "200": {
            "description": "Article list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/getArticlesResultInner"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Articles"
        ],
        "summary": "Create a new blog article",
        "description": "Creates a new blog article in Sanity. The caller is not automatically added as an author — include authors in the body.",
        "operationId": "CreateArticle",
        "requestBody": {
          "description": "The article to create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityCreateArticle"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The newly created article",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Payload of Object",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/articles/{slugOrId}": {
      "get": {
        "tags": [
          "Articles"
        ],
        "summary": "Get a single published article (admin)",
        "description": "Returns the published article — `includeInactive=true` resolves \"Ikke live\" articles by slug too. Mirrors sanity-function's `/v1.0/articles/{slugOrId}` but routed through blog-function so my-page-web doesn't need direct sanity-function permissions.",
        "operationId": "GetPublishedArticle",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The article",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Articles"
        ],
        "summary": "Update a blog article",
        "description": "Partially updates a blog article. Only the article's authors may call this.",
        "operationId": "PatchArticle",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          }
        ],
        "requestBody": {
          "description": "Partial article fields to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityPatchArticle"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The updated article",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Payload of Object",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "Article not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Articles"
        ],
        "summary": "Delete a blog article",
        "description": "Deletes a blog article. Only the article's authors may call this.",
        "operationId": "DeleteArticle",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          }
        ],
        "responses": {
          "200": {
            "description": "The deleted article",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "Article not found",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/articles/{slugOrId}/draft-status": {
      "get": {
        "tags": [
          "Articles"
        ],
        "summary": "Get article with draft status",
        "description": "Returns both the published article and any pending draft so authors can compare states. Only authors may call this.",
        "operationId": "GetArticleWithDraft",
        "parameters": [
          {
            "name": "slugOrId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "The slug or id of the article"
          }
        ],
        "responses": {
          "200": {
            "description": "Snapshot with published + draft sides",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getArticleWithDraftResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "articleInvitationPreviewResponse": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "articleSeriesReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "componentBlocksInner": {
        "type": "object",
        "properties": {
          "actualInstance": {
            "type": "object"
          },
          "isNullable": {
            "type": "boolean"
          },
          "schemaType": {
            "type": "string"
          }
        }
      },
      "componentMedia": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "component.media"
            ],
            "type": "string",
            "default": "component.media"
          },
          "type": {
            "enum": [
              "image",
              "video"
            ],
            "type": "string",
            "default": "image"
          },
          "image": {
            "$ref": "#/components/schemas/componentMediaImage"
          },
          "video": {
            "$ref": "#/components/schemas/muxVideo"
          }
        }
      },
      "componentMediaImage": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "image"
            ],
            "type": "string",
            "default": "image"
          },
          "asset": {
            "$ref": "#/components/schemas/sanityImageAssetReference"
          },
          "crop": {
            "$ref": "#/components/schemas/sanityImageCrop"
          },
          "hotspot": {
            "$ref": "#/components/schemas/sanityImageHotspot"
          },
          "media": {
            "type": "object"
          }
        }
      },
      "customerReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "getArticlesBySlugOrIdResult": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "article"
            ],
            "type": "string",
            "default": "article"
          },
          "active": {
            "type": "boolean"
          },
          "articleSeries": {
            "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
          },
          "authors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityOrderEmployee"
            }
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInner"
            }
          },
          "customer": {
            "$ref": "#/components/schemas/customerReference"
          },
          "live": {
            "type": "string"
          },
          "media": {
            "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
          },
          "metaDescription": {
            "type": "string"
          },
          "nextArticle": {
            "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
          },
          "preview": {
            "type": "string"
          },
          "previousArticle": {
            "$ref": "#/components/schemas/getArticlesBySlugOrIdResultNextArticle"
          },
          "publishedAt": {
            "type": "string"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "subscribersNotified": {
            "type": "boolean"
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
            }
          },
          "title": {
            "type": "string"
          }
        }
      },
      "getArticlesBySlugOrIdResultArticleSeries": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "articleSeries"
            ],
            "type": "string",
            "default": "articleSeries"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "getArticlesBySlugOrIdResultNextArticle": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "article"
            ],
            "type": "string",
            "default": "article"
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerContentInner"
            }
          },
          "media": {
            "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
          },
          "sanityId": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "getArticlesBySlugOrIdResultTechnologiesInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "technology"
            ],
            "type": "string",
            "default": "technology"
          },
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInner"
            }
          },
          "parent": {
            "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "getArticlesResultInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "article"
            ],
            "type": "string",
            "default": "article"
          },
          "active": {
            "type": "boolean"
          },
          "articleSeries": {
            "$ref": "#/components/schemas/getArticlesBySlugOrIdResultArticleSeries"
          },
          "authors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityOrderEmployee"
            }
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInner"
            }
          },
          "customer": {
            "$ref": "#/components/schemas/customerReference"
          },
          "live": {
            "type": "string"
          },
          "media": {
            "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMedia"
          },
          "metaDescription": {
            "type": "string"
          },
          "preview": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "subscribersNotified": {
            "type": "boolean"
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/getArticlesBySlugOrIdResultTechnologiesInner"
            }
          },
          "title": {
            "type": "string"
          }
        }
      },
      "getArticleWithDraftResult": {
        "type": "object",
        "properties": {
          "draft": {
            "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
          },
          "hasDraft": {
            "type": "boolean"
          },
          "hasPublished": {
            "type": "boolean"
          },
          "published": {
            "$ref": "#/components/schemas/getArticlesBySlugOrIdResult"
          },
          "publishedId": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "muxVideo": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "mux.video"
            ],
            "type": "string",
            "default": "mux.video"
          },
          "asset": {
            "$ref": "#/components/schemas/muxVideoAssetReference"
          }
        }
      },
      "muxVideoAssetReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "pageEmployeeOrderInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityKey": {
            "type": "string"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "sanityCreateArticle": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "article"
            ],
            "type": "string",
            "default": "article"
          },
          "active": {
            "type": "boolean"
          },
          "articleSeries": {
            "$ref": "#/components/schemas/articleSeriesReference"
          },
          "authors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pageEmployeeOrderInner"
            }
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInner"
            }
          },
          "customer": {
            "$ref": "#/components/schemas/customerReference"
          },
          "live": {
            "type": "string"
          },
          "media": {
            "$ref": "#/components/schemas/componentMedia"
          },
          "metaDescription": {
            "type": "string"
          },
          "preview": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "subscribersNotified": {
            "type": "boolean"
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
            }
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanityCreateEmployeeTechnologiesInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityKey": {
            "type": "string"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "sanityImageAssetReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "sanityImageCrop": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "sanity.imageCrop"
            ],
            "type": "string",
            "default": "sanity.imageCrop"
          },
          "bottom": {
            "type": "number",
            "format": "double"
          },
          "left": {
            "type": "number",
            "format": "double"
          },
          "right": {
            "type": "number",
            "format": "double"
          },
          "top": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "sanityImageHotspot": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "sanity.imageHotspot"
            ],
            "type": "string",
            "default": "sanity.imageHotspot"
          },
          "height": {
            "type": "number",
            "format": "double"
          },
          "width": {
            "type": "number",
            "format": "double"
          },
          "x": {
            "type": "number",
            "format": "double"
          },
          "y": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "sanityOrderEmployee": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "employee"
            ],
            "type": "string",
            "default": "employee"
          },
          "email": {
            "type": "string"
          },
          "image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "isBot": {
            "type": "boolean",
            "nullable": true
          },
          "isExternal": {
            "type": "boolean",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
            }
          },
          "telephone": {
            "type": "string"
          }
        }
      },
      "sanityPatchArticle": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "article"
            ],
            "type": "string",
            "default": "article",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "articleSeries": {
            "$ref": "#/components/schemas/articleSeriesReference"
          },
          "authors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pageEmployeeOrderInner"
            }
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInner"
            }
          },
          "customer": {
            "$ref": "#/components/schemas/customerReference"
          },
          "live": {
            "type": "string"
          },
          "media": {
            "$ref": "#/components/schemas/componentMedia"
          },
          "metaDescription": {
            "type": "string"
          },
          "preview": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "subscribersNotified": {
            "type": "boolean",
            "nullable": true
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCreateEmployeeTechnologiesInner"
            }
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanityTechnologyWithRelationsArticlesInnerContentInner": {
        "type": "object",
        "properties": {
          "actualInstance": {
            "type": "object"
          },
          "isNullable": {
            "type": "boolean"
          },
          "schemaType": {
            "type": "string"
          }
        }
      },
      "sanityTechnologyWithRelationsArticlesInnerMedia": {
        "type": "object",
        "properties": {
          "actualInstance": {
            "type": "object"
          },
          "isNullable": {
            "type": "boolean"
          },
          "schemaType": {
            "type": "string"
          }
        }
      },
      "sanityTechnologyWithRelationsDescriptionInner": {
        "type": "object",
        "properties": {
          "actualInstance": {
            "type": "object"
          },
          "isNullable": {
            "type": "boolean"
          },
          "schemaType": {
            "type": "string"
          }
        }
      },
      "sanityTechnologyWithRelationsEmployeesInnerTagsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "tag"
            ],
            "type": "string",
            "default": "tag"
          },
          "name": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          }
        }
      },
      "sanityTvCategoryDashboardsInnerBackgroundImage": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "image"
            ],
            "type": "string",
            "default": "image"
          },
          "asset": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
          }
        }
      },
      "sanityTvCategoryDashboardsInnerBackgroundImageAsset": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "sanity.imageAsset"
            ],
            "type": "string",
            "default": "sanity.imageAsset"
          },
          "mimeType": {
            "type": "string"
          },
          "originalFilename": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "slug": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "slug"
            ],
            "type": "string",
            "default": "slug"
          },
          "current": {
            "type": "string"
          },
          "source": {
            "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"
      }
    }
  }
}