{
  "openapi": "3.0.1",
  "info": {
    "title": "Recruitment API",
    "description": "Recruitment management API",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://recruitment.api.test.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/health/{provider}": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Checks an integration's connectivity",
        "operationId": "RecruitmentIntegrationHealth",
        "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates": {
      "get": {
        "tags": [
          "Candidates"
        ],
        "summary": "List recruitment candidates",
        "description": "Returns every candidate document in Sanity — pipeline, applications and archived.",
        "operationId": "ListCandidates",
        "responses": {
          "200": {
            "description": "All candidates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityCandidate"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Create a fresh admin-initiated candidate",
        "description": "Creates a candidate document directly (not via the public application flow). Caller supplies name + status + track.",
        "operationId": "CreateCandidate",
        "parameters": [
          {
            "name": "notifyEmail",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "If false, suppress the welcome email even when the candidate has an email on file. Defaults to true."
          },
          {
            "name": "notifySms",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "If false, suppress the welcome SMS even when the candidate has a phone on file. Defaults to true."
          }
        ],
        "requestBody": {
          "description": "Initial candidate fields",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createCandidateInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The created candidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Created"
          },
          "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}": {
      "get": {
        "tags": [
          "Candidates"
        ],
        "summary": "Get a candidate by id",
        "description": "Returns a fully-hydrated candidate including references, documents, systems and checklists.",
        "operationId": "GetCandidate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of SanityCandidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Candidates"
        ],
        "summary": "Patch candidate fields",
        "description": "Updates any subset of candidate fields — status, buddy, recruiter, systems, checklists, contact info.",
        "operationId": "PatchCandidate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          },
          {
            "name": "notifyEmail",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "If true and the patch changes status, send the candidate the email for the new status"
          },
          {
            "name": "notifySms",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "If true and the patch changes status, send the candidate the SMS for the new status"
          }
        ],
        "requestBody": {
          "description": "Partial candidate fields to update, plus an optional interviewBooking sub-payload that triggers events-function event creation when status moves to an *_INTERVIEW value",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchCandidateRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The patched candidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/promote": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Promote a public job application to the pipeline",
        "description": "Flips fromApplication=false and bumps status to INTRODUCTION so the candidate appears in the admin pipeline.",
        "operationId": "PromoteApplication",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "responses": {
          "200": {
            "description": "The promoted candidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Candidate is not a public job application",
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/reject": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Reject a candidate",
        "description": "Sets status=REJECTED. Optionally sends an admin-edited rejection email and/or SMS — both default to off so the status flip is the only guaranteed side-effect.",
        "operationId": "RejectCandidate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "requestBody": {
          "description": "Optional admin-edited email/SMS draft + per-channel send flags. Omit to reject without notifying.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/rejectCandidateMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payload of SanityCandidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/employees": {
      "get": {
        "tags": [
          "Employees"
        ],
        "summary": "List employees for buddy/recruiter assignment",
        "description": "Lightweight employee list used by the candidate detail page's buddy and recruiter dropdowns.",
        "operationId": "ListRecruitmentEmployees",
        "responses": {
          "200": {
            "description": "Payload of Array of SanityBasicEmployee",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityBasicEmployee"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/job-positions": {
      "get": {
        "tags": [
          "JobPositions"
        ],
        "summary": "List published job positions",
        "description": "Returns every job position document. Used by the admin stillinger page.",
        "operationId": "ListJobPositions",
        "responses": {
          "200": {
            "description": "Payload of Array of SanityJobPosition",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityJobPosition"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/systems": {
      "get": {
        "tags": [
          "Systems"
        ],
        "summary": "List systems used for onboarding checklists",
        "description": "Returns every system document. Used by the candidate detail and systems library pages.",
        "operationId": "ListSystems",
        "responses": {
          "200": {
            "description": "Payload of Array of SanitySystemsInner",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanitySystemsInner"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Systems"
        ],
        "summary": "Create a system",
        "description": "Adds a new system to the onboarding/offboarding system library.",
        "operationId": "CreateSystem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityCreateSystem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of SanitySystemsInner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanitySystemsInner"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/onboarding-chain/automated-system-titles": {
      "get": {
        "tags": [
          "Systems"
        ],
        "summary": "List systems handled end-to-end by the onboarding chain",
        "description": "Returns title + maturity status (stable / beta) so the admin UI can badge systems that need no per-row admin action and flag the experimental ones.",
        "operationId": "GetChainAutomatedSystemTitles",
        "responses": {
          "200": {
            "description": "Payload of Array of ChainAutomatedSystem",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/chainAutomatedSystem"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/license-availability": {
      "get": {
        "tags": [
          "Systems"
        ],
        "summary": "Available Microsoft 365 seats for the configured onboarding SKU",
        "description": "Reads /subscribedSkus and returns enabled / consumed counts for the M365_LICENSE_SKU_ID configured for the onboarding chain. The admin UI uses this to surface a 'buy more licenses' prompt before running the chain — Graph has no purchase API.",
        "operationId": "GetLicenseAvailability",
        "responses": {
          "200": {
            "description": "Payload of LicenseAvailability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/licenseAvailability"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/systems/{id}": {
      "patch": {
        "tags": [
          "Systems"
        ],
        "summary": "Update a system",
        "operationId": "PatchSystem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityPatchSystem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of SanitySystemsInner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanitySystemsInner"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Systems"
        ],
        "summary": "Delete a system",
        "operationId": "DeleteSystem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of SanitySystemsInner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanitySystemsInner"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/onboarding-tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "List every onboarding task",
        "description": "Returns all onboarding tasks with their Portable Text description so the admin can render an editable checklist with contextual notes.",
        "operationId": "ListOnboardingTasks",
        "responses": {
          "200": {
            "description": "Payload of Array of SanityTask",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityTask"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/offboarding-tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "List every offboarding task",
        "description": "Returns all offboarding tasks with their Portable Text description for the admin offboarding checklist.",
        "operationId": "ListOffboardingTasks",
        "responses": {
          "200": {
            "description": "Payload of Array of SanityTask",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityTask"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/onboarding-tasks/with-reminder": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "List onboarding tasks with a Slack reminder",
        "description": "Returns onboarding tasks that have reminderWeeksBefore + reminderSlackChannel set. Used by the admin oppgaver page.",
        "operationId": "ListOnboardingTasksWithReminder",
        "responses": {
          "200": {
            "description": "Payload of Array of SanityOnboardingTask",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityOnboardingTask"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/tasks": {
      "post": {
        "tags": [
          "Tasks"
        ],
        "summary": "Create an onboarding or offboarding task",
        "description": "Adds a new task document to the library with optional Portable Text description and Slack reminder settings.",
        "operationId": "CreateTask",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityCreateTask"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of SanityTask",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityTask"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/tasks/{id}": {
      "patch": {
        "tags": [
          "Tasks"
        ],
        "summary": "Update an onboarding or offboarding task",
        "description": "Partially updates a task. Omitted fields are left unchanged; pass null to clear an optional field.",
        "operationId": "PatchTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sanityPatchTask"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of SanityTask",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityTask"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Tasks"
        ],
        "summary": "Delete a task",
        "description": "Removes a task from the library. Does not touch candidate checklists that reference it.",
        "operationId": "DeleteTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of SanityTask",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityTask"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/generate-offer-pdf": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Generate the 'Tilbud om ansettelse' PDF and store it on the candidate",
        "description": "Renders the Snøkam offer letter, uploads it as a Sanity file asset, and patches candidate.offerPdf to point at it. Stock percentage is taken from candidate.ownership; salary/pension language and the signing chair are fixed template constants. Re-running overwrites the previous PDF. Returns the updated candidate so the caller can read offerPdf.asset.url without an extra refetch.",
        "operationId": "GenerateOfferPdf",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of SanityCandidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/generate-contract-pdf": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Generate the 'Ansettelseskontrakt' PDF and store it on the candidate",
        "description": "Renders the Snøkam employment contract template, uploads it as a Sanity file asset, and patches candidate.contractPdf to point at it. The unsigned contract is what the candidate downloads, signs and the admin then uploads back as candidate.signedContract on the SIGNED status flip. Re-running overwrites the previous PDF. Returns the updated candidate so the caller can read contractPdf.asset.url without an extra refetch.",
        "operationId": "GenerateContractPdf",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of SanityCandidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/upload-signed-contract": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Upload the candidate's signed employment contract",
        "description": "Stores the admin-uploaded signed contract PDF as a Sanity file asset and patches candidate.signedContract. Used by the SIGNED status modal — the candidate-facing /prosess/{id}/signert page renders the resulting PDF inline. Send the file as multipart/form-data under the 'file' field, OR send the raw bytes as the request body with the appropriate Content-Type.",
        "operationId": "UploadSignedContract",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "requestBody": {
          "description": "Signed contract PDF bytes. Multipart 'file' field is also accepted.",
          "content": {
            "application/pdf": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of SanityCandidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/rejection-suggestion": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Draft a personalised rejection email for a candidate",
        "description": "Uses ai-function to generate a Norwegian email + SMS draft based on the candidate, the job position, and optional internal feedback. The admin reviews and edits before deciding whether to send.",
        "operationId": "SuggestRejectionMessage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "requestBody": {
          "description": "Optional internal admin notes used as LLM context (never quoted back to the candidate).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/rejectionSuggestionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payload of RejectionSuggestion",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rejectionSuggestion"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/notification-preview": {
      "get": {
        "tags": [
          "Candidates"
        ],
        "summary": "Preview the email/SMS that would be sent for a candidate event",
        "description": "Renders the email + SMS templates for the given event using the candidate's current data. Use to populate the confirm modal before a status change.",
        "operationId": "GetCandidateNotificationPreview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          },
          {
            "name": "event",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Event name: Created, Introduction, Offer, Signed, Onboarding, UserCreationReview, Offboarding"
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of CandidateNotificationPreview",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/candidateNotificationPreview"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/notification-preview": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Preview a candidate notification before the candidate is created",
        "description": "Used by the create form to render the email/SMS that will be sent on submit, given the in-progress candidate fields. No recruiter resolution — uses the team-fallback signoff.",
        "operationId": "PreviewCandidateNotification",
        "requestBody": {
          "description": "Event + candidate-shaped fields",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/candidateNotificationPreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of CandidateNotificationPreview",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/candidateNotificationPreview"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/offboard/{system}": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Trigger automated offboarding for a single chain step",
        "description": "Mirror of OnboardCandidateSystem for the offboarding chain. Re-runs one named offboarding step (e.g. 'microsoft-365-disable', 'license-revoke', 'github-org-remove').",
        "operationId": "OffboardCandidateSystem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Step slug (e.g. 'microsoft-365-disable')"
          }
        ],
        "responses": {
          "200": {
            "description": "Uniform onboarding result with status + message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/onboardingResult"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/offboard-full": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Run the full automated offboarding chain",
        "description": "Disables the candidate's Microsoft 365 user and triggers an Azure AD → Sanity sync so the employee doc reflects the disabled state.",
        "operationId": "OffboardCandidateFull",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Per-step results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/onboardingResult"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/offboard-full/stream": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Offboarding chain with a live SSE event feed",
        "description": "Streams the offboarding chain step-by-step as Server-Sent Events. Mirrors /onboard-full/stream.",
        "operationId": "OffboardCandidateFullStream",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "No description",
            "x-ms-summary": "SSE stream of OnboardingResult frames"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/onboard/{system}": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Trigger automated onboarding for a single chain step",
        "description": "Re-runs one named onboarding step (slug matches the timeline step ids — e.g. 'microsoft-365', 'license-assignment', 'github-org-invite'). Used by the admin UI's per-step retry button when an earlier chain run partially failed.",
        "operationId": "OnboardCandidateSystem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "System slug (e.g. 'microsoft-365')"
          }
        ],
        "responses": {
          "200": {
            "description": "Uniform onboarding result with status + message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/onboardingResult"
                }
              }
            },
            "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/onboard-full": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Run the full automated onboarding chain",
        "description": "Provisions the candidate's Microsoft 365 user, then triggers an Azure AD → Sanity sync to create the matching employee doc. Returns one OnboardingResult row per step so the admin UI can render a live timeline.",
        "operationId": "OnboardCandidateFull",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "responses": {
          "200": {
            "description": "Per-step results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/onboardingResult"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/onboard-full/stream": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Run the onboarding chain with a live SSE event feed",
        "description": "Same chain as /onboard-full but streams Server-Sent Events (`event: step`) as each step starts (`status:running`) and finishes (`succeeded`/`failed`). Closes with `event: done`. Frontend uses fetch streaming so we can pass a Bearer token; EventSource doesn't support custom headers.",
        "operationId": "OnboardCandidateFullStream",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "No description",
            "x-ms-summary": "SSE stream of OnboardingResult frames"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/candidates/{id}/issue-pin": {
      "post": {
        "tags": [
          "Candidates"
        ],
        "summary": "Generate or set a candidate PIN code and notify them",
        "description": "Issues the six-digit PIN that gates the candidate's tilbud-, signert- and onboarding-side. Pass an empty body to generate a fresh code; pass {\"pin\": \"123456\"} to override with a specific value (handy when the candidate calls in for help). Patches candidate.pin in Sanity and dispatches the dedicated PinReissue notification to candidate.email and candidate.telephone via notifications-function. Returns the updated candidate.",
        "operationId": "IssueCandidatePin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-ms-summary": "Candidate Sanity id"
          }
        ],
        "requestBody": {
          "description": "Optional override",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/issueCandidatePinRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payload of SanityCandidate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/sanityCandidate"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "No description",
            "x-ms-summary": "Invalid PIN value"
          },
          "401": {
            "description": "No description",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "candidateNotificationPreview": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "plainText": {
            "type": "string"
          },
          "htmlBody": {
            "type": "string"
          },
          "smsBody": {
            "type": "string"
          },
          "willSendEmail": {
            "type": "boolean"
          },
          "willSendSms": {
            "type": "boolean"
          },
          "recipientEmail": {
            "type": "string"
          },
          "recipientPhone": {
            "type": "string"
          }
        }
      },
      "candidateNotificationPreviewRequest": {
        "type": "object",
        "properties": {
          "ev": {
            "enum": [
              0,
              1,
              2,
              3,
              4,
              5,
              6,
              7,
              8,
              9,
              10
            ],
            "type": "integer",
            "format": "int32",
            "default": 0
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "telephone": {
            "type": "string"
          },
          "recruiterName": {
            "type": "string"
          },
          "recruiterEmail": {
            "type": "string"
          }
        }
      },
      "chainAutomatedSystem": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "componentBlocksInnerOneOfChildrenInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "span"
            ],
            "type": "string",
            "default": "span"
          },
          "marks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sanityKey": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "componentBlocksInnerOneOfMarkDefsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "link"
            ],
            "type": "string",
            "default": "link"
          },
          "href": {
            "type": "string"
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "createCandidateInput": {
        "type": "object",
        "properties": {
          "status": {
            "enum": [
              "CREATED",
              "INTRODUCTION_INTERVIEW",
              "TECHNICAL_INTERVIEW",
              "SALES_INTERVIEW",
              "OFFER",
              "SIGNED",
              "ONBOARDING",
              "USER_CREATION_REVIEW",
              "OFFBOARDING",
              "REJECTED"
            ],
            "type": "string",
            "default": "CREATED"
          },
          "candidate": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "jobPositionId": {
            "type": "string"
          },
          "recruiter": {
            "type": "string"
          },
          "telephone": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "employeeReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "eventReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "integrationHealthResult": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "interviewBookingBody": {
        "type": "object",
        "properties": {
          "scheduledAt": {
            "type": "string",
            "nullable": true
          },
          "place": {
            "type": "string",
            "nullable": true
          },
          "eventTypeId": {
            "type": "string",
            "nullable": true
          },
          "durationMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "interviewers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/interviewParticipantBody"
            },
            "nullable": true
          }
        },
        "nullable": true
      },
      "interviewParticipantBody": {
        "type": "object",
        "properties": {
          "sanityId": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "issueCandidatePinRequest": {
        "type": "object",
        "properties": {
          "pin": {
            "type": "string"
          }
        }
      },
      "jobPositionReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "licenseAvailability": {
        "type": "object",
        "properties": {
          "skuId": {
            "type": "string"
          },
          "skuPartNumber": {
            "type": "string"
          },
          "enabled": {
            "type": "integer",
            "format": "int32"
          },
          "consumed": {
            "type": "integer",
            "format": "int32"
          },
          "available": {
            "type": "integer",
            "format": "int32"
          },
          "isConfigured": {
            "type": "boolean"
          }
        }
      },
      "onboardingResult": {
        "type": "object",
        "properties": {
          "step": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "preferredEmail": {
            "type": "string"
          },
          "createdAccountId": {
            "type": "string"
          },
          "temporaryPassword": {
            "type": "string"
          }
        }
      },
      "patchCandidateRequestBody": {
        "type": "object",
        "properties": {
          "interviewBooking": {
            "$ref": "#/components/schemas/interviewBookingBody"
          },
          "sanityType": {
            "enum": [
              "candidate"
            ],
            "type": "string",
            "default": "candidate",
            "nullable": true
          },
          "status": {
            "enum": [
              "CREATED",
              "INTRODUCTION_INTERVIEW",
              "TECHNICAL_INTERVIEW",
              "SALES_INTERVIEW",
              "OFFER",
              "SIGNED",
              "ONBOARDING",
              "USER_CREATION_REVIEW",
              "OFFBOARDING",
              "REJECTED"
            ],
            "type": "string",
            "default": "CREATED",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/sanityPatchCandidateAddress"
          },
          "allergies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "applicationLetter": {
            "$ref": "#/components/schemas/sanityPatchCandidateApplicationLetter"
          },
          "applicationOther": {
            "type": "string"
          },
          "bankAccount": {
            "type": "string"
          },
          "birthDate": {
            "type": "string"
          },
          "buddy": {
            "$ref": "#/components/schemas/employeeReference"
          },
          "candidate": {
            "type": "string"
          },
          "contractPdf": {
            "$ref": "#/components/schemas/sanityPatchCandidateApplicationLetter"
          },
          "contractSignDate": {
            "type": "string"
          },
          "contractSigner": {
            "$ref": "#/components/schemas/employeeReference"
          },
          "contractSignerRole": {
            "type": "string"
          },
          "cv": {
            "$ref": "#/components/schemas/sanityPatchCandidateApplicationLetter"
          },
          "education": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "employee": {
            "$ref": "#/components/schemas/employeeReference"
          },
          "fromApplication": {
            "type": "boolean",
            "nullable": true
          },
          "githubUsername": {
            "type": "string"
          },
          "grades": {
            "$ref": "#/components/schemas/sanityPatchCandidateApplicationLetter"
          },
          "interviews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityPatchCandidateInterviewsInner"
            }
          },
          "jobPosition": {
            "$ref": "#/components/schemas/jobPositionReference"
          },
          "linkedin": {
            "type": "string"
          },
          "offboardingChecklist": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateOffboardingChecklistInner"
            }
          },
          "offerPdf": {
            "$ref": "#/components/schemas/sanityPatchCandidateApplicationLetter"
          },
          "onboardingChecklist": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateOffboardingChecklistInner"
            }
          },
          "ownership": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "personalNumber": {
            "type": "string"
          },
          "pin": {
            "type": "string"
          },
          "preferredDisplayName": {
            "type": "string"
          },
          "preferredEmail": {
            "type": "string"
          },
          "profileImage": {
            "$ref": "#/components/schemas/sanityPatchPageMetaImage"
          },
          "recruiter": {
            "$ref": "#/components/schemas/employeeReference"
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateReferencesInner"
            }
          },
          "shortUrl": {
            "type": "string"
          },
          "signedContract": {
            "$ref": "#/components/schemas/sanityPatchCandidateApplicationLetter"
          },
          "snapchatUsername": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "systemsActive": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityPatchCandidateSystemsActiveInner"
            }
          },
          "telephone": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "rejectCandidateMessage": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "plainText": {
            "type": "string"
          },
          "htmlBody": {
            "type": "string"
          },
          "smsBody": {
            "type": "string"
          },
          "sendEmail": {
            "type": "boolean"
          },
          "sendSms": {
            "type": "boolean"
          }
        }
      },
      "rejectionSuggestion": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "plainText": {
            "type": "string"
          },
          "htmlBody": {
            "type": "string"
          },
          "smsBody": {
            "type": "string"
          }
        }
      },
      "rejectionSuggestionRequest": {
        "type": "object",
        "properties": {
          "feedback": {
            "type": "string"
          }
        }
      },
      "sanityAssetSourceData": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "sanity.assetSourceData"
            ],
            "type": "string",
            "default": "sanity.assetSourceData"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "sanityBasicEmployee": {
        "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"
          }
        }
      },
      "sanityCandidate": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "candidate"
            ],
            "type": "string",
            "default": "candidate"
          },
          "status": {
            "enum": [
              "CREATED",
              "INTRODUCTION_INTERVIEW",
              "OFFBOARDING",
              "OFFER",
              "ONBOARDING",
              "REJECTED",
              "SALES_INTERVIEW",
              "SIGNED",
              "TECHNICAL_INTERVIEW",
              "USER_CREATION_REVIEW"
            ],
            "type": "string",
            "default": "CREATED"
          },
          "address": {
            "$ref": "#/components/schemas/sanityCandidateAddress"
          },
          "allergies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "applicationLetter": {
            "$ref": "#/components/schemas/sanityCandidateApplicationLetter"
          },
          "applicationOther": {
            "type": "string"
          },
          "bankAccount": {
            "type": "string"
          },
          "birthDate": {
            "type": "string"
          },
          "buddy": {
            "$ref": "#/components/schemas/sanityEmployeeManager"
          },
          "candidate": {
            "type": "string"
          },
          "contractPdf": {
            "$ref": "#/components/schemas/sanityCandidateApplicationLetter"
          },
          "contractSignDate": {
            "type": "string"
          },
          "contractSigner": {
            "$ref": "#/components/schemas/sanityEmployeeManager"
          },
          "contractSignerRole": {
            "type": "string"
          },
          "cv": {
            "$ref": "#/components/schemas/sanityCandidateApplicationLetter"
          },
          "education": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "employee": {
            "$ref": "#/components/schemas/sanityEmployeeManager"
          },
          "fromApplication": {
            "type": "boolean"
          },
          "githubUsername": {
            "type": "string"
          },
          "grades": {
            "$ref": "#/components/schemas/sanityCandidateApplicationLetter"
          },
          "interviews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateInterviewsInner"
            }
          },
          "jobPosition": {
            "$ref": "#/components/schemas/sanityCandidateJobPosition"
          },
          "linkedin": {
            "type": "string"
          },
          "offboardingChecklist": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateOffboardingChecklistInner"
            }
          },
          "offerPdf": {
            "$ref": "#/components/schemas/sanityCandidateApplicationLetter"
          },
          "onboardingChecklist": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateOffboardingChecklistInner"
            }
          },
          "ownership": {
            "type": "number",
            "format": "double"
          },
          "personalNumber": {
            "type": "string"
          },
          "pin": {
            "type": "string"
          },
          "preferredDisplayName": {
            "type": "string"
          },
          "preferredEmail": {
            "type": "string"
          },
          "profileImage": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "recruiter": {
            "$ref": "#/components/schemas/sanityEmployeeManager"
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityCandidateReferencesInner"
            }
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "shortUrl": {
            "type": "string"
          },
          "signedContract": {
            "$ref": "#/components/schemas/sanityCandidateApplicationLetter"
          },
          "snapchatUsername": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "systemsActive": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanitySystemsInner"
            }
          },
          "telephone": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "sanityCandidateAddress": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "street": {
            "type": "string"
          }
        }
      },
      "sanityCandidateApplicationLetter": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "file"
            ],
            "type": "string",
            "default": "file"
          },
          "asset": {
            "$ref": "#/components/schemas/sanityDocFileAsset"
          },
          "media": {
            "type": "object"
          }
        }
      },
      "sanityCandidateInterviewsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "interview"
            ],
            "type": "string",
            "default": "interview"
          },
          "type": {
            "enum": [
              "INTRODUCTION_INTERVIEW",
              "SALES_INTERVIEW",
              "TECHNICAL_INTERVIEW"
            ],
            "type": "string",
            "default": "INTRODUCTION_INTERVIEW"
          },
          "eventRef": {
            "$ref": "#/components/schemas/eventReference"
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "sanityCandidateJobPosition": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "jobPosition"
            ],
            "type": "string",
            "default": "jobPosition"
          },
          "askForGrades": {
            "type": "boolean"
          },
          "deadline": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInner"
            }
          },
          "employeeTitle": {
            "type": "string"
          },
          "image": {
            "$ref": "#/components/schemas/sanityCreateTvCategoryDashboardsInnerBackgroundImage"
          },
          "metaDescription": {
            "type": "string"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "sanityCandidateOffboardingChecklistInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityKey": {
            "type": "string"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "sanityCandidateReferencesInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "candidateReference"
            ],
            "type": "string",
            "default": "candidateReference"
          },
          "details": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "sanityCreateSystem": {
        "type": "object",
        "properties": {
          "description": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanityCreateTask": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "onboarding",
              "offboarding"
            ],
            "type": "string",
            "default": "onboarding"
          },
          "description": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "reminderSlackChannel": {
            "type": "string"
          },
          "reminderWeeksBefore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanityCreateTvCategoryDashboardsInnerBackgroundImage": {
        "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"
          }
        }
      },
      "sanityDocFileAsset": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "sanity.fileAsset"
            ],
            "type": "string",
            "default": "sanity.fileAsset"
          },
          "altText": {
            "type": "string"
          },
          "assetId": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "extension": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "originalFilename": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "sha1hash": {
            "type": "string"
          },
          "size": {
            "type": "number",
            "format": "double"
          },
          "source": {
            "$ref": "#/components/schemas/sanityAssetSourceData"
          },
          "title": {
            "type": "string"
          },
          "uploadId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeManager": {
        "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"
          }
        }
      },
      "sanityFileAssetReference": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "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"
          }
        }
      },
      "sanityJobPosition": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "jobPosition"
            ],
            "type": "string",
            "default": "jobPosition"
          },
          "askForGrades": {
            "type": "boolean"
          },
          "deadline": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInner"
            }
          },
          "employeeTitle": {
            "type": "string"
          },
          "image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "metaDescription": {
            "type": "string"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "sanityOnboardingTask": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "onboarding"
            ],
            "type": "string",
            "default": "onboarding"
          },
          "remindDaysBefore": {
            "type": "number",
            "format": "double"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityType": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanityPatchCandidateAddress": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "street": {
            "type": "string"
          }
        }
      },
      "sanityPatchCandidateApplicationLetter": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "file"
            ],
            "type": "string",
            "default": "file"
          },
          "asset": {
            "$ref": "#/components/schemas/sanityFileAssetReference"
          },
          "media": {
            "type": "object"
          }
        }
      },
      "sanityPatchCandidateInterviewsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "interview"
            ],
            "type": "string",
            "default": "interview"
          },
          "type": {
            "enum": [
              "INTRODUCTION_INTERVIEW",
              "TECHNICAL_INTERVIEW",
              "SALES_INTERVIEW"
            ],
            "type": "string",
            "default": "INTRODUCTION_INTERVIEW"
          },
          "eventRef": {
            "$ref": "#/components/schemas/eventReference"
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "sanityPatchCandidateSystemsActiveInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityKey": {
            "type": "string"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "sanityPatchPageMetaImage": {
        "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"
          }
        }
      },
      "sanityPatchSystem": {
        "type": "object",
        "properties": {
          "description": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanityPatchTask": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "onboarding",
              "offboarding"
            ],
            "type": "string",
            "default": "onboarding",
            "nullable": true
          },
          "description": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "reminderSlackChannel": {
            "type": "string"
          },
          "reminderWeeksBefore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "sanitySystemsInner": {
        "type": "object",
        "properties": {
          "reminderSlackChannel": {
            "enum": [
              "#spor-økonomi",
              "#spor-rekruttering",
              "#spor-selskapsadmin",
              "#spor-sosialt",
              "#spor-utvikling"
            ],
            "type": "string",
            "default": "#spor-økonomi",
            "nullable": true
          },
          "sanityType": {
            "enum": [
              "system"
            ],
            "type": "string",
            "default": "system"
          },
          "activateUrl": {
            "type": "string"
          },
          "deactivateUrl": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInner"
            }
          },
          "image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "remindDaysBefore": {
            "type": "number",
            "format": "double"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "sanitySystemsInnerDescriptionInner": {
        "type": "object",
        "properties": {
          "listItem": {
            "enum": [
              "bullet",
              "number"
            ],
            "type": "string",
            "default": "bullet",
            "nullable": true
          },
          "sanityType": {
            "enum": [
              "block"
            ],
            "type": "string",
            "default": "block"
          },
          "style": {
            "enum": [
              "blockquote",
              "h1",
              "h2",
              "h3",
              "h4",
              "h5",
              "h6",
              "normal"
            ],
            "type": "string",
            "default": "blockquote",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInnerOneOfChildrenInner"
            }
          },
          "level": {
            "type": "number",
            "format": "double"
          },
          "markDefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInnerOneOfMarkDefsInner"
            }
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "sanityTask": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "onboarding",
              "offboarding"
            ],
            "type": "string",
            "default": "onboarding"
          },
          "description": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "reminderSlackChannel": {
            "type": "string"
          },
          "reminderWeeksBefore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityType": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default": "Default function scope"
            }
          }
        }
      },
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}