{
  "openapi": "3.2.0",
  "info": {
    "title": "API Documentation",
    "version": "1.0.0",
    "description": "This is the OpenAPI specification for your project."
  },
  "servers": [
    {
      "url": "http://localhost:3000/api",
      "description": "Local development server"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "$ZodFormattedError": {},
      "actionReviewSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "auto",
              "approval"
            ]
          },
          "holdHours": {
            "type": "integer",
            "minimum": 1,
            "maximum": 336
          }
        },
        "required": [
          "mode"
        ],
        "additionalProperties": false
      },
      "addableSingleRoleSchema": {
        "type": "string"
      },
      "AddCompanyUser201Data": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "role": {
                "type": "string"
              }
            },
            "required": [
              "email",
              "role"
            ]
          },
          {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "roles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "email",
              "roles"
            ]
          }
        ]
      },
      "AddCompanyUser201Response": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "email",
                      "role"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "roles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "email",
                      "roles"
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AddGradeApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "grade": {
                "type": "string"
              }
            },
            "required": [
              "grade"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AddGradeBodySchema": {
        "type": "object",
        "properties": {
          "grade": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "grade"
        ]
      },
      "AddJobTitleOptionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "titleOptions": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/optionSchema"
                }
              }
            },
            "required": [
              "titleOptions"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AddJobTitleOptionBodySchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Job title to add to the job form options"
          }
        },
        "required": [
          "title"
        ]
      },
      "AddTitleGradeApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "grades": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/gradeOptionSchema"
                }
              }
            },
            "required": [
              "title",
              "grades"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AddTitleGradeBodySchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1
          },
          "grades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/gradeOptionSchema"
            },
            "minItems": 1
          },
          "businessType": {
            "type": "string",
            "enum": [
              "CORPORATE",
              "RETAIL"
            ]
          }
        },
        "required": [
          "title",
          "grades"
        ]
      },
      "addUserBodySchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "name": {
            "type": "string",
            "maxLength": 256
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/addableSingleRoleSchema"
              }
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/mixableRolesSchema"
            },
            "minItems": 1,
            "maxItems": 4
          },
          "password": {
            "type": "string",
            "minLength": 8
          },
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "sendEmailWithCredentials": {
            "type": "boolean"
          },
          "departmentIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        },
        "required": [
          "email"
        ]
      },
      "addUserSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "password": {
            "type": "string"
          },
          "departmentIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        },
        "required": [
          "email",
          "name",
          "roles",
          "departmentIds"
        ]
      },
      "AdminAutomationIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id"
        ]
      },
      "AdminBillingPlanIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Billing plan ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "AdminCatalogItemApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/adminCatalogItemSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminCatalogItemCreateBodySchema": {},
      "AdminCatalogItemsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminCatalogItemSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "adminCatalogItemSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "TRIGGER",
              "CONDITION_FIELD",
              "ACTION"
            ]
          },
          "handlerKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/statusSchema"
          },
          "planCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "defaultOn": {
            "type": "boolean"
          },
          "killSwitch": {
            "type": "boolean"
          },
          "currentVersion": {
            "type": "number"
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "Versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminCatalogItemVersionSchema"
            },
            "description": "Newest first"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "key",
          "kind",
          "handlerKey",
          "status",
          "planCodes",
          "defaultOn",
          "killSwitch",
          "currentVersion",
          "createdByEmail",
          "updatedByEmail",
          "Versions"
        ]
      },
      "AdminCatalogItemUpdateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "item": {
                "$ref": "#/components/schemas/adminCatalogItemSchema"
              },
              "versionCreated": {
                "type": "boolean"
              },
              "pausedRules": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "pausedRuleIds": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  },
                  "notifiedEmails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "unownedRuleIds": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                },
                "required": [
                  "pausedRuleIds",
                  "notifiedEmails",
                  "unownedRuleIds"
                ],
                "description": "Set when the item was disabled: the rules paused and the owners flagged"
              }
            },
            "required": [
              "item",
              "versionCreated",
              "pausedRules"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminCatalogItemUpdateBodySchema": {},
      "adminCatalogItemVersionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "icon": {
            "type": [
              "string",
              "null"
            ]
          },
          "paramPresets": {
            "$ref": "#/components/schemas/json"
          },
          "paramLimits": {
            "$ref": "#/components/schemas/json"
          },
          "requiresApproval": {
            "type": "boolean"
          },
          "highRisk": {
            "type": "boolean"
          },
          "creditCostCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "changeNote": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "version",
          "label",
          "description",
          "category",
          "icon",
          "paramPresets",
          "paramLimits",
          "requiresApproval",
          "highRisk",
          "creditCostCode",
          "changeNote",
          "createdByEmail"
        ]
      },
      "AdminCompanyBillingApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminCompanyBillingSubscriptionSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminCompanyBillingBodySchema": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "integer",
            "minimum": 1
          },
          "status": {
            "type": "string"
          },
          "currentPeriodEnd": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "syncStripePause": {
            "type": "boolean",
            "default": false
          },
          "syncStripeSubscription": {
            "type": "boolean",
            "default": false
          },
          "creditCostSetId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "planId"
        ]
      },
      "AdminCompanyBillingIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Company ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminCompanyBillingSubscriptionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "companyId": {
            "type": "integer"
          },
          "planId": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "stripeCustomerId": {
            "type": [
              "string",
              "null"
            ]
          },
          "stripeSubscriptionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "currentPeriodEnd": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "plan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billingPlanApiSchema"
              }
            ]
          }
        },
        "required": [
          "id",
          "companyId",
          "planId",
          "status"
        ]
      },
      "AdminCompanyCreditLedgerApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminCompanyCreditLedgerPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminCompanyCreditLedgerEntrySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "kind": {
            "type": "string",
            "enum": [
              "hold",
              "debit",
              "hold_release",
              "refund",
              "grant",
              "period_reset",
              "pack_purchase"
            ]
          },
          "actionCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "credits": {
            "type": "integer"
          },
          "includedDelta": {
            "type": "integer"
          },
          "packDelta": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "createdAt",
          "kind",
          "actionCode",
          "credits",
          "includedDelta",
          "packDelta"
        ]
      },
      "adminCompanyCreditLedgerPayloadSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminCompanyCreditLedgerEntrySchema"
            }
          },
          "total": {
            "type": "integer"
          },
          "summary": {
            "$ref": "#/components/schemas/adminCompanyCreditLedgerSummarySchema"
          }
        },
        "required": [
          "rows",
          "total",
          "summary"
        ]
      },
      "adminCompanyCreditLedgerQuerySchema": {
        "type": "object",
        "properties": {
          "page": {
            "description": "Zero-based page index",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Rows per page (default 25, max 100)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "adminCompanyCreditLedgerSummarySchema": {
        "type": "object",
        "properties": {
          "added": {
            "type": "number"
          },
          "deducted": {
            "type": "number"
          }
        },
        "required": [
          "added",
          "deducted"
        ]
      },
      "AdminCompanyCreditsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminCompanyCreditsPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminCompanyCreditsBalanceApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminCompanyCreditsBalanceSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminCompanyCreditsBalanceSchema": {
        "type": "object",
        "properties": {
          "includedCredits": {
            "type": "integer"
          },
          "packCredits": {
            "type": "integer"
          },
          "availableCredits": {
            "type": "number"
          },
          "unlimited": {
            "type": "boolean"
          }
        },
        "required": [
          "includedCredits",
          "packCredits",
          "availableCredits",
          "unlimited"
        ]
      },
      "adminCompanyCreditsBodySchema": {
        "type": "object",
        "properties": {
          "credits": {
            "type": "integer"
          },
          "bucket": {
            "type": "string",
            "enum": [
              "included",
              "pack"
            ],
            "default": "pack"
          },
          "idempotencyKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "credits"
        ]
      },
      "AdminCompanyCreditsIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Company ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminCompanyCreditsPayloadSchema": {
        "type": "object",
        "properties": {
          "applied": {
            "type": "boolean"
          },
          "credits": {
            "type": "integer"
          },
          "bucket": {
            "type": "string",
            "enum": [
              "included",
              "pack"
            ]
          },
          "balance": {
            "type": "object",
            "properties": {
              "includedCredits": {
                "type": "integer"
              },
              "packCredits": {
                "type": "integer"
              },
              "availableCredits": {
                "type": "number"
              },
              "unlimited": {
                "type": "boolean"
              }
            },
            "required": [
              "includedCredits",
              "packCredits",
              "availableCredits",
              "unlimited"
            ]
          }
        },
        "required": [
          "applied",
          "credits",
          "bucket",
          "balance"
        ]
      },
      "AdminCompanyIdParams": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminCreditCostEntrySchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "credits": {
            "type": "integer",
            "minimum": 0
          },
          "unitKind": {
            "type": "string",
            "enum": [
              "per_action",
              "per_n_turns",
              "per_query",
              "per_n_actions"
            ]
          },
          "unitSize": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "title",
          "credits",
          "unitKind",
          "unitSize"
        ]
      },
      "AdminCreditCostsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminCreditCostsPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminCreditCostSetApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminCreditCostSetSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminCreditCostSetCreateBodySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "isDefault": {
            "type": "boolean"
          },
          "unitAmountCents": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "costs": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/adminCreditCostEntrySchema"
            },
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "AdminCreditCostSetIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Credit cost set ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminCreditCostSetSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "isDefault": {
            "type": "boolean"
          },
          "unitAmountCents": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "costs": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/adminCreditCostEntrySchema"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "_count": {
            "type": "object",
            "properties": {
              "plans": {
                "type": "integer"
              },
              "companies": {
                "type": "integer"
              }
            }
          },
          "companyCount": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "code",
          "isDefault",
          "unitAmountCents",
          "costs",
          "createdAt",
          "updatedAt"
        ]
      },
      "AdminCreditCostSetsListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminCreditCostSetSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminCreditCostSetUpdateBodySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "isDefault": {
            "type": "boolean"
          },
          "unitAmountCents": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "costs": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/adminCreditCostEntrySchema"
            },
            "propertyNames": {
              "type": "string"
            }
          }
        }
      },
      "adminCreditCostsPayloadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "isDefault": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string"
          },
          "creditCosts": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/adminCreditCostEntrySchema"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "actionCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "resume_processing",
                "ai_interview",
                "phone_screening",
                "workshort",
                "human_interview_summary",
                "jd_creation",
                "marley_chat",
                "ai_analytics"
              ]
            }
          }
        },
        "required": [
          "id",
          "name",
          "code",
          "isDefault",
          "updatedAt",
          "creditCosts",
          "actionCodes"
        ]
      },
      "adminCreditCostsUpdateBodySchema": {
        "type": "object",
        "properties": {
          "creditCosts": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/adminCreditCostEntrySchema"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "creditCosts"
        ]
      },
      "AdminIndustryTaxonomyMappingsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "mappingSource": {
                      "type": "string"
                    },
                    "from": {
                      "$ref": "#/components/schemas/mappedNodeSchema"
                    },
                    "to": {
                      "$ref": "#/components/schemas/mappedNodeSchema"
                    },
                    "firstSeenAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "mappingSource",
                    "from",
                    "to",
                    "firstSeenAt"
                  ]
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIndustryTaxonomyMappingsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "mappingSource": {
            "type": "string",
            "description": "Default linkedin_naics_2017"
          },
          "search": {
            "type": "string",
            "maxLength": 200,
            "description": "Code prefix or label text on either side"
          },
          "page": {
            "description": "Zero-based page index",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Rows per page (default 50, max 200)",
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        }
      },
      "AdminIndustryTaxonomyNodesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/nodeSchema"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIndustryTaxonomyNodesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "taxonomy": {
            "$ref": "#/components/schemas/industryTaxonomyEnum"
          },
          "search": {
            "type": "string",
            "maxLength": 200,
            "description": "Code prefix, or text in the label or hierarchy"
          },
          "level": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "page": {
            "description": "Zero-based page index",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Rows per page (default 50, max 200)",
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "taxonomy"
        ]
      },
      "AdminIndustryTaxonomyScheduleApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/industryTaxonomyScheduleSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIndustryTaxonomyScheduleBodySchema": {
        "type": "object",
        "properties": {
          "cron": {
            "type": "string",
            "minLength": 9,
            "maxLength": 100,
            "description": "5-field cron expression (UTC), e.g. \"0 3 1 * *\""
          },
          "paused": {
            "type": "boolean"
          }
        },
        "required": [
          "cron",
          "paused"
        ]
      },
      "AdminIndustryTaxonomySummaryApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/summaryPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIndustryTaxonomySyncRunApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/industryTaxonomySyncRunSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIndustryTaxonomySyncRunsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/industryTaxonomySyncRunSchema"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIndustryTaxonomySyncRunsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "page": {
            "description": "Zero-based page index",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Rows per page (default 20, max 100)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "AdminIntegrationReencryptApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/reencryptPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminIntegrationReencryptParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Company ID (0 = global integrations)"
          },
          "integrationId": {
            "type": "string",
            "format": "uuid",
            "description": "Integration ID"
          }
        },
        "required": [
          "id",
          "integrationId"
        ]
      },
      "AdminInterviewQualityIssueIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "InterviewQualityIssue id"
          }
        },
        "required": [
          "id"
        ]
      },
      "AdminInterviewQualityIssueTriageApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/adminInterviewQualityTriagedIssueSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminInterviewQualityIssueTriageBodySchema": {
        "type": "object",
        "properties": {
          "triageStatus": {
            "type": "string",
            "enum": [
              "OPEN",
              "CONFIRMED",
              "FALSE_POSITIVE",
              "FIXED"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000,
            "description": "Optional triage note (empty clears it)"
          }
        },
        "required": [
          "triageStatus"
        ]
      },
      "adminInterviewQualityMatchSchema": {
        "type": "object",
        "properties": {
          "interviewId": {
            "type": "number"
          },
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ]
          },
          "candidateName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "description": "When the screening was created"
          },
          "status": {
            "type": "string",
            "description": "ScreeningInterviewStatus / ScreeningCallStatus"
          }
        },
        "required": [
          "interviewId",
          "channel",
          "candidateName",
          "companyName",
          "jobTitle",
          "createdAt",
          "status"
        ]
      },
      "AdminInterviewQualityReportApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/adminInterviewQualityReportDetailSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "adminInterviewQualityReportDetailSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "interviewId": {
            "type": "number"
          },
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ]
          },
          "trigger": {
            "type": "string",
            "enum": [
              "AUTO",
              "MANUAL"
            ]
          },
          "companyId": {
            "type": "number"
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companySlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "candidateName": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobApplicationId": {
            "type": [
              "number",
              "null"
            ]
          },
          "issueCount": {
            "type": "number"
          },
          "maxSeverity": {
            "$ref": "#/components/schemas/severitySchema"
          },
          "judgeScore": {
            "type": [
              "number",
              "null"
            ]
          },
          "workflowId": {
            "type": "string"
          },
          "screeningInterviewId": {
            "type": [
              "number",
              "null"
            ]
          },
          "screeningCallId": {
            "type": [
              "number",
              "null"
            ]
          },
          "detectorVersion": {
            "type": "string"
          },
          "judgePromptVersion": {
            "type": "string"
          },
          "judgeModel": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "metrics": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "issues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminInterviewQualityReportIssueSchema"
            }
          },
          "interview": {
            "type": "object",
            "properties": {
              "interviewId": {
                "type": "number"
              },
              "channel": {
                "type": "string",
                "enum": [
                  "WEB",
                  "PHONE"
                ]
              },
              "screeningStatus": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "interviewDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "When the screening was created"
              },
              "recordingUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "candidateReportPath": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Recruiter page with the candidate's interview report"
              }
            },
            "required": [
              "interviewId",
              "channel",
              "screeningStatus",
              "interviewDate",
              "recordingUrl",
              "candidateReportPath"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "interviewId",
          "channel",
          "trigger",
          "companyId",
          "companyName",
          "companySlug",
          "candidateName",
          "jobTitle",
          "jobApplicationId",
          "issueCount",
          "maxSeverity",
          "judgeScore",
          "workflowId",
          "screeningInterviewId",
          "screeningCallId",
          "detectorVersion",
          "judgePromptVersion",
          "judgeModel",
          "summary",
          "metrics",
          "issues",
          "interview"
        ]
      },
      "AdminInterviewQualityReportIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "InterviewQualityReport id"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminInterviewQualityReportIssueSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "category": {
            "type": "string"
          },
          "otherLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "severity": {
            "$ref": "#/components/schemas/severitySchema"
          },
          "source": {
            "type": "string",
            "enum": [
              "DETECTOR",
              "JUDGE",
              "BOTH"
            ]
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ]
          },
          "offsetMs": {
            "type": [
              "number",
              "null"
            ]
          },
          "questionIndex": {
            "type": [
              "number",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "explanation": {
            "type": "string"
          },
          "evidence": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "{ quotes?: string[], turnIndexes?: number[], timestamps?: string[], data?: {} }"
          },
          "triageStatus": {
            "type": "string",
            "enum": [
              "OPEN",
              "CONFIRMED",
              "FALSE_POSITIVE",
              "FIXED"
            ]
          },
          "triageNote": {
            "type": [
              "string",
              "null"
            ]
          },
          "triagedBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "triagedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "category",
          "otherLabel",
          "severity",
          "source",
          "confidence",
          "offsetMs",
          "questionIndex",
          "title",
          "explanation",
          "evidence",
          "triageStatus",
          "triageNote",
          "triagedBy",
          "triagedAt"
        ]
      },
      "adminInterviewQualityReportRowSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "interviewId": {
            "type": "number"
          },
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ]
          },
          "trigger": {
            "type": "string",
            "enum": [
              "AUTO",
              "MANUAL"
            ]
          },
          "companyId": {
            "type": "number"
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companySlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "candidateName": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobApplicationId": {
            "type": [
              "number",
              "null"
            ]
          },
          "issueCount": {
            "type": "number"
          },
          "maxSeverity": {
            "$ref": "#/components/schemas/severitySchema"
          },
          "judgeScore": {
            "type": [
              "number",
              "null"
            ]
          },
          "severityCounts": {
            "$ref": "#/components/schemas/severityCountsSchema"
          },
          "openIssueCount": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "createdAt",
          "interviewId",
          "channel",
          "trigger",
          "companyId",
          "companyName",
          "companySlug",
          "candidateName",
          "jobTitle",
          "jobApplicationId",
          "issueCount",
          "maxSeverity",
          "judgeScore",
          "severityCounts",
          "openIssueCount"
        ]
      },
      "AdminInterviewQualityReportsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/adminInterviewQualityReportRowSchema"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminInterviewQualityReportsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Reports created at/after this ISO date or date-time"
          },
          "to": {
            "type": "string",
            "description": "Reports created at/before this ISO date-time (a bare YYYY-MM-DD includes that whole day, UTC)"
          },
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ]
          },
          "trigger": {
            "type": "string",
            "enum": [
              "AUTO",
              "MANUAL"
            ]
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Reports with at least one issue of this category"
          },
          "severity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/severitySchema"
              }
            ],
            "description": "Reports with at least one issue of this severity"
          },
          "source": {
            "type": "string",
            "enum": [
              "DETECTOR",
              "JUDGE",
              "BOTH"
            ],
            "description": "Reports with at least one issue from this source"
          },
          "triageStatus": {
            "type": "string",
            "enum": [
              "OPEN",
              "CONFIRMED",
              "FALSE_POSITIVE",
              "FIXED"
            ],
            "description": "Reports with at least one issue in this triage status"
          },
          "page": {
            "description": "Zero-based page index",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Rows per page (default 25, max 100)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "AdminInterviewQualityResolveApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "matches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/adminInterviewQualityMatchSchema"
                }
              }
            },
            "required": [
              "matches"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminInterviewQualityResolveBodySchema": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string",
            "maxLength": 4096,
            "description": "Interview id; web:123 / phone:456 (web or phone screening id); or a URL / text with interviewId=, screeningId=, screeningCallId=, roomToken= (candidate link) or applicationId="
          },
          "jobId": {
            "type": "string",
            "maxLength": 2048,
            "description": "Job id, or a job page URL (…/jobs/123); used with `candidate`"
          },
          "candidate": {
            "type": "string",
            "maxLength": 320,
            "description": "Candidate's email or phone in that job; used with `jobId`"
          }
        }
      },
      "AdminInterviewQualityRunApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/adminInterviewQualityRunSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminInterviewQualityRunCreateBodySchema": {
        "type": "object",
        "properties": {
          "interviewId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "WEB",
              "PHONE"
            ],
            "description": "Which AI screening (when the interview has both); default the newest"
          }
        },
        "required": [
          "interviewId"
        ]
      },
      "AdminInterviewQualityRunsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/adminInterviewQualityRunSchema"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "adminInterviewQualityRunSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "interviewId": {
            "type": "number"
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "WEB",
              "PHONE"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "COMPLETED_WITH_ISSUES",
              "COMPLETED_NO_ISSUES",
              "FAILED"
            ]
          },
          "workflowId": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestedBy": {
            "type": "string"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "reportId": {
            "type": [
              "number",
              "null"
            ]
          },
          "issueCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "maxSeverity": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ]
          },
          "candidateName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyId": {
            "type": [
              "number",
              "null"
            ]
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobTitle": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "completedAt",
          "interviewId",
          "channel",
          "status",
          "workflowId",
          "requestedBy",
          "error",
          "reportId",
          "issueCount",
          "maxSeverity",
          "candidateName",
          "companyId",
          "companyName",
          "jobTitle"
        ]
      },
      "AdminInterviewQualityRunsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "page": {
            "description": "Zero-based page index",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Rows per page (default 25, max 100)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "adminInterviewQualityTriagedIssueSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "category": {
            "type": "string"
          },
          "otherLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "DETECTOR",
              "JUDGE",
              "BOTH"
            ]
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ]
          },
          "offsetMs": {
            "type": [
              "number",
              "null"
            ]
          },
          "questionIndex": {
            "type": [
              "number",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "explanation": {
            "type": "string"
          },
          "evidence": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "triageStatus": {
            "type": "string",
            "enum": [
              "OPEN",
              "CONFIRMED",
              "FALSE_POSITIVE",
              "FIXED"
            ]
          },
          "triageNote": {
            "type": [
              "string",
              "null"
            ]
          },
          "triagedBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "triagedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "category",
          "otherLabel",
          "severity",
          "source",
          "confidence",
          "offsetMs",
          "questionIndex",
          "title",
          "explanation",
          "evidence",
          "triageStatus",
          "triageNote",
          "triagedBy",
          "triagedAt"
        ]
      },
      "AdminRealtimePreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "audio_url": {
                "type": "string",
                "description": "The preview as a data:audio/wav;base64 URL"
              }
            },
            "required": [
              "audio_url"
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminRealtimePreviewBodySchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "description": "Custom text: spoken by the agent, or the candidate line the agent replies to"
          },
          "mode": {
            "type": "string",
            "enum": [
              "agent_says",
              "candidate_says"
            ],
            "default": "agent_says",
            "description": "agent_says: speak the text; candidate_says: reply to it as the interviewer"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "Language of the preview (e.g. en-IN)"
          },
          "realtime": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "The draft realtime.config (model, voice, emotional_expression, affective_dialog, proactive_audio)"
          }
        },
        "required": [
          "text",
          "mode",
          "language",
          "realtime"
        ]
      },
      "AdminResendDomainApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResendDomainStateSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminResendDomainCreateBodySchema": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "description": "The company sending domain, such as acme.com or mail.acme.com"
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 320,
            "description": "Default sender on the domain; donotreply@<domain> when empty"
          }
        },
        "required": [
          "domain"
        ]
      },
      "AdminResendDomainParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Company ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "AdminResendDomainQuerySchema": {
        "type": "object",
        "properties": {
          "refresh": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "true reads the latest status and DNS records from Resend"
          }
        }
      },
      "adminSignupDraftItemSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companySlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "plan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/adminSignupDraftPlanSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "hasCheckoutSession": {
            "type": "boolean"
          },
          "hasAuthUser": {
            "type": "boolean"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "emailVerified",
          "companyName",
          "companySlug",
          "companyId",
          "status",
          "plan",
          "hasCheckoutSession",
          "hasAuthUser",
          "createdAt",
          "updatedAt"
        ]
      },
      "adminSignupDraftPlanSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "isFreemium": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "code",
          "isFreemium"
        ]
      },
      "AdminSignupDraftsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminSignupDraftItemSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminSystemSettingApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminSystemSettingSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminSystemSettingIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "System setting ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminSystemSettingSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "settingName": {
            "type": "string"
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "screenai",
              "vapi"
            ],
            "description": "The engine that runs calls with this row; a company's engine comes from its engine integration"
          },
          "isDefault": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "config": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "settingName",
          "language",
          "engine",
          "isDefault",
          "createdAt",
          "updatedAt",
          "config"
        ]
      },
      "AdminSystemSettingsListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminSystemSettingSummarySchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminSystemSettingsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "settingName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Only this settingName (e.g. phoneScreeningConfig)"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "Only this language code (e.g. ml-IN)"
          },
          "engine": {
            "type": "string",
            "enum": [
              "screenai",
              "vapi"
            ],
            "description": "Only rows for this engine"
          }
        }
      },
      "adminSystemSettingSummarySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "settingName": {
            "type": "string"
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "screenai",
              "vapi"
            ],
            "description": "The engine that runs calls with this row; a company's engine comes from its engine integration"
          },
          "isDefault": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "settingName",
          "language",
          "engine",
          "isDefault",
          "createdAt",
          "updatedAt"
        ]
      },
      "adminSystemSettingUpdateBodySchema": {
        "type": "object",
        "properties": {
          "config": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "The complete config JSON; validated against the setting template"
          },
          "expectedUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "updatedAt of the setting as loaded; the save is rejected with 409 if it changed"
          }
        },
        "required": [
          "config",
          "expectedUpdatedAt"
        ]
      },
      "AdminSystemSettingVapiVoicesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The voiceId to store in vapi.voices"
                },
                "name": {
                  "type": "string"
                },
                "gender": {
                  "type": "string"
                },
                "detail": {
                  "type": "string",
                  "description": "Accent or description"
                },
                "language": {
                  "type": "string",
                  "description": "ISO 639-1 code the voice speaks"
                },
                "previewUrl": {
                  "type": "string",
                  "description": "Vapi's sample clip, when it has one"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminSystemSettingVapiVoicesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "Vapi voice provider (only tested ones)"
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "description": "Voice model; Deepgram voices are listed for this model only"
          },
          "language": {
            "type": "string",
            "minLength": 2,
            "maxLength": 10,
            "description": "Language code the voice should speak (e.g. hi); those voices come first"
          }
        },
        "required": [
          "provider",
          "model",
          "language"
        ]
      },
      "AdminSystemSettingVoicesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Voice id as stored in config.voice"
                },
                "name": {
                  "type": "string"
                },
                "gender": {
                  "type": "string"
                },
                "detail": {
                  "type": "string",
                  "description": "Style or tone notes"
                },
                "languages": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "BCP-47 codes the voice speaks; omitted when it speaks every language its model does"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminSystemSettingVoicesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "tts",
              "realtime"
            ],
            "description": "Which pipeline block the voices are for"
          },
          "provider": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "description": "The block provider (sarvam, google, azure, ...)"
          },
          "model": {
            "type": "string",
            "maxLength": 100,
            "description": "The block model (Sarvam and Gemini Live voices depend on it)"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "The setting language (e.g. hi-IN); voices that speak it are listed first"
          }
        },
        "required": [
          "kind",
          "provider",
          "language"
        ]
      },
      "AdminSystemTemplateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/adminSystemTemplateSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminSystemTemplateCreateBodySchema": {},
      "AdminSystemTemplatesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminSystemTemplateSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "adminSystemTemplateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/statusSchema"
          },
          "planCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "visibleToCompanies": {
            "type": "boolean",
            "description": "Off: hidden from companies whatever its status and plans"
          },
          "currentVersion": {
            "type": "number"
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "Versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminSystemTemplateVersionSchema"
            },
            "description": "Newest first"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "key",
          "status",
          "planCodes",
          "visibleToCompanies",
          "currentVersion",
          "createdByEmail",
          "updatedByEmail",
          "Versions"
        ]
      },
      "AdminSystemTemplateUpdateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "template": {
                "$ref": "#/components/schemas/adminSystemTemplateSchema"
              },
              "versionCreated": {
                "type": "boolean"
              }
            },
            "required": [
              "template",
              "versionCreated"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AdminSystemTemplateUpdateBodySchema": {},
      "adminSystemTemplateVersionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "$ref": "#/components/schemas/json"
          },
          "actions": {
            "$ref": "#/components/schemas/json"
          },
          "runOnce": {
            "type": "boolean"
          },
          "catalogItemVersions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Catalog item key -> version the template is built on"
          },
          "changeNote": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "version",
          "name",
          "description",
          "category",
          "triggerType",
          "conditions",
          "actions",
          "runOnce",
          "catalogItemVersions",
          "changeNote",
          "createdByEmail"
        ]
      },
      "AdminVoiceAgentPromptApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/adminVoiceAgentPromptSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminVoiceAgentPromptCreateBodySchema": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/channelSchema"
          },
          "kind": {
            "$ref": "#/components/schemas/kindSchema"
          },
          "language": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/languageSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "Required for a language_addendum; omit for a base prompt"
          },
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50000,
            "description": "Base: the template with {{slots}}; addendum: plain instructions"
          },
          "activate": {
            "type": "boolean",
            "description": "Make this version the live one right away"
          }
        },
        "required": [
          "channel",
          "kind",
          "content"
        ]
      },
      "AdminVoiceAgentPromptIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Voice agent prompt ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "adminVoiceAgentPromptSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "channel": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "number"
          },
          "content": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "channel",
          "kind",
          "language",
          "version",
          "content",
          "isActive",
          "createdBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "AdminVoiceAgentPromptsListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/adminVoiceAgentPromptSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "AdminVoiceAgentPromptsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/channelSchema"
              }
            ]
          },
          "kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/kindSchema"
              }
            ]
          },
          "language": {
            "allOf": [
              {
                "$ref": "#/components/schemas/languageSchema"
              }
            ],
            "description": "Only addenda for this language code"
          }
        }
      },
      "AdminVoicePreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "audio_url": {
                "type": "string",
                "description": "The sample as a data:audio/wav;base64 URL"
              }
            },
            "required": [
              "audio_url"
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "adminVoicePreviewBodySchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "tts",
              "realtime"
            ],
            "description": "Which pipeline block the draft is: TTS (S2T2S) or realtime (S2S)"
          },
          "block": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "The draft { type, config } block; validated against the template"
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10,
            "description": "Language to speak the sample in (e.g. ml-IN)"
          },
          "text": {
            "type": "string",
            "maxLength": 500,
            "description": "Custom text to speak as typed; omitted or blank speaks a fixed sample translated to the language"
          }
        },
        "required": [
          "kind",
          "block",
          "language"
        ]
      },
      "AffectedCandidatesParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job posting id"
          }
        },
        "required": [
          "id"
        ]
      },
      "AffectedCandidatesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "newRule": {
            "type": "string",
            "description": "JSON ShortlistRule"
          }
        },
        "required": [
          "newRule"
        ]
      },
      "AffectedCandidatesResponseSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "count": {
            "type": "number"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "success"
        ]
      },
      "AiChartPinApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "dashboardId": {
                "type": "string"
              }
            },
            "required": [
              "dashboardId"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AiChartPinBodySchema": {
        "type": "object",
        "properties": {
          "resultId": {
            "type": "string",
            "pattern": "^ar_[0-9a-f]{8,32}$"
          },
          "chartType": {
            "type": "string",
            "enum": [
              "bar",
              "donut",
              "pie",
              "stackedBar",
              "table"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "question": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [
          "resultId",
          "chartType",
          "title"
        ]
      },
      "AIGeneratedFlagsSchema": {
        "type": "object",
        "properties": {
          "ai": {
            "type": "boolean"
          },
          "phone": {
            "type": "boolean"
          },
          "human": {
            "type": "boolean"
          }
        },
        "description": "Which channels' question AI wrote (generated from a JD or 'Generate with AI') rather than a person"
      },
      "AnalyticsScreenContextSchema": {
        "type": "object",
        "properties": {
          "tab": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "start": {
            "allOf": [
              {
                "$ref": "#/components/schemas/isoDay"
              }
            ]
          },
          "end": {
            "allOf": [
              {
                "$ref": "#/components/schemas/isoDay"
              }
            ]
          }
        },
        "required": [
          "tab"
        ],
        "additionalProperties": false
      },
      "ApiResponse": {
        "type": "object",
        "properties": {},
        "additionalProperties": {}
      },
      "applicantHistoryApplicationSchema": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "number"
          },
          "jobTitle": {
            "type": "string"
          },
          "applicationType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Application source from customFields, e.g. DIRECT, REFERRAL"
          },
          "sourceDetails": {
            "$ref": "#/components/schemas/sourceDetailsSchema"
          },
          "departmentName": {
            "type": "string"
          },
          "recruiterEmail": {
            "type": "string"
          }
        },
        "required": [
          "jobId",
          "jobTitle",
          "sourceDetails",
          "departmentName",
          "recruiterEmail"
        ]
      },
      "applicantHistoryInterviewRoundSchema": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "number"
          },
          "jobApplicationId": {
            "type": "number",
            "description": "The candidate's application on that job (deep-links to its drawer)"
          },
          "jobTitle": {
            "type": "string"
          },
          "round": {
            "type": "number"
          },
          "roundType": {
            "type": "string",
            "enum": [
              "BOTH",
              "INTERVIEW",
              "SCREENING"
            ]
          },
          "departmentName": {
            "type": "string"
          },
          "applicationType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Application source from customFields, e.g. DIRECT, REFERRAL"
          },
          "sourceDetails": {
            "$ref": "#/components/schemas/sourceDetailsSchema"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Screening interview status for SCREENING rounds, round status otherwise"
          },
          "recruiterEmail": {
            "type": "string"
          }
        },
        "required": [
          "jobId",
          "jobApplicationId",
          "jobTitle",
          "round",
          "roundType",
          "departmentName",
          "sourceDetails",
          "recruiterEmail"
        ]
      },
      "applicantHistorySchema": {
        "type": "object",
        "properties": {
          "activeInterviewRounds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/looseObject"
            }
          },
          "totalApplications": {
            "type": "number"
          },
          "totalActiveApplications": {
            "type": "number"
          },
          "candidateHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/looseObject"
            }
          },
          "activeScreeningInterviewRounds": {
            "type": "number"
          },
          "activePanelistInterviewRounds": {
            "type": "number"
          }
        },
        "required": [
          "activeInterviewRounds",
          "totalApplications",
          "totalActiveApplications",
          "candidateHistory",
          "activeScreeningInterviewRounds",
          "activePanelistInterviewRounds"
        ],
        "additionalProperties": true
      },
      "applicantHistorySourceDetailSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "The company's label for the field, e.g. Referee Name"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "description": "One filled-in detail of the application’s Source (referee, consultant, industry referee …)"
      },
      "applicantSchema": {
        "type": "object",
        "properties": {
          "applicationId": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "since": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "applicationId",
          "name",
          "status",
          "since"
        ]
      },
      "applicationQuestionsSchema": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "question": {
              "type": "string",
              "minLength": 1
            },
            "fieldName": {
              "type": "string"
            },
            "fieldType": {
              "type": "string",
              "enum": [
                "YES_NO",
                "DROPDOWN",
                "TEXT",
                "NUMERIC"
              ],
              "default": "YES_NO"
            },
            "isRequired": {
              "type": "boolean",
              "default": false
            },
            "placementOrdering": {
              "type": "number"
            },
            "options": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "id",
            "question",
            "fieldName",
            "fieldType",
            "isRequired"
          ],
          "additionalProperties": true
        }
      },
      "approvalQueuePayloadSchema": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "runId": {
                  "type": "string"
                },
                "ruleId": {
                  "type": "number"
                },
                "ruleName": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "APPROVAL",
                    "SOFT_REJECT"
                  ]
                },
                "action": {
                  "type": "string",
                  "description": "What the action does once approved, e.g. \"Reject\", \"Move to Shortlisted\""
                },
                "applicationId": {
                  "type": "number"
                },
                "applicantName": {
                  "type": "string"
                },
                "jobPostingId": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "jobTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "holdUntil": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "When the action goes ahead on its own unless rejected"
                }
              },
              "required": [
                "id",
                "runId",
                "ruleId",
                "ruleName",
                "kind",
                "action",
                "applicationId",
                "applicantName",
                "jobPostingId",
                "jobTitle",
                "createdAt",
                "holdUntil"
              ]
            }
          }
        },
        "required": [
          "total",
          "items"
        ]
      },
      "archiveCompanyBodySchema": {
        "type": "object",
        "properties": {
          "archived": {
            "type": "boolean"
          },
          "updateAccessFlag": {
            "type": "boolean"
          }
        },
        "required": [
          "archived"
        ]
      },
      "AssessmentCompetencyContextSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "definition": {
            "type": "string",
            "maxLength": 2000
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 2000
            },
            "maxItems": 50,
            "description": "AI interview and phone questions of every row of this competency"
          }
        },
        "required": [
          "name",
          "questions"
        ]
      },
      "AssessmentLevelSchema": {
        "type": "string",
        "enum": [
          "ENTRY",
          "MID",
          "SENIOR"
        ]
      },
      "AssessmentParamByIdQuerySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "AssessmentParamChannelFieldsSchema": {
        "type": "object",
        "properties": {
          "enableAIQuestionGeneration": {
            "type": "boolean",
            "description": "AI interview: true = personalized per candidate from their resume (the question below is the base; blank = AI writes it); false = the question below is spoken as written"
          },
          "defaultQuestion": {
            "type": "string",
            "description": "AI interview question: asked as written, or the personalization base"
          },
          "defaultAnswer": {
            "type": "string",
            "description": "AI interview reference answer"
          },
          "enableAIHumanQuestionGeneration": {
            "type": "boolean",
            "description": "Human interview: true = AI-generated questions; false = the question below is shown to the interviewer"
          },
          "defaultHumanQuestion": {
            "type": "string",
            "description": "Human interview question (used when enableAIHumanQuestionGeneration is false)"
          },
          "defaultHumanAnswer": {
            "type": "string",
            "description": "Human interview reference answer"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ],
            "description": "Phone screening question type"
          },
          "defaultPhoneQuestion": {
            "type": "string",
            "description": "Phone screening question"
          },
          "defaultPhoneAnswer": {
            "type": "string",
            "description": "Phone screening reference answer"
          }
        }
      },
      "AssessmentParamDeleteResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AssessmentParamSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AssessmentParamDetailResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AssessmentParamSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AssessmentParamIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Assessment parameter id"
          }
        },
        "required": [
          "id"
        ]
      },
      "AssessmentParamQuestionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Legacy question id — ignored; kept for older clients"
          },
          "question": {
            "type": "string",
            "minLength": 1,
            "description": "Question text"
          },
          "answer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reference answer used by AI to evaluate responses"
          }
        },
        "required": [
          "question"
        ]
      },
      "AssessmentParamResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AssessmentParamSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AssessmentParamSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "parameter": {
            "type": "string"
          },
          "definition": {
            "type": [
              "string",
              "null"
            ]
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "question": {
                  "type": "string"
                },
                "answer": {
                  "type": "string"
                }
              }
            }
          },
          "defaultQuestion": {
            "type": "string"
          },
          "defaultAnswer": {
            "type": "string"
          },
          "defaultHumanQuestion": {
            "type": "string"
          },
          "defaultHumanAnswer": {
            "type": "string"
          },
          "defaultPhoneQuestion": {
            "type": "string"
          },
          "defaultPhoneAnswer": {
            "type": "string"
          },
          "enableAIQuestionGeneration": {
            "type": "boolean"
          },
          "enableAIHumanQuestionGeneration": {
            "type": "boolean"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ]
          },
          "aiGenerated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AIGeneratedFlagsSchema"
              }
            ]
          },
          "ratings": {
            "type": "array",
            "items": {}
          },
          "departmentIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "linkedTemplateCount": {
            "type": "number"
          },
          "linkedTemplates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "string",
                      "format": "date-time"
                    }
                  ]
                },
                "isPhoneScreening": {
                  "type": "boolean",
                  "description": "The template uses this competency for phone screening"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          },
          "linkedJobs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "title": {
                  "type": "string"
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "string",
                      "format": "date-time"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "title"
              ]
            }
          }
        },
        "required": [
          "id"
        ]
      },
      "AssessmentParamsListDataSchema": {
        "type": "object",
        "properties": {
          "AssessmentParams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentParamSchema"
            }
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "AssessmentParams",
          "page",
          "limit",
          "total"
        ]
      },
      "AssessmentParamsListQuerySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          },
          "page": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Zero-based page index (default 0)"
          },
          "limit": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Page size (default 10)"
          },
          "search": {
            "type": "string",
            "description": "Filter by competency name"
          },
          "sortModel": {
            "type": "string",
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"parameter\",\"sort\":\"asc\"}]; sortable fields: parameter, definition"
          },
          "skipPagination": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", returns all parameters without pagination"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "AssessmentParamsListResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AssessmentParamsListDataSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AssessmentTemplateByIdQuerySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "AssessmentTemplateDeleteResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "level": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AssessmentLevelSchema"
                  }
                ]
              },
              "departmentId": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "companyId": {
                "type": "number"
              },
              "companySlug": {
                "type": "string"
              },
              "parameterOrder": {
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              "AssessmentParameters": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AssessmentTemplateParameterResponseSchema"
                }
              },
              "linkedJobCount": {
                "type": "number"
              },
              "createdAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              }
            },
            "required": [
              "id"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AssessmentTemplateIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Assessment template id"
          }
        },
        "required": [
          "id"
        ]
      },
      "AssessmentTemplateParameterResponseSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "parameter": {
            "type": "string"
          },
          "definition": {
            "type": [
              "string",
              "null"
            ]
          },
          "defaultQuestion": {
            "type": "string"
          },
          "defaultAnswer": {
            "type": "string"
          },
          "defaultHumanQuestion": {
            "type": "string"
          },
          "defaultHumanAnswer": {
            "type": "string"
          },
          "defaultPhoneQuestion": {
            "type": "string"
          },
          "defaultPhoneAnswer": {
            "type": "string"
          },
          "isAIScreening": {
            "type": "boolean"
          },
          "isPanelistInterview": {
            "type": "boolean"
          },
          "isPhoneScreening": {
            "type": "boolean"
          },
          "enableAIQuestionGeneration": {
            "type": "boolean"
          },
          "enableAIHumanQuestionGeneration": {
            "type": "boolean"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ]
          },
          "aiGenerated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AIGeneratedFlagsSchema"
              }
            ]
          },
          "aiWeight": {
            "type": [
              "number",
              "null"
            ],
            "description": "AI interview question weightage of this row (INT-1153); null = not set"
          },
          "phoneWeight": {
            "type": [
              "number",
              "null"
            ],
            "description": "Subjective phone question weightage of this row (INT-1153); null = not set"
          },
          "ratings": {
            "type": "array",
            "items": {}
          },
          "extraQuestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateExtraQuestionSchema"
            },
            "description": "Further rows of this competency in this template (INT-1132), in row order; `parameterOrder` repeats the competency's id once per row"
          }
        }
      },
      "AssessmentTemplateParameterSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "parameter": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Competency name"
          },
          "definition": {
            "type": [
              "string",
              "null"
            ]
          },
          "defaultQuestion": {
            "type": "string"
          },
          "defaultAnswer": {
            "type": "string"
          },
          "defaultHumanQuestion": {
            "type": "string"
          },
          "defaultHumanAnswer": {
            "type": "string"
          },
          "defaultPhoneQuestion": {
            "type": "string"
          },
          "defaultPhoneAnswer": {
            "type": "string"
          },
          "isAIScreening": {
            "type": "boolean"
          },
          "isPanelistInterview": {
            "type": "boolean"
          },
          "isPhoneScreening": {
            "type": "boolean"
          },
          "enableAIQuestionGeneration": {
            "type": "boolean"
          },
          "enableAIHumanQuestionGeneration": {
            "type": "boolean"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ]
          },
          "aiGenerated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AIGeneratedFlagsSchema"
              }
            ],
            "description": "Which of this row's questions AI wrote; a channel left out keeps its stored mark unless its text changed (INT-1153)"
          },
          "aiWeight": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1,
            "description": "AI interview question weightage 0..1 (INT-1153); null = not set, every AI interview question gets an equal share"
          },
          "phoneWeight": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1,
            "description": "Subjective phone question weightage 0..1 (INT-1153); null = not set, equal shares"
          }
        },
        "required": [
          "parameter"
        ]
      },
      "AssessmentTemplateResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AssessmentTemplateSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AssessmentTemplateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AssessmentLevelSchema"
              }
            ]
          },
          "departmentId": {
            "type": [
              "number",
              "null"
            ]
          },
          "companyId": {
            "type": "number"
          },
          "companySlug": {
            "type": "string"
          },
          "parameterOrder": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "AssessmentParameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentTemplateParameterResponseSchema"
            }
          },
          "linkedJobCount": {
            "type": "number"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "required": [
          "id"
        ]
      },
      "AssessmentTemplatesListDataSchema": {
        "type": "object",
        "properties": {
          "AssessmentTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentTemplateSchema"
            }
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "AssessmentTemplates",
          "page",
          "limit",
          "total"
        ]
      },
      "AssessmentTemplatesListQuerySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          },
          "page": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Zero-based page index (default 0)"
          },
          "limit": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Page size (default 10)"
          },
          "search": {
            "type": "string",
            "description": "Filter by template name"
          },
          "sortModel": {
            "type": "string",
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]; sortable fields: name, createdAt, updatedAt"
          },
          "skipPagination": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", returns all templates without pagination"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "AssessmentTemplatesListResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AssessmentTemplatesListDataSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AuthoredAutomationRuleApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AuthoredAutomationRuleSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AuthoredAutomationRuleListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthoredAutomationRuleSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AuthoredAutomationRuleSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "scope": {
            "type": "string",
            "description": "JOB or PERSONAL"
          },
          "jobPostingId": {
            "type": [
              "number",
              "null"
            ]
          },
          "ownerEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "$ref": "#/components/schemas/json"
          },
          "actions": {
            "$ref": "#/components/schemas/json"
          },
          "runOnce": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "pausedReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Set when the system paused the rule"
          },
          "version": {
            "type": "number"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "scope",
          "jobPostingId",
          "ownerEmail",
          "name",
          "description",
          "triggerType",
          "conditions",
          "actions",
          "runOnce",
          "enabled",
          "pausedReason",
          "version",
          "updatedAt"
        ]
      },
      "AuthProfileApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/authProfileUserPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AuthProfileQueryParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "authProfileUserPayloadSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "picture": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "email",
          "picture"
        ]
      },
      "automationActionSchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/moveToStageParamsSchema"
              },
              "review": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/actionReviewSchema"
                  }
                ]
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/setSubStatusParamsSchema"
              },
              "review": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/actionReviewSchema"
                  }
                ]
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/notifyParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/scheduleAiInterviewParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/schedulePhoneScreenParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/notifyRecruitersParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/inviteHumanInterviewParamsSchema"
              },
              "review": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/actionReviewSchema"
                  }
                ]
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/generateSummaryParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          }
        ]
      },
      "automationActionsSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/automationStepSchema"
        },
        "minItems": 1,
        "maxItems": 20
      },
      "AutomationActivityApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/automationActivityPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "automationActivityPayloadSchema": {
        "type": "object",
        "properties": {
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string"
          },
          "totals": {
            "type": "object",
            "properties": {
              "runs": {
                "type": "number"
              },
              "moved": {
                "type": "number"
              },
              "awaitingApproval": {
                "type": "number"
              },
              "undone": {
                "type": "number"
              }
            },
            "required": [
              "runs",
              "moved",
              "awaitingApproval",
              "undone"
            ]
          },
          "byRule": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ruleId": {
                  "type": "number"
                },
                "ruleName": {
                  "type": "string"
                },
                "runs": {
                  "type": "number"
                },
                "moved": {
                  "type": "number"
                },
                "awaitingApproval": {
                  "type": "number"
                },
                "stages": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/stageCountSchema"
                  }
                }
              },
              "required": [
                "ruleId",
                "ruleName",
                "runs",
                "moved",
                "awaitingApproval",
                "stages"
              ]
            }
          },
          "byStage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/stageCountSchema"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "runId": {
                  "type": "string"
                },
                "ruleId": {
                  "type": "number"
                },
                "ruleName": {
                  "type": "string"
                },
                "applicationId": {
                  "type": "number"
                },
                "applicantName": {
                  "type": "string"
                },
                "jobPostingId": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "jobTitle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "stages": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "status": {
                  "type": "string"
                },
                "awaitingApproval": {
                  "type": "boolean"
                },
                "at": {
                  "type": "string"
                },
                "undone": {
                  "type": "boolean"
                },
                "undoable": {
                  "type": "boolean"
                }
              },
              "required": [
                "runId",
                "ruleId",
                "ruleName",
                "applicationId",
                "applicantName",
                "jobPostingId",
                "jobTitle",
                "stages",
                "status",
                "awaitingApproval",
                "at",
                "undone",
                "undoable"
              ]
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "since",
          "until",
          "totals",
          "byRule",
          "byStage",
          "items",
          "lines"
        ]
      },
      "AutomationActivityQueryParamsSchema": {
        "type": "object",
        "properties": {
          "since": {
            "type": "string",
            "format": "date-time",
            "description": "Start of the period (ISO 8601), e.g. the viewer’s local midnight"
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "description": "End of the period (ISO 8601); defaults to now"
          }
        },
        "required": [
          "since"
        ]
      },
      "AutomationApplicationParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "applicationId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "companySlug",
          "applicationId"
        ]
      },
      "AutomationApprovalDecisionsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "requested": {
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              "skipped": {
                "$ref": "#/components/schemas/skippedSchema"
              },
              "failed": {
                "$ref": "#/components/schemas/skippedSchema"
              }
            },
            "required": [
              "requested",
              "skipped",
              "failed"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationApprovalDecisionsBodySchema": {
        "type": "object",
        "properties": {
          "approvalIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 100
          },
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "reject"
            ]
          }
        },
        "required": [
          "approvalIds",
          "decision"
        ]
      },
      "AutomationApprovalsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/approvalQueuePayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationCompanySlugParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "AutomationJobParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "jobId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "companySlug",
          "jobId"
        ]
      },
      "AutomationJobRuleParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "jobId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "ruleId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "companySlug",
          "jobId",
          "ruleId"
        ]
      },
      "AutomationPreviewFactsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "applicationId": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "facts": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "applicationId",
                "name",
                "facts"
              ]
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationPreviewFactsBodySchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "description": "Newest applications to load (default 200)"
          }
        },
        "required": [
          "jobPostingId"
        ]
      },
      "automationRolePermissionsSchema": {
        "type": "object",
        "properties": {
          "roles": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/roleAutomationPermissionSchema"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/automationRoleSchema"
            }
          }
        },
        "additionalProperties": false
      },
      "automationRoleSchema": {
        "type": "string"
      },
      "AutomationRuleCheckApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AutomationRuleCheckSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRuleCheckSchema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/problem"
            }
          },
          "catalogItemVersions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/json"
              },
              {
                "type": "null"
              }
            ],
            "description": "Catalog versions the rule would be stamped with"
          },
          "requiresApproval": {
            "type": "boolean"
          },
          "highRisk": {
            "type": "boolean"
          },
          "creditCostCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "ok",
          "problems",
          "catalogItemVersions",
          "requiresApproval",
          "highRisk",
          "creditCostCodes"
        ]
      },
      "AutomationRuleDeletedApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRuleDraftBodySchema": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "job",
                  "personal"
                ]
              },
              "jobPostingId": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "type"
            ],
            "description": "{type: \"job\", jobPostingId} for a job rule, {type: \"personal\"} for your own rule"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string",
            "description": "A trigger key from GET /api/automations/options"
          },
          "conditions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Condition tree: {all|any: [...]}, {not: ...} or {field, op, value}"
          },
          "actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "[{type, params}]"
          },
          "runOnce": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean",
            "description": "Defaults to false"
          }
        },
        "required": [
          "target",
          "name",
          "triggerType",
          "conditions",
          "actions"
        ]
      },
      "AutomationRuleIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id"
        ]
      },
      "AutomationRuleListQuerySchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "description": "Only this job's rules (plus your personal rules)",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        }
      },
      "AutomationRuleOptionsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AutomationRuleOptionsSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRuleOptionsSchema": {
        "type": "object",
        "properties": {
          "canCreateJobRules": {
            "type": "boolean"
          },
          "canCreatePersonalRules": {
            "type": "boolean"
          },
          "operators": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "limits": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/json"
                          }
                        ]
                      }
                    },
                    "required": [
                      "key",
                      "label",
                      "type"
                    ]
                  }
                },
                "allowsCustomFields": {
                  "type": "boolean",
                  "description": "application.custom_fields.<name> may be used too"
                }
              },
              "required": [
                "key",
                "label",
                "description",
                "fields",
                "allowsCustomFields"
              ]
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "catalogKey": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "presetParams": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/json"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Params this item fixes"
                },
                "paramLimits": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/json"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "requiresApproval": {
                  "type": "boolean"
                },
                "highRisk": {
                  "type": "boolean"
                },
                "creditCostCode": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "paramsSchema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/json"
                    }
                  ],
                  "description": "JSON Schema of the action params"
                }
              },
              "required": [
                "catalogKey",
                "type",
                "label",
                "description",
                "presetParams",
                "paramLimits",
                "requiresApproval",
                "highRisk",
                "creditCostCode",
                "paramsSchema"
              ]
            }
          }
        },
        "required": [
          "canCreateJobRules",
          "canCreatePersonalRules",
          "operators",
          "triggers",
          "actions"
        ]
      },
      "AutomationRulePatchBodySchema": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ]
      },
      "AutomationRulePreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AutomationRulePreviewSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRulePreviewBodySchema": {
        "type": "object",
        "properties": {
          "triggerType": {
            "type": "string",
            "description": "Checks the condition fields against this trigger"
          },
          "conditions": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "conditions"
        ]
      },
      "AutomationRulePreviewSchema": {
        "type": "object",
        "properties": {
          "evaluated": {
            "type": "number",
            "description": "Newest applicants looked at (up to 200)"
          },
          "matched": {
            "type": "number"
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "applicationId": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "applicationId",
                "name"
              ]
            }
          }
        },
        "required": [
          "evaluated",
          "matched",
          "matches"
        ]
      },
      "AutomationRunExplanationListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationRunExplanationSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRunExplanationSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "ruleId": {
            "type": "number"
          },
          "ruleName": {
            "type": "string"
          },
          "ruleVersion": {
            "type": "number"
          },
          "triggerType": {
            "type": [
              "string",
              "null"
            ]
          },
          "applicationId": {
            "type": [
              "number",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "matched": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "conditionResult": {
            "$ref": "#/components/schemas/json"
          },
          "actionResults": {
            "$ref": "#/components/schemas/json"
          },
          "chainDepth": {
            "type": "number"
          },
          "summary": {
            "type": "string",
            "description": "The run in words"
          }
        },
        "required": [
          "runId",
          "createdAt",
          "finishedAt",
          "ruleId",
          "ruleName",
          "ruleVersion",
          "triggerType",
          "applicationId",
          "status",
          "matched",
          "skipReason",
          "conditionResult",
          "actionResults",
          "chainDepth",
          "summary"
        ]
      },
      "AutomationRunHistoryApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationRunHistoryEntrySchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRunHistoryEntrySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "ruleId": {
            "type": "number"
          },
          "ruleName": {
            "type": "string"
          },
          "ruleVersion": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "SUCCEEDED",
              "FAILED",
              "SKIPPED"
            ]
          },
          "matched": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "conditions_not_met | self_trigger | max_chain_depth | run_once | catalog_unavailable | ..."
          },
          "conditionResult": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Evaluator trace: each leaf's field, op, value, actual and result"
          },
          "actionResults": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "[{index, type, status, result | error}]"
          }
        },
        "required": [
          "id",
          "createdAt",
          "finishedAt",
          "ruleId",
          "ruleName",
          "ruleVersion",
          "status",
          "matched",
          "skipReason",
          "conditionResult",
          "actionResults"
        ]
      },
      "AutomationRunsQuerySchema": {
        "type": "object",
        "properties": {
          "applicationId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "ruleId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "runId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "AutomationRunUndoApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "string"
              },
              "restored": {
                "$ref": "#/components/schemas/stageStateSchema"
              }
            },
            "required": [
              "runId",
              "restored"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationRunUndoParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "automationSettingsPatchSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "enabled": {
                  "type": "object"
                },
                "requireApproval": {
                  "type": "object"
                },
                "limits": {
                  "type": "object"
                }
              },
              "required": [
                "enabled",
                "requireApproval",
                "limits"
              ],
              "additionalProperties": false
            },
            "propertyNames": {
              "$ref": "#/components/schemas/catalogKey"
            }
          },
          "allowAutoReject": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "callingHours": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/callingHoursSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "roles": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "jobRules": {
                  "type": "object"
                },
                "personalRules": {
                  "type": "object"
                },
                "actions": {
                  "type": "object"
                }
              },
              "required": [
                "jobRules",
                "personalRules",
                "actions"
              ],
              "additionalProperties": false
            },
            "propertyNames": {
              "$ref": "#/components/schemas/automationRoleSchema"
            }
          }
        },
        "additionalProperties": false
      },
      "AutomationStarterTemplatesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/AutomationStarterTemplatesSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationStarterTemplatesSchema": {
        "type": "object",
        "properties": {
          "company": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "triggerType": {
                  "type": "string"
                },
                "conditions": {
                  "$ref": "#/components/schemas/json"
                },
                "actions": {
                  "$ref": "#/components/schemas/json"
                },
                "runOnce": {
                  "type": "boolean"
                },
                "id": {
                  "type": "number"
                },
                "version": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "description",
                "triggerType",
                "conditions",
                "actions",
                "runOnce",
                "id",
                "version"
              ]
            },
            "description": "The company's templates the user can use"
          },
          "system": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "triggerType": {
                  "type": "string"
                },
                "conditions": {
                  "$ref": "#/components/schemas/json"
                },
                "actions": {
                  "$ref": "#/components/schemas/json"
                },
                "runOnce": {
                  "type": "boolean"
                },
                "key": {
                  "type": "string"
                },
                "version": {
                  "type": "number"
                },
                "category": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "name",
                "description",
                "triggerType",
                "conditions",
                "actions",
                "runOnce",
                "key",
                "version",
                "category"
              ]
            },
            "description": "Intalent templates the user can use"
          }
        },
        "required": [
          "company",
          "system"
        ]
      },
      "automationStepSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/automationActionSchema"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/delayParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "params": {
                "$ref": "#/components/schemas/waitForEventParamsSchema"
              }
            },
            "required": [
              "type",
              "params"
            ],
            "additionalProperties": false
          }
        ]
      },
      "AutomationSummariesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomationSummarySchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationSummariesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "default": 5,
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": [
          "limit"
        ]
      },
      "AutomationSummaryParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id"
        ]
      },
      "AutomationSummaryReadApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "updated": {
                "type": "number",
                "description": "0 when it was already read or is not yours"
              }
            },
            "required": [
              "updated"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "AutomationSummarySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "ruleId": {
            "type": [
              "number",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Markdown: ## headings, - bullets, **bold**"
          },
          "deliveries": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "readAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "ruleId",
          "title",
          "body",
          "deliveries",
          "readAt"
        ]
      },
      "AutomationTemplateParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "companySlug",
          "id"
        ]
      },
      "AutomationTemplatesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "triggerType": {
                  "type": "string"
                },
                "cron": {
                  "type": "string"
                },
                "windowHours": {
                  "type": "number",
                  "description": "Hours each summary covers: 24 for daily, 168 for weekly"
                },
                "defaultChannels": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "key",
                "name",
                "description",
                "triggerType",
                "cron",
                "windowHours",
                "defaultChannels"
              ]
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "BackendChatbotConfig": {
        "type": "object",
        "properties": {
          "job_submission_required_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "is_required": {
                  "type": "boolean"
                },
                "is_custom_field": {
                  "type": "boolean"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "label",
                      "value"
                    ]
                  }
                },
                "validation_rules": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "dependent_fields": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "is_required": {
                          "type": "boolean"
                        },
                        "is_custom_field": {
                          "type": "boolean"
                        },
                        "options": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "label",
                              "value"
                            ]
                          }
                        },
                        "validation_rules": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "name",
                        "type",
                        "label",
                        "description",
                        "is_required",
                        "is_custom_field",
                        "options",
                        "validation_rules"
                      ]
                    }
                  }
                }
              },
              "required": [
                "name",
                "type",
                "label",
                "description",
                "is_required",
                "is_custom_field",
                "options",
                "validation_rules",
                "dependent_fields"
              ]
            }
          }
        },
        "required": [
          "job_submission_required_fields"
        ]
      },
      "BackendChatbotDependentFieldConfig": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "is_required": {
            "type": "boolean"
          },
          "is_custom_field": {
            "type": "boolean"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "label",
                "value"
              ]
            }
          },
          "validation_rules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "type",
          "label",
          "description",
          "is_required",
          "is_custom_field",
          "options",
          "validation_rules"
        ]
      },
      "BackendChatbotFieldConfig": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "is_required": {
            "type": "boolean"
          },
          "is_custom_field": {
            "type": "boolean"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "label",
                "value"
              ]
            }
          },
          "validation_rules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dependent_fields": {
            "type": "object",
            "properties": {},
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "is_required": {
                    "type": "boolean"
                  },
                  "is_custom_field": {
                    "type": "boolean"
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "label",
                        "value"
                      ]
                    }
                  },
                  "validation_rules": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "name",
                  "type",
                  "label",
                  "description",
                  "is_required",
                  "is_custom_field",
                  "options",
                  "validation_rules"
                ]
              }
            }
          }
        },
        "required": [
          "name",
          "type",
          "label",
          "description",
          "is_required",
          "is_custom_field",
          "options",
          "validation_rules",
          "dependent_fields"
        ]
      },
      "backendJobPostingExtrasSchema": {
        "type": "object",
        "properties": {
          "searchableStandardizedRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "functionalDomains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "skillsEmbedding": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "rolesEmbedding": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "summaryEmbedding": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "standardizedRolesEmbedding": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        }
      },
      "BillingCapacityBlockApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingCapacityBlockPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingCapacityBlockBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "blockSize": {
            "type": "integer"
          },
          "permanent": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "companySlug",
          "blockSize"
        ]
      },
      "billingCapacityBlockPayloadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "blockSize": {
            "type": "integer"
          },
          "scope": {
            "type": "string",
            "enum": [
              "period",
              "permanent"
            ]
          },
          "periodKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "blockSize",
          "scope",
          "periodKey",
          "createdAt"
        ]
      },
      "billingCapacityGrantSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "blockSize": {
            "type": "integer"
          },
          "scope": {
            "type": "string",
            "enum": [
              "period",
              "permanent"
            ]
          },
          "periodKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestedByUserId": {
            "type": "integer"
          },
          "requestedByName": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestedByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "required": [
          "id",
          "blockSize",
          "scope",
          "periodKey",
          "requestedByUserId",
          "createdAt"
        ]
      },
      "BillingChangePlanApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingChangePlanPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingChangePlanBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "planId": {
            "type": "integer",
            "minimum": 1
          },
          "interval": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "default": "month"
          }
        },
        "required": [
          "companySlug",
          "planId"
        ]
      },
      "billingChangePlanPayloadSchema": {
        "type": "object",
        "properties": {
          "checkoutUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "updated": {
            "type": "boolean"
          },
          "planId": {
            "type": "integer"
          }
        },
        "required": [
          "checkoutUrl",
          "updated"
        ]
      },
      "BillingCompanySlugQuerySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "description": "Company slug; falls back to session company when omitted"
          }
        }
      },
      "BillingCompleteCheckoutApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "purpose": {
                "type": "string",
                "enum": [
                  "upgrade",
                  "credit_pack"
                ]
              },
              "applied": {
                "type": "boolean"
              },
              "planId": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "packSize": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "purpose",
              "applied"
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingCompleteCheckoutBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "sessionId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "companySlug",
          "sessionId"
        ]
      },
      "billingCreditCostEntryPortableSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "credits": {
            "type": "integer",
            "minimum": 0
          },
          "unitKind": {
            "type": "string",
            "enum": [
              "per_action",
              "per_n_turns",
              "per_query",
              "per_n_actions"
            ]
          },
          "unitSize": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "title",
          "credits",
          "unitKind",
          "unitSize"
        ]
      },
      "billingCreditCostSetPortableSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "isDefault": {
            "type": "boolean"
          },
          "unitAmountCents": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "costs": {
            "$ref": "#/components/schemas/costsRecordSchema"
          }
        },
        "required": [
          "name",
          "costs"
        ]
      },
      "BillingCreditCostsExportApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingCreditCostsExportSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingCreditCostsExportSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "enum": [
              1,
              2
            ]
          },
          "exportedAt": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "creditCosts": {
            "allOf": [
              {
                "$ref": "#/components/schemas/costsRecordSchema"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "isDefault": {
            "type": "boolean"
          },
          "sets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billingCreditCostSetPortableSchema"
            }
          }
        },
        "required": [
          "version"
        ]
      },
      "BillingCreditCostsImportApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingCreditCostsImportSummarySchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingCreditCostsImportSummarySchema": {
        "type": "object",
        "properties": {
          "updated": {
            "type": "integer"
          },
          "created": {
            "type": "integer"
          },
          "actionCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "resume_processing",
                "ai_interview",
                "phone_screening",
                "workshort",
                "human_interview_summary",
                "jd_creation",
                "marley_chat",
                "ai_analytics"
              ]
            }
          },
          "setIds": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "required": [
          "updated",
          "created",
          "actionCodes",
          "setIds"
        ]
      },
      "billingCreditPackBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "packSize": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "companySlug",
          "packSize"
        ]
      },
      "BillingPlanApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingPlanApiSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingPlanApiSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "stripeProductId": {
            "type": [
              "string",
              "null"
            ]
          },
          "stripePriceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "stripeAnnualPriceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditGrantMode": {
            "type": [
              "string",
              "null"
            ]
          },
          "creditCarryoverEnabled": {
            "type": "boolean"
          },
          "creditCostSetId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "annualDiscountPercent": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "trialPeriodDays": {
            "type": "integer"
          },
          "limits": {
            "$ref": "#/components/schemas/billingPlanLimitsSchema"
          },
          "featureFlags": {
            "$ref": "#/components/schemas/billingPlanFeatureFlagsSchema"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "_count": {
            "type": "object",
            "properties": {
              "subscriptions": {
                "type": "integer"
              }
            },
            "required": [
              "subscriptions"
            ]
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "description",
          "isActive",
          "isPublic",
          "isFreemium",
          "amountCents",
          "unlimitedCredits",
          "currency",
          "interval",
          "trialPeriodDays",
          "limits",
          "featureFlags",
          "createdAt",
          "updatedAt"
        ]
      },
      "billingPlanCreateSchema": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/planCodeSchema"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4000
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditGrantMode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/creditGrantModeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "creditCarryoverEnabled": {
            "type": "boolean"
          },
          "creditCostSetId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0
          },
          "annualDiscountPercent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "default": 20
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/intervalSchema"
              }
            ]
          },
          "trialPeriodDays": {
            "type": "integer",
            "minimum": 0
          },
          "limits": {
            "$ref": "#/components/schemas/limitsSchema"
          },
          "featureFlags": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "billingPlanFeatureFlagsSchema": {
        "type": "object",
        "additionalProperties": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "string"
            },
            {
              "type": "number"
            }
          ]
        },
        "propertyNames": {
          "type": "string"
        }
      },
      "billingPlanLimitsSchema": {
        "type": "object",
        "properties": {
          "maxUsers": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxActiveJobs": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxJobsTotal": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxScreeningInterviewsPerMonth": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxScreeningInterviewsTotal": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxHumanInterviewsPerMonth": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxJobDescriptions": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxAssessments": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxResumeParsesPerMonth": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "billingPlanPortableSchema": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/planCodeSchema"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4000
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditGrantMode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/creditGrantModeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "creditCarryoverEnabled": {
            "type": "boolean"
          },
          "creditCostSetCode": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 64
          },
          "annualDiscountPercent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/intervalSchema"
              }
            ]
          },
          "trialPeriodDays": {
            "type": "integer",
            "minimum": 0
          },
          "limits": {
            "$ref": "#/components/schemas/limitsSchema"
          },
          "featureFlags": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "BillingPlansExportApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingPlansExportSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingPlansExportSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "enum": [
              1
            ]
          },
          "exportedAt": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billingPlanPortableSchema"
            },
            "minItems": 1
          }
        },
        "required": [
          "version",
          "plans"
        ]
      },
      "BillingPlansImportApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingPlansImportSummarySchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingPlansImportSummarySchema": {
        "type": "object",
        "properties": {
          "created": {
            "type": "integer"
          },
          "updated": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "created",
                    "updated"
                  ]
                }
              },
              "required": [
                "code",
                "action"
              ]
            }
          },
          "failures": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "error"
              ]
            }
          }
        },
        "required": [
          "created",
          "updated",
          "failed",
          "results",
          "failures"
        ]
      },
      "BillingPlansListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billingPlanApiSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingPlanUpdateSchema": {
        "type": "object",
        "properties": {
          "code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/planCodeSchema"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 4000
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditGrantMode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/creditGrantModeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "creditCarryoverEnabled": {
            "type": "boolean"
          },
          "creditCostSetId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0
          },
          "annualDiscountPercent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "interval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/intervalSchema"
              }
            ]
          },
          "trialPeriodDays": {
            "type": "integer",
            "minimum": 0
          },
          "limits": {
            "$ref": "#/components/schemas/limitsSchema"
          },
          "featureFlags": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "propertyNames": {
              "type": "string"
            }
          }
        }
      },
      "BillingPortalApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/billingPortalPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingPortalBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "returnUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "billingPortalPayloadSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "url"
        ]
      },
      "BillingPublicPlansApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billingPublicPlanSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingPublicPlanSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "annualDiscountPercent": {
            "type": "integer"
          },
          "annualAmountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "trialPeriodDays": {
            "type": "integer"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "isUpgrade": {
            "type": "boolean"
          },
          "isDowngrade": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "isFreemium",
          "amountCents",
          "currency",
          "interval",
          "trialPeriodDays",
          "isCurrent",
          "isUpgrade",
          "isDowngrade"
        ]
      },
      "BillingSubscriptionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/billingSubscriptionSummarySchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingSubscriptionPlanSummarySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditCarryoverEnabled": {
            "type": "boolean"
          },
          "annualDiscountPercent": {
            "type": "integer"
          },
          "annualAmountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/billingPlanLimitsSchema"
          }
        },
        "required": [
          "name",
          "code",
          "isFreemium",
          "amountCents",
          "currency",
          "interval",
          "limits"
        ]
      },
      "billingSubscriptionSummarySchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "currentPeriodEnd": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "billingInterval": {
            "type": "string"
          },
          "canOpenPortal": {
            "type": "boolean"
          },
          "plan": {
            "$ref": "#/components/schemas/billingSubscriptionPlanSummarySchema"
          }
        },
        "required": [
          "status",
          "currentPeriodEnd",
          "canOpenPortal",
          "plan"
        ]
      },
      "BillingUsageApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/billingUsagePayloadSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "billingUsageCountsSchema": {
        "type": "object",
        "properties": {
          "maxUsers": {
            "type": "number"
          },
          "maxActiveJobs": {
            "type": "number"
          },
          "maxJobsTotal": {
            "type": "number"
          },
          "maxScreeningInterviewsPerMonth": {
            "type": "number"
          },
          "maxScreeningInterviewsTotal": {
            "type": "number"
          },
          "maxHumanInterviewsPerMonth": {
            "type": "number"
          },
          "maxJobDescriptions": {
            "type": "number"
          },
          "maxAssessments": {
            "type": "number"
          },
          "maxResumeParsesPerMonth": {
            "type": "number"
          }
        }
      },
      "billingUsagePayloadSchema": {
        "type": "object",
        "properties": {
          "limits": {
            "$ref": "#/components/schemas/billingPlanLimitsSchema"
          },
          "usage": {
            "$ref": "#/components/schemas/billingUsageCountsSchema"
          },
          "periodKey": {
            "type": "string"
          },
          "periodStart": {
            "type": "string"
          },
          "periodEnd": {
            "type": "string"
          },
          "canOpenPortal": {
            "type": "boolean"
          },
          "contractBilling": {
            "type": "boolean"
          },
          "creditUnitAmountCents": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "resumeCapacity": {
            "type": "object",
            "properties": {
              "includedUnits": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "permanentGrantUnits": {
                "type": "integer"
              },
              "periodGrantUnits": {
                "type": "integer"
              },
              "manualRaiseUnits": {
                "type": "integer"
              },
              "effectiveLimit": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "billableProcessed": {
                "type": "integer"
              },
              "estimatedBlockChargeUnits": {
                "type": "integer"
              },
              "estimatedBlockChargeCents": {
                "type": "integer"
              },
              "estimatedOverageUnits": {
                "type": "integer"
              },
              "estimatedOverageCents": {
                "type": "integer"
              },
              "amountCents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "grants": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/billingCapacityGrantSchema"
                }
              }
            },
            "required": [
              "includedUnits",
              "permanentGrantUnits",
              "periodGrantUnits",
              "manualRaiseUnits",
              "effectiveLimit",
              "billableProcessed",
              "estimatedBlockChargeUnits",
              "estimatedBlockChargeCents",
              "estimatedOverageUnits",
              "estimatedOverageCents",
              "amountCents",
              "grants"
            ]
          }
        },
        "required": [
          "limits",
          "usage",
          "periodKey",
          "periodStart",
          "periodEnd",
          "canOpenPortal",
          "contractBilling"
        ]
      },
      "booleanMap": {
        "type": "object",
        "additionalProperties": {
          "type": "boolean"
        },
        "propertyNames": {
          "type": "string"
        }
      },
      "bulkDeleteCandidatesSchema": {
        "type": "object",
        "properties": {
          "candidateIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "auth_user_id": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "candidateIds"
        ]
      },
      "bulkDeleteJobApplicationsSchema": {
        "type": "object",
        "properties": {
          "applicationIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "auth_user_id": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "applicationIds"
        ]
      },
      "bulkDeleteJobPostingsSchema": {
        "type": "object",
        "properties": {
          "jobPostingIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "auth_user_id": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "jobPostingIds"
        ]
      },
      "bulkReprocessJobApplicationsSchema": {
        "type": "object",
        "properties": {
          "applicationIds": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 1
          },
          "auth_user_id": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "applicationIds"
        ]
      },
      "BulkScreeningCallApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/bulkScreeningCallPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "BulkScreeningCallBodySchema": {
        "type": "object",
        "properties": {
          "jobApplicationIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "minItems": 1,
            "maxItems": 50,
            "description": "Applications to schedule a call for (up to 50)"
          },
          "scheduledAt": {
            "type": "string",
            "description": "ISO instant to place the calls at; defaults to now. Ignored with scheduleMode 'ask_candidate'"
          },
          "scheduleMode": {
            "type": "string",
            "enum": [
              "ask_candidate"
            ],
            "description": "ask_candidate: ask each candidate on WhatsApp when to call instead of picking a time (INT-978)"
          },
          "timezone": {
            "type": "string",
            "description": "Scheduler's IANA zone; the fallback for candidates whose phone number doesn't identify one"
          },
          "candidateTimezone": {
            "type": "string",
            "description": "Recruiter-picked candidate IANA zone; honoured only when scheduling a single application"
          },
          "candidatePhone": {
            "type": "string",
            "description": "Recruiter-edited number to call (E.164); honoured only when scheduling a single application. The application's phone is left as is. Refused (403) in production"
          },
          "candidatePhones": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "description": "Recruiter-edited numbers to call (E.164) by job application id, for any number of applications; wins over candidatePhone. The applications' phones are left as is. Refused (403) in production"
          },
          "override": {
            "type": "boolean",
            "description": "Reschedule applications that already have a screening call"
          }
        },
        "required": [
          "jobApplicationIds"
        ]
      },
      "bulkScreeningCallPayloadSchema": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/bulkScreeningCallResultSchema"
            }
          },
          "summary": {
            "type": "object",
            "properties": {
              "total": {
                "type": "number"
              },
              "scheduledCount": {
                "type": "number"
              },
              "skippedCount": {
                "type": "number"
              },
              "failedCount": {
                "type": "number"
              },
              "scheduledAt": {
                "type": "string"
              }
            },
            "required": [
              "total",
              "scheduledCount",
              "skippedCount",
              "failedCount",
              "scheduledAt"
            ]
          }
        },
        "required": [
          "results",
          "summary"
        ]
      },
      "bulkScreeningCallResultSchema": {
        "type": "object",
        "properties": {
          "jobApplicationId": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "skipped",
              "failed"
            ]
          },
          "screeningCallId": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ]
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "jobApplicationId",
          "status"
        ]
      },
      "bulkUpdateJobApplicationsSchema": {
        "type": "object",
        "properties": {
          "applicationIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "status": {
            "type": "string"
          },
          "sendNotification": {
            "type": "boolean"
          },
          "auth_user_id": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "applicationIds",
          "status"
        ]
      },
      "callingHours": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "HH:MM"
          },
          "end": {
            "type": "string",
            "description": "HH:MM"
          }
        },
        "required": [
          "start",
          "end"
        ]
      },
      "callingHoursSchema": {
        "type": "object",
        "properties": {
          "start": {
            "$ref": "#/components/schemas/clockTime"
          },
          "end": {
            "$ref": "#/components/schemas/clockTime"
          }
        },
        "required": [
          "start",
          "end"
        ],
        "additionalProperties": false
      },
      "CallQualityMetricsSchema": {
        "type": "object",
        "properties": {
          "durationSeconds": {
            "type": "number",
            "description": "Seconds of the candidate audio stream observed"
          },
          "audioLossPercent": {
            "type": "number",
            "description": "% of expected candidate audio that was missing or gapped"
          },
          "jitterMs": {
            "type": [
              "number",
              "null"
            ],
            "description": "p95 arrival jitter of the candidate audio, ms"
          },
          "longestGapSeconds": {
            "type": "number",
            "description": "Longest stretch with no candidate audio arriving"
          },
          "delayedAudioSeconds": {
            "type": "number",
            "description": "Total time candidate audio arrived late / bunched"
          },
          "speechLevelDbfs": {
            "type": [
              "number",
              "null"
            ],
            "description": "Typical candidate speech loudness, dBFS"
          },
          "silentPercent": {
            "type": "number",
            "description": "% of the call the candidate line was silent or near-silent"
          },
          "clippingPercent": {
            "type": "number",
            "description": "% of candidate samples at full scale (distortion)"
          }
        },
        "required": [
          "durationSeconds",
          "audioLossPercent",
          "jitterMs",
          "longestGapSeconds",
          "delayedAudioSeconds",
          "speechLevelDbfs",
          "silentPercent",
          "clippingPercent"
        ]
      },
      "CallQualitySchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "enum": [
              1
            ]
          },
          "rating": {
            "type": "string",
            "enum": [
              "good",
              "fair",
              "poor"
            ]
          },
          "score": {
            "type": "number",
            "description": "1.0–5.0, Plivo-style (4–5 excellent, 3–4 good, 2–3 fair, 1–2 poor)"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "broken_audio | choppy_audio | audio_lag | one_way_audio | low_audio_level | audio_distortion"
          },
          "metrics": {
            "$ref": "#/components/schemas/CallQualityMetricsSchema"
          }
        },
        "required": [
          "version",
          "rating",
          "score",
          "issues",
          "metrics"
        ]
      },
      "callRecordingSchema": {
        "type": "object",
        "properties": {
          "attemptId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The call (attempt); null for a single recording with no call list"
          },
          "number": {
            "type": "integer",
            "description": "1 for the first call, 2 for the redial that continued it, ..."
          },
          "url": {
            "type": "string",
            "description": "Signed URL of this call recording (audio/mpeg)"
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO time the call started"
          },
          "endedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO time the call ended"
          },
          "endedReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the call ended (Vapi's endedReason, e.g. customer-ended-call)"
          }
        },
        "required": [
          "attemptId",
          "number",
          "url",
          "startedAt",
          "endedAt",
          "endedReason"
        ]
      },
      "CandidateConversationActionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "ok": {
                "type": "boolean"
              }
            },
            "required": [
              "ok"
            ],
            "additionalProperties": true,
            "description": "`ok` plus the tool result, or `reason` when it was refused"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CandidateConversationActionBodySchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "action"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "get_context"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "get_job_description"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "set_timezone"
                ]
              },
              "iana": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "description": "IANA timezone, e.g. Asia/Dubai"
              }
            },
            "required": [
              "action",
              "iana"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "propose_slot"
                ]
              },
              "start": {
                "type": "string",
                "minLength": 10,
                "maxLength": 40,
                "description": "ISO start of one of the offered slots"
              }
            },
            "required": [
              "action",
              "start"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "book_slot"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "send_verification_code"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "request_other_times"
                ]
              },
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000,
                "description": "The candidate's preferred times, in their words"
              }
            },
            "required": [
              "action",
              "note"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "ask_cancel_confirmation"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "cancel_interview"
                ]
              }
            },
            "required": [
              "action"
            ]
          }
        ]
      },
      "CandidateConversationIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "CandidateConversation id"
          }
        },
        "required": [
          "id"
        ]
      },
      "CandidateReportPdfQueryParamsSchema": {
        "type": "object",
        "properties": {
          "jobApplicationId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job application to report on"
          }
        },
        "required": [
          "jobApplicationId"
        ]
      },
      "CandidateReportPdfResponseSchema": {
        "type": "string",
        "description": "Full candidate report PDF"
      },
      "CandidatesListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/candidatesListPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "candidatesListPayloadSchema": {
        "type": "object",
        "properties": {
          "candidates": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "page": {
            "type": "number",
            "description": "Echoed 1-based page index"
          },
          "limit": {
            "type": "number"
          },
          "total": {
            "type": [
              "number",
              "null"
            ],
            "description": "Total match count — null when includeTotal=false"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "nextPage": {
            "type": [
              "number",
              "null"
            ]
          },
          "exactMatchCount": {
            "type": "number",
            "description": "New-search only: count of exact token matches"
          },
          "stemmedMatchCount": {
            "type": "number",
            "description": "New-search only: count of stemmed token matches"
          }
        },
        "required": [
          "candidates",
          "page",
          "limit",
          "total",
          "hasNextPage",
          "nextPage"
        ]
      },
      "CandidatesListQueryParamsSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "1-based page index (default 1) — unlike the grid endpoints, this one is 1-based"
          },
          "limit": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Page size (default 10)"
          },
          "includeTotal": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Defaults to true when omitted; \"false\" skips the count and returns total: null"
          },
          "sortModel": {
            "type": "string",
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]"
          },
          "filterModel": {
            "type": "string",
            "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]). logicOperator is normalized to and/or"
          },
          "externalCandidateId": {
            "type": "string",
            "description": "Filter to a single external candidate id"
          },
          "useLegacySearch": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "The legacy (vector) search path is ON unless explicitly \"false\" — only relevant when quickFilterValues are present"
          },
          "useReranker": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", re-ranks the top new-search results through the reranker service"
          }
        }
      },
      "CandidateUploadBulkDeleteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Rows removed"
              }
            },
            "required": [
              "count"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CandidateUploadBulkDeleteBodySchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 500,
            "description": "Upload rows to remove; rows still processing are ignored"
          }
        },
        "required": [
          "ids"
        ]
      },
      "CandidateUploadDecisionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Duplicate rows the decision applied to"
              },
              "waiting": {
                "type": "number",
                "description": "Rows not updated yet because the upload they match is still being processed"
              }
            },
            "required": [
              "count",
              "waiting"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CandidateUploadDecisionBodySchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 500,
            "description": "DUPLICATE upload rows; other rows are ignored"
          },
          "decision": {
            "type": "string",
            "enum": [
              "update",
              "skip"
            ],
            "description": "update = process anyway and overwrite the matched profile; skip = drop the upload"
          }
        },
        "required": [
          "ids",
          "decision"
        ]
      },
      "CandidateUploadReprocessApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Rows queued again"
              }
            },
            "required": [
              "count"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CandidateUploadReprocessBodySchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 500,
            "description": "Failed or invalid-resume upload rows; other rows are ignored"
          }
        },
        "required": [
          "ids"
        ]
      },
      "candidateUploadRowSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          },
          "resumeUrl": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "uploadedBy": {
            "type": "string"
          },
          "processingStatus": {
            "$ref": "#/components/schemas/uploadStatusSchema"
          },
          "processingError": {
            "type": [
              "string",
              "null"
            ]
          },
          "isValidResume": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "firstName": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastName": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "candidateId": {
            "type": [
              "number",
              "null"
            ]
          },
          "duplicateOfCandidateId": {
            "type": [
              "number",
              "null"
            ]
          },
          "duplicateOfUploadId": {
            "type": [
              "number",
              "null"
            ]
          },
          "isDismissed": {
            "type": "boolean"
          },
          "isStalled": {
            "type": "boolean",
            "description": "Still processing but no progress for over an hour; can be reprocessed or removed"
          },
          "duplicateOf": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "candidate",
                  "upload"
                ],
                "description": "An existing talent pool profile, or another resume still being processed"
              },
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "id",
              "name",
              "email"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "companyId",
          "resumeUrl",
          "fileName",
          "uploadedBy",
          "processingStatus",
          "processingError",
          "isValidResume",
          "firstName",
          "lastName",
          "email",
          "phone",
          "candidateId",
          "duplicateOfCandidateId",
          "duplicateOfUploadId",
          "isDismissed",
          "isStalled",
          "duplicateOf"
        ]
      },
      "CandidateUploadsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/candidateUploadRowSchema"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CandidateUploadsCreateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number"
              }
            },
            "required": [
              "count"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CandidateUploadsCreateBodySchema": {
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "resumeUrl": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1024,
                  "description": "Stored resume URL (from the file upload step)"
                },
                "fileName": {
                  "type": "string",
                  "maxLength": 512,
                  "default": ""
                }
              },
              "required": [
                "resumeUrl",
                "fileName"
              ]
            },
            "minItems": 1,
            "maxItems": 50
          }
        },
        "required": [
          "files"
        ]
      },
      "CandidateUploadsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "string",
            "description": "1-based page (default 1)"
          },
          "pageSize": {
            "type": "string",
            "description": "Rows per page, 1-100 (default 25)"
          },
          "search": {
            "type": "string",
            "maxLength": 200,
            "description": "Matches file name, candidate name or email"
          },
          "statuses": {
            "type": "string",
            "description": "Comma-separated processing statuses to filter by"
          }
        }
      },
      "CareerThemeApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/careerThemePayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CareerThemeBodySchema": {
        "type": "object",
        "properties": {
          "layout": {
            "type": "string",
            "enum": [
              "classic",
              "minimal",
              "directory",
              "grid"
            ],
            "description": "Layout preset; classic is the original career page"
          },
          "primaryColor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brand colour as #rrggbb; null for the default colours"
          },
          "radius": {
            "type": "string",
            "enum": [
              "sharp",
              "default",
              "round"
            ],
            "description": "Corner style"
          }
        },
        "required": [
          "layout",
          "primaryColor",
          "radius"
        ]
      },
      "CareerThemeLogoColorApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "color": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Suggested brand colour as #rrggbb; null when the logo has no clear colour"
              }
            },
            "required": [
              "color"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CareerThemeLogoColorParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "CareerThemeParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "careerThemePayloadSchema": {
        "type": "object",
        "properties": {
          "layout": {
            "type": "string",
            "enum": [
              "classic",
              "minimal",
              "directory",
              "grid"
            ]
          },
          "primaryColor": {
            "type": [
              "string",
              "null"
            ]
          },
          "radius": {
            "type": "string",
            "enum": [
              "sharp",
              "default",
              "round"
            ]
          }
        },
        "required": [
          "layout",
          "primaryColor",
          "radius"
        ]
      },
      "careerThemeSettingsSchema": {
        "type": "object",
        "properties": {
          "layout": {
            "type": "string",
            "enum": [
              "classic",
              "minimal",
              "directory",
              "grid"
            ]
          },
          "primaryColor": {
            "type": [
              "string",
              "null"
            ]
          },
          "radius": {
            "type": "string",
            "enum": [
              "sharp",
              "default",
              "round"
            ]
          }
        },
        "required": [
          "layout",
          "primaryColor",
          "radius"
        ]
      },
      "catalogItemAvailabilitySchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "BETA",
              "LIVE",
              "DISABLED"
            ]
          },
          "planCodes": {
            "$ref": "#/components/schemas/planCodesSchema"
          },
          "defaultOn": {
            "type": "boolean"
          },
          "killSwitch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "catalogItemCreateSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "TRIGGER",
              "CONDITION_FIELD",
              "ACTION"
            ]
          },
          "handlerKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "version": {
            "$ref": "#/components/schemas/catalogItemVersionFieldsSchema"
          },
          "changeNote": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          }
        },
        "required": [
          "key",
          "kind",
          "handlerKey",
          "version"
        ],
        "additionalProperties": false
      },
      "catalogItemVersionFieldsSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 5000
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 64
          },
          "icon": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 64
          },
          "paramPresets": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/scalar"
                },
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/scalar"
                  },
                  "maxItems": 500
                }
              ]
            },
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "default": {}
          },
          "paramLimits": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/paramLimitSchema"
            },
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "default": {}
          },
          "requiresApproval": {
            "type": "boolean",
            "default": false
          },
          "highRisk": {
            "type": "boolean",
            "default": false
          },
          "creditCostCode": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "resume_processing",
              "ai_interview",
              "phone_screening",
              "workshort",
              "human_interview_summary",
              "jd_creation",
              "marley_chat",
              "ai_analytics"
            ]
          }
        },
        "required": [
          "label",
          "paramPresets",
          "paramLimits",
          "requiresApproval",
          "highRisk"
        ],
        "additionalProperties": false
      },
      "catalogKey": {
        "type": "string"
      },
      "channelSchema": {
        "type": "string",
        "enum": [
          "phone",
          "web"
        ],
        "description": "Interview channel"
      },
      "clockTime": {
        "type": "string",
        "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
      },
      "CommunicationTemplateActivateDefaultBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          },
          "purpose": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "description": "Defaults to email"
          }
        },
        "required": [
          "companySlug",
          "purpose"
        ]
      },
      "CommunicationTemplateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/communicationTemplateSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "CommunicationTemplateCreateBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Display name"
          },
          "content": {
            "type": "string",
            "description": "Stored email HTML"
          },
          "purpose": {
            "type": "string",
            "minLength": 1,
            "description": "Email purpose (registry key, e.g. sendCandidateRejectionEmail)"
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "description": "Channel; defaults to email"
          },
          "status": {
            "type": "string",
            "minLength": 1,
            "description": "Defaults to active"
          },
          "isActive": {
            "type": "boolean",
            "description": "Send this version (default true); turns off the other versions of the purpose"
          },
          "params": {
            "allOf": [
              {
                "$ref": "#/components/schemas/templateParamsSchema"
              }
            ]
          }
        },
        "required": [
          "companySlug",
          "name",
          "content",
          "purpose"
        ]
      },
      "CommunicationTemplateEmptyApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "null"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "CommunicationTemplateIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Communication template ID"
          }
        },
        "required": [
          "id"
        ]
      },
      "communicationTemplateListItemSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "params": {
            "$ref": "#/components/schemas/templateParamsSchema"
          },
          "purpose": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether this is the version being sent"
          },
          "isCustom": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "creatorId": {
            "type": [
              "number",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "content",
          "params",
          "purpose",
          "type",
          "status",
          "isActive"
        ]
      },
      "CommunicationTemplatePreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "html": {
                "type": "string"
              }
            },
            "required": [
              "html"
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "CommunicationTemplatePreviewBodySchema": {
        "type": "object",
        "properties": {
          "contentHtml": {
            "type": "string",
            "description": "Email body HTML, variables already filled"
          },
          "companyName": {
            "type": "string"
          },
          "logoUrl": {
            "type": "string"
          },
          "preview": {
            "type": "string",
            "description": "Inbox preview text"
          },
          "isNoReplyEmail": {
            "type": "boolean",
            "description": "Show the \"do not reply\" notice (default true); false when replies reach a person"
          }
        },
        "required": [
          "contentHtml"
        ]
      },
      "communicationTemplateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "params": {
            "$ref": "#/components/schemas/templateParamsSchema"
          },
          "purpose": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "companyId": {
            "type": "number"
          },
          "creatorId": {
            "type": [
              "number",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "content",
          "params",
          "purpose",
          "type",
          "status",
          "isActive",
          "companyId",
          "creatorId",
          "createdAt",
          "updatedAt"
        ]
      },
      "CommunicationTemplatesListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/communicationTemplateListItemSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "CommunicationTemplatesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "CommunicationTemplateUpdateBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "content": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "minLength": 1
          },
          "isActive": {
            "type": "boolean",
            "description": "true sends this version and turns off the others of the purpose"
          },
          "params": {
            "allOf": [
              {
                "$ref": "#/components/schemas/templateParamsSchema"
              }
            ]
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "CompanyAssetEmbedPreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string",
                "enum": [
                  "youtube",
                  "vimeo",
                  "loom"
                ]
              },
              "videoId": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "description": "Canonical link to store"
              },
              "title": {
                "type": "string"
              },
              "author": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "duration": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "m:ss when the provider reports it (YouTube does not)"
              },
              "short": {
                "type": "boolean",
                "description": "Vertical (YouTube Shorts)"
              },
              "poster": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Our stored copy of the thumbnail"
              }
            },
            "required": [
              "provider",
              "videoId",
              "url",
              "title",
              "author",
              "duration",
              "short",
              "poster"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CompanyAssetEmbedPreviewQueryParamsSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048,
            "description": "YouTube, Vimeo or Loom link"
          }
        },
        "required": [
          "url"
        ]
      },
      "CompanyAssetUploadIdParamsSchema": {
        "type": "object",
        "properties": {
          "uploadId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Upload id returned when the upload started"
          }
        },
        "required": [
          "uploadId"
        ]
      },
      "CompanyAutomationItemSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Catalog key, e.g. action:shortlist"
          },
          "kind": {
            "$ref": "#/components/schemas/kind"
          },
          "handlerKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/status"
          },
          "version": {
            "type": "number",
            "description": "Current catalog version"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "icon": {
            "type": [
              "string",
              "null"
            ]
          },
          "paramPresets": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Param values this item fixes"
          },
          "paramLimits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Catalog limits narrowed by the company: {param: {min,max,allowed,maxLength}}"
          },
          "requiresApproval": {
            "type": "boolean",
            "description": "Catalog or company forces approval"
          },
          "highRisk": {
            "type": "boolean"
          },
          "creditCostCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "catalogParamLimits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Intalent's limits before the company's"
          },
          "catalogRequiresApproval": {
            "type": "boolean"
          },
          "defaultOn": {
            "type": "boolean",
            "description": "On for companies that have not chosen"
          },
          "enabled": {
            "type": "boolean",
            "description": "On for this company (its choice, else defaultOn)"
          },
          "override": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/json"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the company stored for this item: {enabled?, requireApproval?, limits?}"
          }
        },
        "required": [
          "key",
          "kind",
          "handlerKey",
          "status",
          "version",
          "label",
          "description",
          "category",
          "icon",
          "paramPresets",
          "paramLimits",
          "requiresApproval",
          "highRisk",
          "creditCostCode",
          "catalogParamLimits",
          "catalogRequiresApproval",
          "defaultOn",
          "enabled",
          "override"
        ]
      },
      "CompanyAutomationSettingsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/CompanyAutomationSettingsSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CompanyAutomationSettingsPatchBodySchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "enabled": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "requireApproval": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "limits": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/limitBody"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "propertyNames": {
                    "type": "string"
                  }
                }
              }
            },
            "propertyNames": {
              "type": "string"
            },
            "description": "Catalog key -> override; null removes it"
          },
          "allowAutoReject": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "callingHours": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "start": {
                "type": "string"
              },
              "end": {
                "type": "string"
              }
            },
            "required": [
              "start",
              "end"
            ],
            "description": "HH:MM, within 09:00–18:00"
          },
          "roles": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "jobRules": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "personalRules": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "actions": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "propertyNames": {
              "type": "string"
            },
            "description": "Role (UserRole) -> permission override; null removes it"
          }
        }
      },
      "CompanyAutomationSettingsSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyAutomationItemSchema"
            },
            "description": "Every catalog item published on the company's plan"
          },
          "allowAutoReject": {
            "type": "boolean"
          },
          "callingHours": {
            "$ref": "#/components/schemas/callingHours"
          },
          "defaultCallingHours": {
            "$ref": "#/components/schemas/callingHours"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleAutomationSettingsSchema"
            }
          }
        },
        "required": [
          "items",
          "allowAutoReject",
          "callingHours",
          "defaultCallingHours",
          "roles"
        ]
      },
      "companyAutomationSettingsSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/companyItemOverrideSchema"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/catalogKey"
            }
          },
          "allowAutoReject": {
            "type": "boolean"
          },
          "callingHours": {
            "$ref": "#/components/schemas/callingHoursSchema"
          }
        },
        "additionalProperties": false
      },
      "companyConfigSchema": {
        "type": "object",
        "properties": {
          "autoApprove": {
            "type": "boolean",
            "default": false
          },
          "autoApproveOffers": {
            "type": "boolean",
            "default": false
          },
          "offerTemplateDocument": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "autoPostToLinkedIn": {
            "type": "boolean",
            "default": false
          },
          "autoPostToNaukri": {
            "type": "boolean",
            "default": false
          },
          "naukriAPIKey": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "naukriTestAccount": {
            "type": "boolean",
            "default": true
          },
          "accessControlConfig": {
            "anyOf": [
              {},
              {
                "type": "string"
              }
            ],
            "default": {}
          },
          "customFieldsConfig": {
            "anyOf": [
              {},
              {
                "type": "string"
              }
            ],
            "default": {}
          }
        },
        "required": [
          "autoApprove",
          "autoApproveOffers",
          "offerTemplateDocument",
          "autoPostToLinkedIn",
          "autoPostToNaukri",
          "naukriAPIKey",
          "naukriTestAccount"
        ]
      },
      "CompanyDepartmentListSchema": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "number"
            },
            "departmentName": {
              "type": "string"
            },
            "companyId": {
              "type": "number"
            },
            "createdAt": {
              "type": "string"
            },
            "updatedAt": {
              "type": "string"
            },
            "DepartmentUserRoles": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "number"
                  },
                  "departmentId": {
                    "type": "number"
                  }
                },
                "required": [
                  "userId",
                  "departmentId"
                ]
              }
            },
            "_count": {
              "type": "object",
              "properties": {
                "JobPosting": {
                  "type": "number"
                }
              },
              "required": [
                "JobPosting"
              ]
            }
          },
          "required": [
            "id",
            "departmentName",
            "companyId",
            "createdAt",
            "updatedAt",
            "DepartmentUserRoles",
            "_count"
          ]
        }
      },
      "CompanyDepartmentsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "Departments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  }
                },
                "description": "Departments the signed-in user belongs to in the company"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "Departments",
              "count"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CompanyDepartmentsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "description": "Company slug (or companyId)"
          },
          "companyId": {
            "type": "string",
            "description": "Company id (or companySlug)"
          }
        }
      },
      "companyDomainSchema": {
        "type": "string",
        "maxLength": 160
      },
      "companyItemOverrideSchema": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "requireApproval": {
            "type": "boolean"
          },
          "limits": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/paramLimitSchema"
            },
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        },
        "additionalProperties": false
      },
      "CompanyProfileApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/companyProfilePayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CompanyProfileBodySchema": {
        "type": "object",
        "properties": {
          "markdown": {
            "type": "string",
            "description": "Company profile markdown; an empty string clears the profile"
          }
        },
        "required": [
          "markdown"
        ]
      },
      "CompanyProfilePathParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "companyProfilePayloadSchema": {
        "type": "object",
        "properties": {
          "markdown": {
            "type": "string",
            "description": "Saved markdown, or the sample template when nothing is saved"
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/companyProfileSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "Profile JSON (with summary) extracted from the saved markdown; null until extraction finishes, or when it failed or found nothing"
          },
          "status": {
            "type": "string",
            "enum": [
              "none",
              "processing",
              "ready",
              "failed"
            ],
            "description": "Extraction status of the saved markdown; none when nothing is saved"
          },
          "isSaved": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "extractedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "defaultTemplate": {
            "type": "string",
            "description": "The sample template the editor resets to"
          }
        },
        "required": [
          "markdown",
          "profile",
          "status",
          "isSaved",
          "updatedAt",
          "extractedAt",
          "defaultTemplate"
        ]
      },
      "companyProfileSchema": {
        "type": "object",
        "properties": {
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "about": {
            "type": [
              "string",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "size": {
            "type": [
              "string",
              "null"
            ]
          },
          "headquarters": {
            "type": [
              "string",
              "null"
            ]
          },
          "culture": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "other_details": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "summary",
          "about",
          "industry",
          "size",
          "headquarters",
          "culture",
          "other_details"
        ]
      },
      "companyRequestParamsSchema": {
        "type": "object",
        "properties": {
          "requestType": {
            "type": "string",
            "enum": [
              "companySlug",
              "orgId"
            ],
            "default": "companySlug"
          },
          "companySlug": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "requestType",
          "companySlug",
          "companyId"
        ]
      },
      "companySchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[a-z0-9-]+$"
          },
          "externalAccountId": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "config": {
            "$ref": "#/components/schemas/companyConfigSchema"
          },
          "departments": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 256
            },
            "minItems": 1
          }
        },
        "required": [
          "companyName",
          "companySlug",
          "externalAccountId",
          "config"
        ]
      },
      "CompanySendingDomainApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanySendingDomainSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "CompanySendingDomainCreateBodySchema": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253,
            "description": "The sending domain, such as acme.com or mail.acme.com"
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 320,
            "description": "Default sender on the domain; donotreply@<domain> when empty"
          }
        },
        "required": [
          "domain"
        ]
      },
      "CompanySendingDomainParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "CompanySendingDomainQuerySchema": {
        "type": "object",
        "properties": {
          "refresh": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "true reads the latest status and DNS records from Resend"
          }
        }
      },
      "CompanySendingDomainSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "not_started, pending, verified, partially_verified, partially_failed, failed or temporary_failure"
          },
          "from": {
            "type": "string"
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "record": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "priority": {
                  "type": "number"
                },
                "status": {
                  "type": "string"
                }
              },
              "required": [
                "record",
                "name",
                "type",
                "value"
              ]
            }
          },
          "checkedAt": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "status",
          "from",
          "records",
          "checkedAt"
        ]
      },
      "companySlugParam": {
        "type": "string",
        "minLength": 1,
        "pattern": "^[a-z0-9_-]+$"
      },
      "CompanySlugParams": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "companySlugParamSchema": {
        "type": "string",
        "minLength": 1,
        "pattern": "^[a-z0-9_-]+$"
      },
      "CompanySlugParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "companySlugSchema": {
        "type": "string",
        "minLength": 1,
        "description": "Company slug"
      },
      "CompanyTemplateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/CompanyTemplateSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CompanyTemplateCopyBodySchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "target": {
                "type": "string",
                "enum": [
                  "job"
                ]
              },
              "jobPostingId": {
                "type": "number"
              },
              "enabled": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "target",
              "jobPostingId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "target": {
                "type": "string",
                "enum": [
                  "personal"
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "target"
            ]
          }
        ]
      },
      "companyTemplateCopySchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "target"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "target": {
                "type": "string",
                "enum": [
                  "job"
                ]
              },
              "jobPostingId": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "enabled": {
                "type": "boolean"
              },
              "name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/nameSchema"
                  }
                ]
              }
            },
            "required": [
              "target",
              "jobPostingId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "target": {
                "type": "string",
                "enum": [
                  "personal"
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/nameSchema"
                  }
                ]
              }
            },
            "required": [
              "target"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CompanyTemplateCreateBodySchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "system"
                ]
              },
              "systemTemplateKey": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "source",
              "systemTemplateKey"
            ]
          },
          {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "rule"
                ]
              },
              "ruleId": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "source",
              "ruleId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "definition"
                ]
              },
              "definition": {
                "$ref": "#/components/schemas/templateDefinitionBody"
              }
            },
            "required": [
              "source",
              "definition"
            ]
          }
        ]
      },
      "companyTemplateCreateSchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "source"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "system"
                ]
              },
              "systemTemplateKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/nameSchema"
                  }
                ]
              },
              "description": {
                "$ref": "#/components/schemas/descriptionSchema"
              }
            },
            "required": [
              "source",
              "systemTemplateKey"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "rule"
                ]
              },
              "ruleId": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "name": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/nameSchema"
                  }
                ]
              },
              "description": {
                "$ref": "#/components/schemas/descriptionSchema"
              }
            },
            "required": [
              "source",
              "ruleId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "definition"
                ]
              },
              "definition": {
                "$ref": "#/components/schemas/templateDefinitionSchema"
              }
            },
            "required": [
              "source",
              "definition"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CompanyTemplateListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyTemplateSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CompanyTemplateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "$ref": "#/components/schemas/json"
          },
          "actions": {
            "$ref": "#/components/schemas/json"
          },
          "runOnce": {
            "type": "boolean"
          },
          "catalogItemVersions": {
            "$ref": "#/components/schemas/json"
          },
          "version": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "usable": {
            "type": "boolean",
            "description": "Whether the viewer could copy it into a rule now"
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "triggerType",
          "conditions",
          "actions",
          "runOnce",
          "catalogItemVersions",
          "version",
          "createdAt",
          "updatedAt",
          "createdByEmail",
          "updatedByEmail",
          "usable",
          "problems"
        ]
      },
      "CompanyTemplateUpdateBodySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "definition": {
            "allOf": [
              {
                "$ref": "#/components/schemas/templateDefinitionBody"
              }
            ]
          },
          "expectedVersion": {
            "type": "number",
            "description": "The template version you loaded"
          }
        },
        "required": [
          "expectedVersion"
        ]
      },
      "companyTemplateUpdateSchema": {
        "type": "object",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nameSchema"
              }
            ]
          },
          "description": {
            "$ref": "#/components/schemas/descriptionSchema"
          },
          "definition": {
            "allOf": [
              {
                "$ref": "#/components/schemas/templateDefinitionSchema"
              }
            ]
          },
          "expectedVersion": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "CompanyUserDepartmentOpenApi": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "departmentName": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "departmentName"
        ]
      },
      "CompanyUserIdParams": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "companySlug",
          "userId"
        ]
      },
      "CompanyUserListItemOpenApi": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "userEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "reportsTo": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "userEmail": {
                "type": "string"
              }
            },
            "required": [
              "userEmail"
            ]
          },
          "type": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "departmentName": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "departmentName"
              ]
            }
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "disabled": {
            "type": "boolean"
          },
          "auth0Mapped": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "userEmail",
          "name",
          "reportsTo",
          "type",
          "roles",
          "departments",
          "createdAt",
          "disabled",
          "auth0Mapped"
        ]
      },
      "CompanyUsersResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "userEmail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reportsTo": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "userEmail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "userEmail"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "roles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "departments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "number"
                      },
                      "departmentName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "departmentName"
                    ]
                  }
                },
                "createdAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "disabled": {
                  "type": "boolean"
                },
                "auth0Mapped": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "userEmail",
                "name",
                "reportsTo",
                "type",
                "roles",
                "departments",
                "createdAt",
                "disabled",
                "auth0Mapped"
              ]
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "conditionLeafSchema": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "op": {
            "type": "string",
            "enum": [
              "eq",
              "neq",
              "gt",
              "gte",
              "lt",
              "lte",
              "in",
              "not_in",
              "contains",
              "not_contains",
              "starts_with",
              "is_empty",
              "is_not_empty",
              "in_ci",
              "matches_keyword",
              "yes_no"
            ]
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/scalar"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/scalar"
                },
                "maxItems": 500
              }
            ]
          },
          "default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/scalar"
              }
            ]
          }
        },
        "required": [
          "field",
          "op"
        ],
        "additionalProperties": false
      },
      "conditionSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/conditionLeafSchema"
          },
          {
            "type": "object",
            "properties": {
              "all": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/conditionSchema"
                },
                "maxItems": 100
              }
            },
            "required": [
              "all"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "any": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/conditionSchema"
                },
                "maxItems": 100
              }
            },
            "required": [
              "any"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "not": {
                "$ref": "#/components/schemas/conditionSchema"
              }
            },
            "required": [
              "not"
            ],
            "additionalProperties": false
          }
        ]
      },
      "configModeSchema": {
        "type": "string",
        "enum": [
          "text",
          "single-select"
        ]
      },
      "ConnectorDisconnectApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/connectorDisconnectPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ConnectorDisconnectBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          },
          "provider": {
            "type": "string",
            "enum": [
              "google",
              "microsoft"
            ]
          }
        },
        "required": [
          "companySlug",
          "provider"
        ]
      },
      "connectorDisconnectPayloadSchema": {
        "type": "object",
        "properties": {
          "disconnected": {
            "type": "boolean"
          },
          "provider": {
            "type": "string"
          }
        },
        "required": [
          "disconnected"
        ]
      },
      "connectorProviderStatusSchema": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "connected": {
            "type": "boolean"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "adminConsentUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "configured",
          "connected"
        ]
      },
      "ConnectorsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "ConnectorsStatusApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/connectorsStatusPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "connectorsStatusPayloadSchema": {
        "type": "object",
        "properties": {
          "orgCalendarConnected": {
            "type": "boolean"
          },
          "microsoft": {
            "$ref": "#/components/schemas/connectorProviderStatusSchema"
          },
          "google": {
            "$ref": "#/components/schemas/connectorProviderStatusSchema"
          }
        },
        "required": [
          "orgCalendarConnected",
          "microsoft",
          "google"
        ]
      },
      "ConnectorTestApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/connectorTestPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ConnectorTestBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          },
          "provider": {
            "type": "string",
            "enum": [
              "google",
              "microsoft"
            ]
          }
        },
        "required": [
          "companySlug",
          "provider"
        ]
      },
      "connectorTestPayloadSchema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "provider": {
            "type": "string",
            "enum": [
              "google",
              "microsoft"
            ]
          },
          "calendarName": {
            "type": [
              "string",
              "null"
            ]
          },
          "mailbox": {
            "type": [
              "string",
              "null"
            ]
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "ok"
        ]
      },
      "conversationMessageSchema": {
        "type": "object",
        "properties": {
          "dir": {
            "type": "string",
            "enum": [
              "in",
              "out"
            ],
            "description": "in: the candidate's message; out: the assistant's"
          },
          "text": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "description": "ISO time the message was sent or received"
          },
          "media": {
            "type": "boolean",
            "description": "The candidate sent a voice note or a file with it"
          }
        },
        "required": [
          "dir",
          "text",
          "at",
          "media"
        ]
      },
      "conversationThreadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "channel": {
            "type": "string",
            "enum": [
              "whatsapp"
            ]
          },
          "startedAt": {
            "type": "string",
            "description": "ISO time the thread was opened"
          },
          "status": {
            "type": "string",
            "enum": [
              "OPEN",
              "CLOSED",
              "OPTED_OUT",
              "WRONG_NUMBER"
            ]
          },
          "closedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversationMessageSchema"
            },
            "description": "Oldest first"
          }
        },
        "required": [
          "id",
          "channel",
          "startedAt",
          "status",
          "closedReason",
          "messages"
        ]
      },
      "CopiedAutomationRuleApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/CopiedAutomationRuleSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CopiedAutomationRuleSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "scope": {
            "type": "string",
            "enum": [
              "JOB",
              "PERSONAL",
              "COMPANY_TEMPLATE"
            ]
          },
          "jobPostingId": {
            "type": [
              "number",
              "null"
            ]
          },
          "ownerEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "$ref": "#/components/schemas/json"
          },
          "actions": {
            "$ref": "#/components/schemas/json"
          },
          "runOnce": {
            "type": "boolean"
          },
          "catalogItemVersions": {
            "$ref": "#/components/schemas/json"
          },
          "version": {
            "type": "number"
          },
          "enabled": {
            "type": "boolean"
          },
          "pausedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedByEmail": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "scope",
          "jobPostingId",
          "ownerEmail",
          "name",
          "description",
          "triggerType",
          "conditions",
          "actions",
          "runOnce",
          "catalogItemVersions",
          "version",
          "enabled",
          "pausedReason",
          "createdAt",
          "updatedAt",
          "createdByEmail",
          "updatedByEmail"
        ]
      },
      "CopyAssessmentParamBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "parameter": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the copy"
          }
        },
        "required": [
          "companySlug",
          "parameter"
        ]
      },
      "costsRecordSchema": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/billingCreditCostEntryPortableSchema"
        },
        "propertyNames": {
          "type": "string"
        }
      },
      "CreateAssessmentParamBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "parameter": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Competency name"
          },
          "definition": {
            "type": [
              "string",
              "null"
            ]
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentParamQuestionSchema"
            },
            "maxItems": 1
          },
          "enableAIQuestionGeneration": {
            "type": "boolean",
            "description": "AI interview: true = personalized per candidate from their resume (the question below is the base; blank = AI writes it); false = the question below is spoken as written"
          },
          "defaultQuestion": {
            "type": "string",
            "description": "AI interview question: asked as written, or the personalization base"
          },
          "defaultAnswer": {
            "type": "string",
            "description": "AI interview reference answer"
          },
          "enableAIHumanQuestionGeneration": {
            "type": "boolean",
            "description": "Human interview: true = AI-generated questions; false = the question below is shown to the interviewer"
          },
          "defaultHumanQuestion": {
            "type": "string",
            "description": "Human interview question (used when enableAIHumanQuestionGeneration is false)"
          },
          "defaultHumanAnswer": {
            "type": "string",
            "description": "Human interview reference answer"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ],
            "description": "Phone screening question type"
          },
          "defaultPhoneQuestion": {
            "type": "string",
            "description": "Phone screening question"
          },
          "defaultPhoneAnswer": {
            "type": "string",
            "description": "Phone screening reference answer"
          }
        },
        "required": [
          "companySlug",
          "parameter"
        ]
      },
      "CreateAssessmentTemplateBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AssessmentLevelSchema"
              }
            ],
            "description": "Assessment difficulty level (default ENTRY)"
          },
          "departmentId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0
          },
          "AssessmentParameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentTemplateParameterSchema"
            },
            "minItems": 1
          }
        },
        "required": [
          "companySlug",
          "name",
          "AssessmentParameters"
        ]
      },
      "createCandidateSchema": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string"
          },
          "linkedInUrl": {
            "type": "string"
          },
          "resumeUrl": {
            "type": "object"
          },
          "peopleManagement": {
            "type": "boolean"
          },
          "spokenLanguages": {
            "type": "string"
          },
          "technicalTools": {
            "type": "string"
          },
          "yearsOfExperience": {
            "type": "number"
          },
          "currentCompensation": {
            "type": "number",
            "minimum": 10000,
            "maximum": 1000000000
          },
          "expectedCompensation": {
            "type": "number",
            "minimum": 10000,
            "maximum": 1000000000
          },
          "noticePeriodInDays": {
            "type": "number",
            "minimum": 0,
            "maximum": 120
          },
          "refereeFirstName": {
            "type": "string"
          },
          "refereeLastName": {
            "type": "string"
          },
          "relationshipToCandidate": {
            "type": "string"
          },
          "refereeEmail": {
            "type": "string"
          },
          "refereeEmployeeId": {
            "type": "string"
          },
          "refereePhone": {
            "type": "string"
          },
          "internalEmployeeNumber": {
            "type": "string"
          },
          "consultantCompanyName": {
            "type": "string"
          },
          "consultantEmail": {
            "type": "string"
          },
          "consultantName": {
            "type": "string"
          },
          "currentDesignation": {
            "type": "string"
          },
          "currentCompany": {
            "type": "string"
          },
          "latestDegree": {
            "type": "string"
          },
          "latestInstitution": {
            "type": "string"
          },
          "yearOfGraduation": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "applicationType": {
            "type": "string"
          },
          "isResumeUpdated": {
            "type": "boolean"
          },
          "candidateExperiences": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "designation": {
                  "type": "string"
                },
                "companyName": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "startDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "endDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "currentlyEmployedAt": {
                  "type": "boolean"
                }
              },
              "required": [
                "designation",
                "companyName",
                "location",
                "startDate",
                "endDate",
                "currentlyEmployedAt"
              ]
            }
          },
          "candidateQualifications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "qualification": {
                  "type": "string"
                },
                "university": {
                  "type": "string"
                },
                "fieldOfStudy": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "grade": {
                  "type": "string"
                },
                "startDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "endDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "latestQualification": {
                  "type": "boolean"
                }
              },
              "required": [
                "qualification",
                "university",
                "fieldOfStudy",
                "location",
                "grade",
                "startDate",
                "endDate",
                "latestQualification"
              ]
            }
          },
          "candidateSkills": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "proficiency": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "proficiency"
              ]
            }
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "resumeUrl",
          "currentCompensation",
          "expectedCompensation",
          "noticePeriodInDays",
          "applicationType"
        ]
      },
      "CreateCompanyAssetUploadApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "uploadId": {
                "type": "string",
                "description": "Pass to the finalize call"
              },
              "uploadUrl": {
                "type": "string",
                "description": "Signed URL to PUT the file to (15 minutes)"
              },
              "uploadHeaders": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                },
                "propertyNames": {
                  "type": "string"
                },
                "description": "Headers to send with the PUT"
              },
              "expiresAt": {
                "type": "string"
              }
            },
            "required": [
              "uploadId",
              "uploadUrl",
              "uploadHeaders",
              "expiresAt"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CreateCompanyAssetUploadBodySchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "poster",
              "video"
            ],
            "description": "What is being uploaded; sets the accepted types and size limit"
          },
          "contentType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "MIME type the browser will send with the PUT"
          },
          "size": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "File size in bytes"
          }
        },
        "required": [
          "kind",
          "contentType",
          "size"
        ]
      },
      "CreateDepartmentBodySchema": {
        "type": "object",
        "properties": {
          "departmentName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "departmentName"
        ]
      },
      "createFromTemplateSchema": {
        "type": "object",
        "properties": {
          "templateKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "timeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "IANA time zone the schedule runs in (the recruiter’s own)"
          },
          "cron": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Overrides the template’s schedule"
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "dashboard",
                "email"
              ]
            },
            "minItems": 1
          },
          "jobPostingIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "maxItems": 200
          }
        },
        "required": [
          "templateKey",
          "timeZone"
        ],
        "additionalProperties": false
      },
      "createInterviewRoundSchema": {
        "type": "object",
        "properties": {
          "interviewRounds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "interviewDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "duration": {
                  "type": "number"
                },
                "timezone": {
                  "type": "string"
                },
                "interviewType": {
                  "type": "string"
                },
                "panellists": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "interviewDate",
                "duration",
                "panellists"
              ]
            }
          }
        },
        "required": [
          "interviewRounds"
        ]
      },
      "createInterviewSchema": {
        "type": "object",
        "properties": {
          "jobApplicationId": {
            "type": "number"
          },
          "interviewRounds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "interviewDate": {
                  "type": "string",
                  "format": "date-time"
                },
                "interviewType": {
                  "type": "string"
                },
                "duration": {
                  "type": "number"
                },
                "timezone": {
                  "type": "string"
                },
                "panellists": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "comments": {
                        "type": "string"
                      },
                      "recommendation": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "email"
                    ]
                  }
                }
              },
              "required": [
                "interviewDate",
                "duration",
                "panellists"
              ]
            }
          },
          "screeningResult": {
            "type": "object",
            "properties": {
              "overallScore": {
                "type": "number"
              },
              "overallSummary": {
                "type": "string"
              },
              "interviewTranscription": {
                "type": "string"
              },
              "screeningResultCategories": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "categoryName": {
                      "type": "string"
                    },
                    "categoryScore": {
                      "type": "number"
                    },
                    "reasoning": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "categoryName"
                  ]
                }
              }
            },
            "required": [
              "screeningResultCategories"
            ]
          }
        },
        "required": [
          "jobApplicationId",
          "interviewRounds"
        ]
      },
      "createJobApplicationSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "resumeUrl": {
            "type": "object",
            "minLength": 1
          },
          "linkedInUrl": {
            "type": "string"
          },
          "currentCompany": {
            "type": "string"
          },
          "currentDesignation": {
            "type": "string"
          },
          "previousCompaniesTop3": {
            "type": "string"
          },
          "industryExperienceTop3": {
            "type": "string"
          },
          "latestDegree": {
            "type": "string"
          },
          "latestInstitution": {
            "type": "string"
          },
          "yearOfGraduation": {
            "type": "string"
          },
          "yearsOfExperience": {
            "type": "number"
          },
          "currentCompensation": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 10000,
                    "maximum": 1000000000
                  },
                  {
                    "type": "string",
                    "enum": [
                      ""
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedCompensation": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 10000,
                    "maximum": 1000000000
                  },
                  {
                    "type": "string",
                    "enum": [
                      ""
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "noticePeriodInDays": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 120
                  },
                  {
                    "type": "string",
                    "enum": [
                      ""
                    ]
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "type": "string"
          },
          "peopleManagement": {
            "type": "boolean"
          },
          "applicationType": {
            "type": "string",
            "enum": [
              "DIRECT",
              "REFERRAL",
              "INTERNAL",
              "CONSULTANT"
            ]
          },
          "applicationDocuments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "refereeEmployeeId": {
            "type": "string"
          },
          "refereePhone": {
            "type": "string"
          },
          "refereeFirstName": {
            "type": "string"
          },
          "refereeLastName": {
            "type": "string"
          },
          "relationshipToCandidate": {
            "type": "string"
          },
          "refereeEmail": {
            "type": "string"
          },
          "internalEmployeeNumber": {
            "type": "string"
          },
          "consultantCompanyName": {
            "type": "string"
          },
          "consultantEmail": {
            "type": "string"
          },
          "consultantName": {
            "type": "string"
          },
          "jobPostingId": {
            "type": "number"
          },
          "JobPosting": {},
          "technicalTools": {
            "type": "string"
          },
          "spokenLanguages": {
            "type": "string"
          },
          "candidateDetails": {},
          "source": {},
          "processingStatus": {},
          "processingStatusProgress": {},
          "externalCandidateId": {
            "type": "string"
          },
          "isCheckboxChecked": {
            "type": "boolean"
          },
          "isNotificationChecked": {
            "type": "boolean"
          },
          "isResumeUpdated": {
            "type": "boolean"
          },
          "existingCheckEnabled": {
            "type": "boolean"
          },
          "Source": {},
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "resumeUrl",
          "isCheckboxChecked",
          "isNotificationChecked"
        ]
      },
      "createJobApplicationSchemaBulk": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "linkedInUrl": {
            "type": "string",
            "format": "uri"
          },
          "resumeUrl": {
            "type": "object"
          },
          "currentCompany": {
            "type": "string"
          },
          "currentDesignation": {
            "type": "string"
          },
          "previousCompaniesTop3": {
            "type": "string"
          },
          "industryExperienceTop3": {
            "type": "string"
          },
          "latestDegree": {
            "type": "string"
          },
          "latestInstitution": {
            "type": "string"
          },
          "yearOfGraduation": {
            "type": "number"
          },
          "yearsOfExperience": {
            "type": "number"
          },
          "currentCompensation": {
            "type": "number",
            "minimum": 10000
          },
          "expectedCompensation": {
            "type": "number",
            "minimum": 10000
          },
          "location": {
            "type": "string"
          },
          "peopleManagement": {
            "type": "boolean"
          },
          "noticePeriodInDays": {
            "type": "number"
          },
          "applicationDocuments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "refereeEmployeeId": {
            "type": "number"
          },
          "refereePhone": {
            "type": "string"
          },
          "refereeFirstName": {
            "type": "string"
          },
          "refereeLastName": {
            "type": "string"
          },
          "relationshipToCandidate": {
            "type": "string"
          },
          "refereeEmail": {
            "type": "string"
          },
          "jobPostingId": {
            "type": "number"
          },
          "JobPosting": {}
        },
        "required": [
          "firstName",
          "lastName",
          "email",
          "phone",
          "resumeUrl",
          "currentCompensation",
          "expectedCompensation",
          "noticePeriodInDays",
          "jobPostingId"
        ]
      },
      "CreateJobDescriptionBodySchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "content": {
            "type": "string",
            "default": ""
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d+$"
              },
              {
                "type": "integer"
              }
            ],
            "description": "When present it must match the session company"
          }
        },
        "required": [
          "title"
        ]
      },
      "createJobDescriptionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "amountPerFormat": {
            "type": "number"
          },
          "wordsPerParagraph": {
            "type": "number"
          }
        },
        "required": [
          "key",
          "label",
          "format",
          "amountPerFormat",
          "wordsPerParagraph"
        ]
      },
      "createJobOfferSchema": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string"
          },
          "travelAllowance": {
            "type": "number"
          },
          "totalCompensation": {
            "type": "number"
          },
          "comments": {
            "type": "string"
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "startDate",
          "totalCompensation"
        ]
      },
      "CreateJobPostingApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "CreateJobPostingBodySchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Job title"
          },
          "departmentId": {
            "type": "integer",
            "description": "Department of the company"
          },
          "location": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "minWorkExperience": {
            "type": "number",
            "minimum": 0,
            "maximum": 25
          },
          "hiringManagerEmail": {
            "type": "string",
            "format": "email",
            "description": "A company user with the Manager role"
          },
          "recruiterEmail": {
            "type": "string",
            "format": "email",
            "description": "A company user"
          },
          "interviewerEmail": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "jobDescriptionUrl": {
            "type": "string",
            "format": "uri",
            "description": "Uploaded JD (companies without JD selection)"
          },
          "jobDescriptionId": {
            "type": "string",
            "description": "Library JD (companies with JD selection)"
          },
          "employmentType": {
            "type": "string",
            "enum": [
              "FULL_TIME",
              "PART_TIME",
              "INTERNSHIP",
              "TRAINEE"
            ]
          },
          "educationalRequirements": {
            "type": "string"
          },
          "minSalaryExpectation": {
            "type": [
              "number",
              "null"
            ],
            "description": "Empty / null = not set"
          },
          "maxSalaryExpectation": {
            "type": [
              "number",
              "null"
            ],
            "description": "Empty / null = not set"
          },
          "newOrReplacement": {
            "type": "string"
          },
          "preferredTargetEducation": {
            "type": "string"
          },
          "preferredTargetOrganizations": {
            "type": "string"
          },
          "internalOnly": {
            "type": "boolean"
          },
          "relocationSupport": {
            "type": "boolean"
          },
          "screeningInterviewFocusArea": {
            "type": "string"
          },
          "externalJobId": {
            "type": "string"
          },
          "assessmentTemplateId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "extractedText": {
            "type": "string"
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "Company custom fields, noOfOpenings, shortlistRule, applicationQuestions, …"
          },
          "screeningConfig": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "phoneScreeningConfig": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "title",
          "departmentId",
          "location",
          "country",
          "currency",
          "minWorkExperience",
          "hiringManagerEmail",
          "recruiterEmail"
        ]
      },
      "CreateJobPostingErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "path",
                "message"
              ]
            },
            "description": "Field-level validation errors (dotted paths)"
          }
        },
        "required": [
          "message"
        ]
      },
      "createJobSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1
          },
          "hiringManagerEmail": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "recruiterEmail": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "interviewerEmail": {
            "type": "string"
          },
          "departmentId": {
            "type": "number"
          },
          "level": {
            "type": "string"
          },
          "location": {
            "type": "string",
            "minLength": 1
          },
          "jobDescriptionUrl": {
            "type": "string",
            "format": "uri"
          },
          "jobDescriptionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "employmentType": {
            "type": "string"
          },
          "educationalRequirements": {
            "type": "string"
          },
          "minWorkExperience": {
            "type": "number",
            "minimum": 0,
            "maximum": 25
          },
          "minSalaryExpectation": {
            "type": "number",
            "maximum": 1000000000
          },
          "maxSalaryExpectation": {
            "type": "number",
            "maximum": 1000000000
          },
          "newOrReplacement": {
            "type": "string"
          },
          "preferredTargetEducation": {
            "type": "string"
          },
          "preferredTargetOrganizations": {
            "type": "string"
          },
          "internalOnly": {
            "type": "boolean",
            "default": false
          },
          "relocationSupport": {
            "type": "boolean",
            "default": false
          },
          "currency": {
            "type": "string",
            "minLength": 1
          },
          "country": {
            "type": "string",
            "minLength": 1
          },
          "screeningInterviewFocusArea": {
            "type": "string"
          },
          "externalJobId": {
            "type": "string"
          },
          "assessmentTemplateId": {
            "type": [
              "number",
              "null"
            ]
          },
          "extractedText": {
            "type": "string"
          },
          "customFields": {
            "type": "object",
            "properties": {}
          },
          "screeningConfig": {
            "type": "object",
            "properties": {
              "agentLanguage": {
                "type": "string"
              },
              "languageStyle": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "hinglish"
                ]
              },
              "candidateLanguage": {
                "type": "string"
              },
              "method": {
                "type": "string",
                "enum": [
                  "generic",
                  "star"
                ],
                "default": "star"
              },
              "followupMode": {
                "type": "string",
                "enum": [
                  "after_complete",
                  "intensive"
                ],
                "default": "after_complete"
              },
              "enablePsychometrics": {
                "type": "boolean",
                "default": true
              },
              "enableLivenessCheck": {
                "type": "boolean",
                "default": true
              },
              "showQuestionsMultilingual": {
                "type": "boolean",
                "default": false
              },
              "questionsAdditionalLang": {
                "type": "string"
              },
              "webrtc": {
                "type": "object",
                "properties": {
                  "laptopOnly": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "required": [
                  "laptopOnly"
                ]
              }
            },
            "required": [
              "method",
              "followupMode",
              "enablePsychometrics",
              "enableLivenessCheck",
              "showQuestionsMultilingual"
            ]
          },
          "phoneScreeningConfig": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "enableScoring": {
                "type": "boolean",
                "default": true
              },
              "enablePsychometrics": {
                "type": "boolean",
                "default": false
              },
              "method": {
                "type": "string",
                "enum": [
                  "generic",
                  "star"
                ],
                "default": "generic"
              },
              "agentLanguage": {
                "type": "string",
                "default": "en-IN"
              }
            },
            "required": [
              "enableScoring",
              "enablePsychometrics",
              "method",
              "agentLanguage"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "title",
          "hiringManagerEmail",
          "recruiterEmail",
          "departmentId",
          "location",
          "jobDescriptionUrl",
          "jobDescriptionId",
          "minWorkExperience",
          "minSalaryExpectation",
          "maxSalaryExpectation",
          "internalOnly",
          "relocationSupport",
          "currency",
          "country",
          "assessmentTemplateId"
        ]
      },
      "createOrganizationFormSchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          },
          "domain": {
            "$ref": "#/components/schemas/companyDomainSchema"
          },
          "planId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "departments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/departmentRowSchema"
            },
            "minItems": 1
          }
        },
        "required": [
          "companyName",
          "companySlug",
          "domain",
          "planId",
          "departments"
        ]
      },
      "createOrganizationSchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          },
          "departments": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 256
            },
            "minItems": 1
          },
          "planId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "domain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/companyDomainSchema"
              }
            ]
          },
          "companyLogoUrl": {
            "type": "object"
          }
        },
        "required": [
          "companyName",
          "companySlug",
          "departments",
          "planId"
        ]
      },
      "createReferralSchema": {
        "type": "object",
        "properties": {
          "applicantEmail": {
            "type": "string",
            "format": "email"
          },
          "referralEmail": {
            "type": "string",
            "format": "email"
          },
          "companyId": {
            "type": "string"
          },
          "jobPostingId": {
            "type": "number"
          },
          "resumeUrl": {
            "type": "object"
          }
        },
        "required": [
          "applicantEmail",
          "referralEmail",
          "companyId",
          "jobPostingId",
          "resumeUrl"
        ]
      },
      "createRoutingRuleSchema": {
        "type": "object",
        "properties": {
          "entityType": {
            "type": "string",
            "enum": [
              "JobPosting",
              "JobApplication",
              "JobOffers"
            ]
          },
          "departmentId": {
            "type": [
              "number",
              "null"
            ]
          },
          "field": {
            "type": "string",
            "enum": [
              "jobPosting.id"
            ],
            "default": "jobPosting.id"
          },
          "operator": {
            "type": "string",
            "enum": [
              "exists"
            ],
            "default": "exists"
          },
          "approvers": {
            "$ref": "#/components/schemas/routingRuleApproversSchema"
          }
        },
        "required": [
          "entityType",
          "departmentId",
          "field",
          "operator",
          "approvers"
        ]
      },
      "createStatusSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "analyticsStage": {
            "type": "string",
            "default": "INTERVIEW"
          },
          "isShortlisted": {
            "type": "boolean",
            "default": false
          },
          "isActive": {
            "type": "boolean",
            "default": true
          },
          "order": {
            "type": "number"
          },
          "color": {
            "type": "string"
          },
          "isSystem": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "label"
        ]
      },
      "createSuccessProfileSchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "number"
          },
          "profileUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "jobPostingId",
          "profileUrl"
        ]
      },
      "CreateTalentPoolSharingBodySchema": {
        "type": "object",
        "properties": {
          "candidateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 50,
            "description": "Talent pool candidate ids"
          },
          "jobPostingId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "The job whose Talent Pool tab the share came from; omit on the Talent Pool page"
          },
          "mode": {
            "type": "string",
            "enum": [
              "email",
              "link"
            ],
            "description": "email: send the link to recipientEmail; link: only return it"
          },
          "recipientEmail": {
            "type": "string",
            "format": "email"
          },
          "customMessage": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "required": [
          "candidateIds",
          "mode"
        ]
      },
      "creditGrantModeSchema": {
        "type": "string",
        "enum": [
          "one_time",
          "monthly",
          "contract"
        ]
      },
      "customShape": {
        "type": "object"
      },
      "dataSourceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "sql",
              "api",
              "function"
            ]
          },
          "query": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ]
          },
          "functionName": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            },
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "type"
        ]
      },
      "defaultTextSchema": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1
      },
      "definitionBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "params": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "type",
                "params"
              ]
            }
          },
          "runOnce": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "triggerType",
          "conditions",
          "actions"
        ]
      },
      "delayParamsSchema": {
        "type": "object",
        "properties": {
          "minutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 129600
          }
        },
        "required": [
          "minutes"
        ],
        "additionalProperties": false
      },
      "DeleteDepartmentQueryParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id"
        ]
      },
      "deleteStatusSchema": {
        "type": "object",
        "properties": {
          "replacementStatusValue": {
            "type": "string"
          }
        }
      },
      "DepartmentApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/departmentPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "departmentApproverSchema": {
        "type": "object",
        "properties": {
          "email": {
            "$ref": "#/components/schemas/emailSchema"
          }
        },
        "required": [
          "email"
        ]
      },
      "DepartmentDeleteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              }
            },
            "required": [
              "id"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "departmentPayloadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "departmentName": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "departmentName",
          "companyId",
          "createdAt",
          "updatedAt"
        ]
      },
      "departmentRowSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "departmentSchema": {
        "type": "object",
        "properties": {
          "departmentName": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "departmentName"
        ]
      },
      "descriptionSchema": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 5000
      },
      "disableBodySchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id"
              ]
            },
            "minItems": 1
          }
        },
        "required": [
          "items"
        ]
      },
      "EditCompanyUser200Response": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "editUserBodySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "password": {
            "type": "string"
          },
          "sendEmailWithCredentials": {
            "type": "boolean"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/selectableRoleSchema"
              }
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/selectableRoleSchema"
            },
            "minItems": 1
          },
          "departmentIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "EffectiveAutomationQuerySchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "description": "Admins only: preview the set for this role instead of their own"
          }
        }
      },
      "EffectiveAutomationSetApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/EffectiveAutomationSetSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "EffectiveAutomationSetSchema": {
        "type": "object",
        "properties": {
          "canCreateJobRules": {
            "type": "boolean"
          },
          "canCreatePersonalRules": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/effectiveItem"
            },
            "description": "Published ∧ in plan ∧ enabled for the company ∧ allowed for the role"
          },
          "allowAutoReject": {
            "type": "boolean"
          },
          "callingHours": {
            "$ref": "#/components/schemas/callingHours"
          }
        },
        "required": [
          "canCreateJobRules",
          "canCreatePersonalRules",
          "items",
          "allowAutoReject",
          "callingHours"
        ]
      },
      "effectiveItem": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Catalog key, e.g. action:shortlist"
          },
          "kind": {
            "$ref": "#/components/schemas/kind"
          },
          "handlerKey": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/status"
          },
          "version": {
            "type": "number",
            "description": "Current catalog version"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "icon": {
            "type": [
              "string",
              "null"
            ]
          },
          "paramPresets": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Param values this item fixes"
          },
          "paramLimits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Catalog limits narrowed by the company: {param: {min,max,allowed,maxLength}}"
          },
          "requiresApproval": {
            "type": "boolean",
            "description": "Catalog or company forces approval"
          },
          "highRisk": {
            "type": "boolean"
          },
          "creditCostCode": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "key",
          "kind",
          "handlerKey",
          "status",
          "version",
          "label",
          "description",
          "category",
          "icon",
          "paramPresets",
          "paramLimits",
          "requiresApproval",
          "highRisk",
          "creditCostCode"
        ]
      },
      "emailSchema": {
        "type": "string",
        "format": "email"
      },
      "emailValidation": {
        "type": "string",
        "format": "email"
      },
      "EmptyApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "enableBodySchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id"
              ]
            },
            "minItems": 1
          }
        },
        "required": [
          "items"
        ]
      },
      "engineRuleSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "version": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {},
          "actions": {},
          "runOnce": {
            "type": "boolean"
          },
          "catalogItemVersions": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "thresholdCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Threshold rules: run the actions once every this many matches"
          }
        },
        "required": [
          "id",
          "version",
          "name",
          "triggerType",
          "conditions",
          "actions",
          "runOnce",
          "catalogItemVersions",
          "thresholdCount"
        ]
      },
      "ExtractTextApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ExtractTextMultipartSchema": {
        "type": "object",
        "properties": {
          "file": {
            "description": "JD document file (PDF, DOCX, or TXT, max 10 MB)"
          }
        },
        "required": [
          "file"
        ]
      },
      "ExtractTextQuerySchema": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "minLength": 1,
            "description": "Storage object URL of the document to extract text from"
          }
        },
        "required": [
          "fileUrl"
        ]
      },
      "featureFlagsBodySchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "set"
                ]
              },
              "key": {
                "type": "string",
                "enum": [
                  "COMPANY_DISABLED",
                  "COMPANY_READONLY",
                  "SCREENING_INTERVIEW_VARIANT",
                  "ENTERPRISE_DEPARTMENT_MAPPING",
                  "JOB_POSTING_CONFIG",
                  "JOB_TITLE_QUICK_ADD_ANY_ROLE",
                  "SELF_SCHEDULING_ENABLED",
                  "CONVERSATIONAL_SCHEDULING_ENABLED",
                  "INTERVIEW_LOCATION_ENABLED",
                  "PANELIST_FEEDBACK_AI_SUMMARY",
                  "PANELIST_FEEDBACK_NEW_UI",
                  "PANELIST_PARAMETER_ASSIGNMENT",
                  "CHEAT_DETECTION_ENABLED",
                  "INTERVIEW_QUALITY_ANALYSIS_ENABLED",
                  "CREATE_AI_INTERVIEWS",
                  "AI_PHONE_SCREENING_ENABLED",
                  "AUTO_REDIAL_PHONE_INTERVIEW",
                  "WORKSHORTS",
                  "INTERVIEW_ROUNDS_CARDS",
                  "JOB_OPENING_ADMIN_ONLY_EDIT",
                  "ADVANCED_FOLLOWUP_OPTIONS",
                  "SCREENING_SCREEN_SHARE_ENABLED",
                  "SCREENING_FULLSCREEN_ENFORCEMENT_ENABLED",
                  "SCREENING_LAPTOP_ONLY_ENABLED",
                  "SCREENING_LIVENESS_CHECK_ENABLED",
                  "SCREENING_NO_FACE_COUNTDOWN_LEAVE_ENABLED",
                  "SCREENING_AUDIO_ENHANCEMENTS_ENABLED",
                  "SCREENING_DIRECT_FIRST_ICE_ENABLED",
                  "CANDIDATE_STATUSES_CONFIG",
                  "COMMUNICATION_TEMPLATES",
                  "NOTIFICATION_SETTINGS",
                  "MARLEE_ENABLED",
                  "WHATSAPP_REMINDERS_ENABLED",
                  "REACH_OUT_FROM_RECRUITER_EMAIL",
                  "COMPANY_SENDING_DOMAIN",
                  "PHONE_SCREENING_WHATSAPP_ENABLED",
                  "EMPLOYEE_POOL",
                  "AI_ANALYTICS_ENABLED",
                  "USE_MARKITDOWN",
                  "ADMIN_CAN_BYPASS_APPROVAL",
                  "DARK_MODE_ENABLED",
                  "JD_MEDIA_ENABLED",
                  "JD_HEADER_FOOTER_ENABLED",
                  "CONTRACT_BILLING",
                  "RESUME_PROCESSING_CONCURRENCY",
                  "INTERVIEW_RECORDING_VIDEO_KBPS",
                  "JOB_ACTIVITY_TAB",
                  "JOB_APPLICATIONS_BOARD",
                  "JOBS_BOARD",
                  "CAREER_TALENT_POOL_APPLY",
                  "CAREER_THEMING",
                  "AGENT_MEMORY_ENABLED",
                  "AGENT_MEMORY_PORTABLE_ENABLED",
                  "AGENT_MEMORY_HASHED_IDENTITY_ENABLED",
                  "SOURCING_EXTENSION",
                  "AUDIT_LOGGING_ENABLED",
                  "AI_RATING_CRITERIA_ENABLED",
                  "AUTOMATIONS_ENABLED",
                  "REPORT_PDF_DOWNLOADS_ENABLED",
                  "WHATSAPP_JOB_APPLY_ENABLED"
                ]
              },
              "flag": {
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "key",
              "flag"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "set"
                ]
              },
              "key": {
                "type": "string",
                "enum": [
                  "COMPANY_DISABLED",
                  "COMPANY_READONLY",
                  "SCREENING_INTERVIEW_VARIANT",
                  "ENTERPRISE_DEPARTMENT_MAPPING",
                  "JOB_POSTING_CONFIG",
                  "JOB_TITLE_QUICK_ADD_ANY_ROLE",
                  "SELF_SCHEDULING_ENABLED",
                  "CONVERSATIONAL_SCHEDULING_ENABLED",
                  "INTERVIEW_LOCATION_ENABLED",
                  "PANELIST_FEEDBACK_AI_SUMMARY",
                  "PANELIST_FEEDBACK_NEW_UI",
                  "PANELIST_PARAMETER_ASSIGNMENT",
                  "CHEAT_DETECTION_ENABLED",
                  "INTERVIEW_QUALITY_ANALYSIS_ENABLED",
                  "CREATE_AI_INTERVIEWS",
                  "AI_PHONE_SCREENING_ENABLED",
                  "AUTO_REDIAL_PHONE_INTERVIEW",
                  "WORKSHORTS",
                  "INTERVIEW_ROUNDS_CARDS",
                  "JOB_OPENING_ADMIN_ONLY_EDIT",
                  "ADVANCED_FOLLOWUP_OPTIONS",
                  "SCREENING_SCREEN_SHARE_ENABLED",
                  "SCREENING_FULLSCREEN_ENFORCEMENT_ENABLED",
                  "SCREENING_LAPTOP_ONLY_ENABLED",
                  "SCREENING_LIVENESS_CHECK_ENABLED",
                  "SCREENING_NO_FACE_COUNTDOWN_LEAVE_ENABLED",
                  "SCREENING_AUDIO_ENHANCEMENTS_ENABLED",
                  "SCREENING_DIRECT_FIRST_ICE_ENABLED",
                  "CANDIDATE_STATUSES_CONFIG",
                  "COMMUNICATION_TEMPLATES",
                  "NOTIFICATION_SETTINGS",
                  "MARLEE_ENABLED",
                  "WHATSAPP_REMINDERS_ENABLED",
                  "REACH_OUT_FROM_RECRUITER_EMAIL",
                  "COMPANY_SENDING_DOMAIN",
                  "PHONE_SCREENING_WHATSAPP_ENABLED",
                  "EMPLOYEE_POOL",
                  "AI_ANALYTICS_ENABLED",
                  "USE_MARKITDOWN",
                  "ADMIN_CAN_BYPASS_APPROVAL",
                  "DARK_MODE_ENABLED",
                  "JD_MEDIA_ENABLED",
                  "JD_HEADER_FOOTER_ENABLED",
                  "CONTRACT_BILLING",
                  "RESUME_PROCESSING_CONCURRENCY",
                  "INTERVIEW_RECORDING_VIDEO_KBPS",
                  "JOB_ACTIVITY_TAB",
                  "JOB_APPLICATIONS_BOARD",
                  "JOBS_BOARD",
                  "CAREER_TALENT_POOL_APPLY",
                  "CAREER_THEMING",
                  "AGENT_MEMORY_ENABLED",
                  "AGENT_MEMORY_PORTABLE_ENABLED",
                  "AGENT_MEMORY_HASHED_IDENTITY_ENABLED",
                  "SOURCING_EXTENSION",
                  "AUDIT_LOGGING_ENABLED",
                  "AI_RATING_CRITERIA_ENABLED",
                  "AUTOMATIONS_ENABLED",
                  "REPORT_PDF_DOWNLOADS_ENABLED",
                  "WHATSAPP_JOB_APPLY_ENABLED"
                ]
              },
              "value": {
                "$ref": "#/components/schemas/screeningInterviewVariantSchema"
              }
            },
            "required": [
              "action",
              "key",
              "value"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "set"
                ]
              },
              "key": {
                "type": "string",
                "enum": [
                  "COMPANY_DISABLED",
                  "COMPANY_READONLY",
                  "SCREENING_INTERVIEW_VARIANT",
                  "ENTERPRISE_DEPARTMENT_MAPPING",
                  "JOB_POSTING_CONFIG",
                  "JOB_TITLE_QUICK_ADD_ANY_ROLE",
                  "SELF_SCHEDULING_ENABLED",
                  "CONVERSATIONAL_SCHEDULING_ENABLED",
                  "INTERVIEW_LOCATION_ENABLED",
                  "PANELIST_FEEDBACK_AI_SUMMARY",
                  "PANELIST_FEEDBACK_NEW_UI",
                  "PANELIST_PARAMETER_ASSIGNMENT",
                  "CHEAT_DETECTION_ENABLED",
                  "INTERVIEW_QUALITY_ANALYSIS_ENABLED",
                  "CREATE_AI_INTERVIEWS",
                  "AI_PHONE_SCREENING_ENABLED",
                  "AUTO_REDIAL_PHONE_INTERVIEW",
                  "WORKSHORTS",
                  "INTERVIEW_ROUNDS_CARDS",
                  "JOB_OPENING_ADMIN_ONLY_EDIT",
                  "ADVANCED_FOLLOWUP_OPTIONS",
                  "SCREENING_SCREEN_SHARE_ENABLED",
                  "SCREENING_FULLSCREEN_ENFORCEMENT_ENABLED",
                  "SCREENING_LAPTOP_ONLY_ENABLED",
                  "SCREENING_LIVENESS_CHECK_ENABLED",
                  "SCREENING_NO_FACE_COUNTDOWN_LEAVE_ENABLED",
                  "SCREENING_AUDIO_ENHANCEMENTS_ENABLED",
                  "SCREENING_DIRECT_FIRST_ICE_ENABLED",
                  "CANDIDATE_STATUSES_CONFIG",
                  "COMMUNICATION_TEMPLATES",
                  "NOTIFICATION_SETTINGS",
                  "MARLEE_ENABLED",
                  "WHATSAPP_REMINDERS_ENABLED",
                  "REACH_OUT_FROM_RECRUITER_EMAIL",
                  "COMPANY_SENDING_DOMAIN",
                  "PHONE_SCREENING_WHATSAPP_ENABLED",
                  "EMPLOYEE_POOL",
                  "AI_ANALYTICS_ENABLED",
                  "USE_MARKITDOWN",
                  "ADMIN_CAN_BYPASS_APPROVAL",
                  "DARK_MODE_ENABLED",
                  "JD_MEDIA_ENABLED",
                  "JD_HEADER_FOOTER_ENABLED",
                  "CONTRACT_BILLING",
                  "RESUME_PROCESSING_CONCURRENCY",
                  "INTERVIEW_RECORDING_VIDEO_KBPS",
                  "JOB_ACTIVITY_TAB",
                  "JOB_APPLICATIONS_BOARD",
                  "JOBS_BOARD",
                  "CAREER_TALENT_POOL_APPLY",
                  "CAREER_THEMING",
                  "AGENT_MEMORY_ENABLED",
                  "AGENT_MEMORY_PORTABLE_ENABLED",
                  "AGENT_MEMORY_HASHED_IDENTITY_ENABLED",
                  "SOURCING_EXTENSION",
                  "AUDIT_LOGGING_ENABLED",
                  "AI_RATING_CRITERIA_ENABLED",
                  "AUTOMATIONS_ENABLED",
                  "REPORT_PDF_DOWNLOADS_ENABLED",
                  "WHATSAPP_JOB_APPLY_ENABLED"
                ]
              },
              "value": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "action",
              "key",
              "value"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "reset"
                ]
              },
              "key": {
                "type": "string",
                "enum": [
                  "COMPANY_DISABLED",
                  "COMPANY_READONLY",
                  "SCREENING_INTERVIEW_VARIANT",
                  "ENTERPRISE_DEPARTMENT_MAPPING",
                  "JOB_POSTING_CONFIG",
                  "JOB_TITLE_QUICK_ADD_ANY_ROLE",
                  "SELF_SCHEDULING_ENABLED",
                  "CONVERSATIONAL_SCHEDULING_ENABLED",
                  "INTERVIEW_LOCATION_ENABLED",
                  "PANELIST_FEEDBACK_AI_SUMMARY",
                  "PANELIST_FEEDBACK_NEW_UI",
                  "PANELIST_PARAMETER_ASSIGNMENT",
                  "CHEAT_DETECTION_ENABLED",
                  "INTERVIEW_QUALITY_ANALYSIS_ENABLED",
                  "CREATE_AI_INTERVIEWS",
                  "AI_PHONE_SCREENING_ENABLED",
                  "AUTO_REDIAL_PHONE_INTERVIEW",
                  "WORKSHORTS",
                  "INTERVIEW_ROUNDS_CARDS",
                  "JOB_OPENING_ADMIN_ONLY_EDIT",
                  "ADVANCED_FOLLOWUP_OPTIONS",
                  "SCREENING_SCREEN_SHARE_ENABLED",
                  "SCREENING_FULLSCREEN_ENFORCEMENT_ENABLED",
                  "SCREENING_LAPTOP_ONLY_ENABLED",
                  "SCREENING_LIVENESS_CHECK_ENABLED",
                  "SCREENING_NO_FACE_COUNTDOWN_LEAVE_ENABLED",
                  "SCREENING_AUDIO_ENHANCEMENTS_ENABLED",
                  "SCREENING_DIRECT_FIRST_ICE_ENABLED",
                  "CANDIDATE_STATUSES_CONFIG",
                  "COMMUNICATION_TEMPLATES",
                  "NOTIFICATION_SETTINGS",
                  "MARLEE_ENABLED",
                  "WHATSAPP_REMINDERS_ENABLED",
                  "REACH_OUT_FROM_RECRUITER_EMAIL",
                  "COMPANY_SENDING_DOMAIN",
                  "PHONE_SCREENING_WHATSAPP_ENABLED",
                  "EMPLOYEE_POOL",
                  "AI_ANALYTICS_ENABLED",
                  "USE_MARKITDOWN",
                  "ADMIN_CAN_BYPASS_APPROVAL",
                  "DARK_MODE_ENABLED",
                  "JD_MEDIA_ENABLED",
                  "JD_HEADER_FOOTER_ENABLED",
                  "CONTRACT_BILLING",
                  "RESUME_PROCESSING_CONCURRENCY",
                  "INTERVIEW_RECORDING_VIDEO_KBPS",
                  "JOB_ACTIVITY_TAB",
                  "JOB_APPLICATIONS_BOARD",
                  "JOBS_BOARD",
                  "CAREER_TALENT_POOL_APPLY",
                  "CAREER_THEMING",
                  "AGENT_MEMORY_ENABLED",
                  "AGENT_MEMORY_PORTABLE_ENABLED",
                  "AGENT_MEMORY_HASHED_IDENTITY_ENABLED",
                  "SOURCING_EXTENSION",
                  "AUDIT_LOGGING_ENABLED",
                  "AI_RATING_CRITERIA_ENABLED",
                  "AUTOMATIONS_ENABLED",
                  "REPORT_PDF_DOWNLOADS_ENABLED",
                  "WHATSAPP_JOB_APPLY_ENABLED"
                ]
              }
            },
            "required": [
              "action",
              "key"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "resetAll"
                ]
              }
            },
            "required": [
              "action"
            ]
          }
        ]
      },
      "FinalizeCompanyAssetUploadApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "image",
                  "poster",
                  "video"
                ]
              },
              "src": {
                "type": "string",
                "description": "Public URL of the processed WebP (image, poster)"
              },
              "width": {
                "type": "number"
              },
              "height": {
                "type": "number"
              },
              "url": {
                "type": "string",
                "description": "Public URL of the video file (video)"
              },
              "size": {
                "type": "number",
                "description": "Video size in bytes"
              }
            },
            "required": [
              "kind"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "FinalizeCompanyAssetUploadBodySchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "poster",
              "video"
            ]
          }
        },
        "required": [
          "kind"
        ]
      },
      "formSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          }
        },
        "required": [
          "email",
          "roles"
        ]
      },
      "GenerateAssessmentQuestionBodySchema": {
        "type": "object",
        "properties": {
          "jobDescriptionId": {
            "type": "string",
            "minLength": 1
          },
          "competency": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "definition": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          },
          "channel": {
            "type": "string",
            "enum": [
              "ai",
              "phone"
            ],
            "description": "AI interview or phone screening question"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ],
            "description": "Phone only: the type to write; AI picks when omitted"
          },
          "avoidQuestions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 2000
            },
            "maxItems": 20,
            "description": "The template's other questions for this competency (INT-1132): the new one covers a different aspect"
          },
          "direction": {
            "type": "string",
            "maxLength": 500,
            "description": "Regenerate: how the new question should differ, in the recruiter's words"
          },
          "currentQuestion": {
            "type": "string",
            "maxLength": 2000,
            "description": "Regenerate: the question in the box now, which the new one revises"
          }
        },
        "required": [
          "jobDescriptionId",
          "competency",
          "channel",
          "avoidQuestions"
        ]
      },
      "GenerateAssessmentQuestionResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "question": {
                "type": "string"
              },
              "phoneQuestionType": {
                "type": "string",
                "enum": [
                  "objective",
                  "subjective"
                ]
              },
              "phoneExpectedAnswer": {
                "type": "string"
              }
            },
            "required": [
              "question",
              "phoneQuestionType",
              "phoneExpectedAnswer"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "GenerateAssessmentTemplateBodySchema": {
        "type": "object",
        "properties": {
          "jobDescriptionId": {
            "type": "string",
            "minLength": 1,
            "description": "JD to build the assessment from (must belong to the company)"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10,
            "default": 5,
            "description": "How many competencies to suggest (1–10, default 5)"
          },
          "assessmentCompetencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentCompetencyContextSchema"
            },
            "maxItems": 100,
            "description": "\"Add below\": the competencies already in the assessment, so the AI neither repeats nor overlaps them"
          }
        },
        "required": [
          "jobDescriptionId",
          "count"
        ]
      },
      "GenerateAssessmentTemplateResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "workflowId": {
                "type": "string",
                "description": "Poll GET /assessment/templates/generate/{workflowId} with it"
              }
            },
            "required": [
              "workflowId"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "GenerateAssessmentTemplateStatusParamsSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "GenerateAssessmentTemplateStatusResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "processing",
                  "ready",
                  "failed"
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/GeneratedTemplateSchema"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Set when `ready`: new competencies (none the company already has)"
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Set when `failed`: what to show the recruiter"
              }
            },
            "required": [
              "status",
              "result",
              "error"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "GeneratedCompetencySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Competency name; the library spelling when `existing` is set"
          },
          "definition": {
            "type": "string"
          },
          "aiQuestion": {
            "type": "string",
            "description": "AI interview question (blank when the AI gave none usable)"
          },
          "phoneQuestion": {
            "type": "string"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ]
          },
          "phoneExpectedAnswer": {
            "type": "string",
            "description": "Expected answer for an objective phone question, else empty"
          },
          "existing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LibraryCompetencyRefSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "Library competency with the same name: the row links to it"
          },
          "similarTo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LibraryCompetencyRefSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "Library competency with a near name, suggested only"
          }
        },
        "required": [
          "name",
          "definition",
          "aiQuestion",
          "phoneQuestion",
          "phoneQuestionType",
          "phoneExpectedAnswer",
          "existing",
          "similarTo"
        ]
      },
      "GeneratedTemplateSchema": {
        "type": "object",
        "properties": {
          "templateName": {
            "type": "string"
          },
          "competencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GeneratedCompetencySchema"
            }
          }
        },
        "required": [
          "templateName",
          "competencies"
        ]
      },
      "generateSummaryParamsSchema": {
        "type": "object",
        "properties": {
          "jobPostingIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "maxItems": 200
          },
          "stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/statusValue"
            },
            "maxItems": 50
          },
          "windowHours": {
            "type": "integer",
            "minimum": 1,
            "maximum": 744
          },
          "minScore": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "staleDays": {
            "type": "integer",
            "minimum": 1,
            "maximum": 90
          },
          "topCandidates": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "dashboard",
                "email"
              ]
            },
            "minItems": 1
          }
        },
        "required": [
          "channels"
        ],
        "additionalProperties": false
      },
      "gradeOptionSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "value"
        ]
      },
      "incomingNodeSchema": {
        "type": "object",
        "properties": {
          "externalCode": {
            "$ref": "#/components/schemas/taxonomyCodeSchema"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "parentCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/taxonomyCodeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "level": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "hierarchyPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "isDeprecated": {
            "type": "boolean"
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1024
          }
        },
        "required": [
          "externalCode",
          "label",
          "description",
          "parentCode",
          "level",
          "hierarchyPath",
          "isDeprecated",
          "sourceUrl"
        ]
      },
      "industryTaxonomyEnum": {
        "type": "string",
        "enum": [
          "LINKEDIN_V2",
          "NAICS",
          "BLS"
        ]
      },
      "industryTaxonomyScheduleSchema": {
        "type": "object",
        "properties": {
          "exists": {
            "type": "boolean"
          },
          "cron": {
            "type": [
              "string",
              "null"
            ]
          },
          "paused": {
            "type": "boolean"
          },
          "nextRunTimes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "exists",
          "cron",
          "paused",
          "nextRunTimes"
        ]
      },
      "industryTaxonomySyncRunSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "trigger": {
            "type": "string",
            "enum": [
              "MANUAL",
              "SCHEDULE"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ]
          },
          "workflowId": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestedBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "stats": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "trigger",
          "status",
          "workflowId",
          "requestedBy",
          "startedAt",
          "completedAt",
          "stats",
          "error"
        ]
      },
      "integrationBodySchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50
          },
          "providerName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50
          },
          "secret": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "isActive": {
            "type": "boolean"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "type",
          "providerName",
          "secret"
        ]
      },
      "intervalSchema": {
        "type": "string",
        "enum": [
          "month",
          "year"
        ]
      },
      "InterviewChatApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/viewSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "InterviewChatCodeBodySchema": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/token"
          }
        },
        "required": [
          "token"
        ]
      },
      "InterviewChatCodeSentApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "InterviewChatErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "InterviewChatMessageBodySchema": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/token"
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "What the candidate wrote"
          }
        },
        "required": [
          "token",
          "text"
        ]
      },
      "InterviewChatParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "InterviewChatQuerySchema": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/token"
          }
        },
        "required": [
          "token"
        ]
      },
      "InterviewChatTimezoneBodySchema": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/token"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "IANA timezone, e.g. Asia/Dubai"
          },
          "detected": {
            "type": "boolean",
            "description": "True when the browser detected it: never overrides one the candidate chose"
          }
        },
        "required": [
          "token",
          "timezone"
        ]
      },
      "InterviewChatVerifyBodySchema": {
        "type": "object",
        "properties": {
          "token": {
            "$ref": "#/components/schemas/token"
          },
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$",
            "description": "The code emailed to the candidate"
          }
        },
        "required": [
          "token",
          "code"
        ]
      },
      "InterviewRoundConversationApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/interviewRoundConversationPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "InterviewRoundConversationErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "InterviewRoundConversationParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "InterviewRound id"
          }
        },
        "required": [
          "id"
        ]
      },
      "interviewRoundConversationPayloadSchema": {
        "type": "object",
        "properties": {
          "open": {
            "type": "boolean",
            "description": "The candidate can still write"
          },
          "closedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "chatLink": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to share with the candidate (null once closed or expired)"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "dir": {
                  "type": "string",
                  "enum": [
                    "in",
                    "out",
                    "event"
                  ]
                },
                "text": {
                  "type": "string"
                },
                "at": {
                  "type": "string"
                },
                "event": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "booked",
                        "rescheduled",
                        "cancelled"
                      ]
                    },
                    "start": {
                      "type": "string"
                    },
                    "previousStart": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "start"
                  ]
                }
              },
              "required": [
                "dir",
                "text",
                "at"
              ]
            }
          }
        },
        "required": [
          "open",
          "closedReason",
          "chatLink",
          "messages"
        ]
      },
      "InterviewRoundsPdfQueryParamsSchema": {
        "type": "object",
        "properties": {
          "jobApplicationId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job application whose interview rounds to export"
          }
        },
        "required": [
          "jobApplicationId"
        ]
      },
      "InterviewRoundsPdfResponseSchema": {
        "type": "string",
        "description": "Interview rounds report PDF"
      },
      "inviteHumanInterviewParamsSchema": {
        "type": "object",
        "properties": {
          "panelists": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 256
            },
            "maxItems": 10
          },
          "durationMinutes": {
            "type": "integer",
            "minimum": 15,
            "maximum": 240,
            "default": 45
          },
          "windowDays": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "default": 7
          },
          "timeZone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "default": "Asia/Kolkata"
          },
          "dailyStartTime": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clockTime"
              }
            ]
          },
          "dailyEndTime": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clockTime"
              }
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "candidate_books",
              "panel_picks"
            ],
            "default": "candidate_books"
          }
        },
        "required": [
          "panelists",
          "durationMinutes",
          "windowDays",
          "timeZone",
          "mode"
        ],
        "additionalProperties": false
      },
      "isoDate": {
        "type": "string",
        "description": "ISO date-time"
      },
      "isoDay": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "issueSchema": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Issue category, e.g. MISSED_TURN (free string: new judge categories need no migration)"
          },
          "otherLabel": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256,
            "description": "Free-text label for category OTHER"
          },
          "severity": {
            "$ref": "#/components/schemas/severitySchema"
          },
          "source": {
            "type": "string",
            "enum": [
              "DETECTOR",
              "JUDGE",
              "BOTH"
            ]
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1
          },
          "offsetMs": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Offset from the start of the interview, ms"
          },
          "questionIndex": {
            "type": [
              "integer",
              "null"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "explanation": {
            "type": "string"
          },
          "evidence": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "{ quotes: string[], turnIndexes: number[], timestamps: string[], data: {} }"
          }
        },
        "required": [
          "category",
          "severity",
          "source",
          "title",
          "explanation",
          "evidence"
        ]
      },
      "jdAgentStreamSchema": {
        "type": "object",
        "properties": {
          "conversation_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "user_query": {
            "type": "string",
            "maxLength": 8000
          },
          "existing_jd_content": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 60000
          },
          "jd_title": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300
          },
          "jd_id": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "init",
              "chat",
              "action"
            ]
          },
          "action_id": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          }
        },
        "required": [
          "conversation_id",
          "user_query"
        ]
      },
      "JdHeaderFooterApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/JdHeaderFooterSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JdHeaderFooterParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "JdHeaderFooterSchema": {
        "type": "object",
        "properties": {
          "header": {
            "type": "string",
            "maxLength": 20000,
            "description": "Markdown shown above every job description"
          },
          "footer": {
            "type": "string",
            "maxLength": 20000,
            "description": "Markdown shown below every job description"
          }
        },
        "required": [
          "header",
          "footer"
        ]
      },
      "JdStatusSchema": {
        "type": "string",
        "enum": [
          "DRAFT",
          "REVIEW",
          "APPROVED",
          "PUBLISHED",
          "ARCHIVED"
        ]
      },
      "JobActivityApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/jobActivityItemSchema"
                }
              },
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Pass as `cursor` for the next (older) page; null when there is none"
              }
            },
            "required": [
              "items",
              "nextCursor"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "jobActivityItemSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable event key"
          },
          "at": {
            "type": "string",
            "description": "ISO time the event happened"
          },
          "category": {
            "type": "string",
            "enum": [
              "JOB",
              "APPROVAL",
              "POSITION",
              "CANDIDATE"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "CREATED",
              "VISIBILITY_CHANGED",
              "STATUS_CHANGED",
              "REQUESTED",
              "APPROVED",
              "REJECTED",
              "BYPASSED",
              "START_DATE_SET",
              "ADDED",
              "SUB_STATUS_CHANGED"
            ]
          },
          "actor": {
            "type": "object",
            "properties": {
              "email": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Null for automated events"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Company user name, when the email belongs to one"
              },
              "via": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "web_ui",
                  "marlee_ai",
                  "system"
                ]
              }
            },
            "required": [
              "email",
              "name",
              "via"
            ]
          },
          "candidate": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "applicationId": {
                "type": "number"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "applicationId",
              "name"
            ]
          },
          "positionId": {
            "type": [
              "number",
              "null"
            ]
          },
          "approver": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "level": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "email",
              "name",
              "level"
            ]
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Previous raw value (status / visibility code), when known"
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "description": "New raw value (status / visibility code, start date, upload source)"
          },
          "comment": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "at",
          "category",
          "action",
          "actor",
          "candidate",
          "positionId",
          "approver",
          "from",
          "to",
          "comment"
        ]
      },
      "JobActivityParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job posting id"
          }
        },
        "required": [
          "id"
        ]
      },
      "JobActivityQueryParamsSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "description": "Opaque `nextCursor` from the previous page; omit for the newest page"
          },
          "limit": {
            "default": 50,
            "description": "Events per page (max 100)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "categories": {
            "type": "string",
            "description": "Comma-separated categories to include (JOB, APPROVAL, POSITION, CANDIDATE); omit for all"
          },
          "search": {
            "type": "string",
            "maxLength": 200,
            "description": "Matches candidate name, person name or email, and comments"
          }
        },
        "required": [
          "limit"
        ]
      },
      "JobApplicationApplicantHistoryResponseSchema": {
        "type": "object",
        "properties": {
          "ApplicantHistory": {
            "type": "object",
            "properties": {
              "activeInterviewRounds": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/applicantHistoryInterviewRoundSchema"
                },
                "description": "Active rounds across all of the candidate’s applications"
              },
              "totalApplications": {
                "type": "number"
              },
              "totalActiveApplications": {
                "type": "number"
              },
              "candidateHistory": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/applicantHistoryApplicationSchema"
                },
                "description": "Every live application by the same email in the company"
              },
              "activeScreeningInterviewRounds": {
                "type": "number"
              },
              "activePanelistInterviewRounds": {
                "type": "number"
              }
            },
            "required": [
              "activeInterviewRounds",
              "totalApplications",
              "totalActiveApplications",
              "candidateHistory",
              "activeScreeningInterviewRounds",
              "activePanelistInterviewRounds"
            ]
          }
        },
        "required": [
          "ApplicantHistory"
        ]
      },
      "JobApplicationConversationHistoryApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "threads": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/conversationThreadSchema"
                },
                "description": "Oldest first; empty when there has been no conversation"
              }
            },
            "required": [
              "threads"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobApplicationConversationHistoryParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job application id"
          }
        },
        "required": [
          "id"
        ]
      },
      "jobApplicationDetailPayloadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "jacdId": {
            "type": "number"
          },
          "createdAt": {
            "$ref": "#/components/schemas/isoDate"
          },
          "updatedAt": {
            "$ref": "#/components/schemas/isoDate"
          },
          "statusChangeDate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/isoDate"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyId": {
            "type": "number"
          },
          "jobPostingId": {
            "type": "number"
          },
          "applicationType": {
            "type": "string"
          },
          "uploadSource": {
            "type": "string"
          },
          "uploadFileName": {
            "type": [
              "string",
              "null"
            ]
          },
          "processingAttempts": {
            "type": "number"
          },
          "processingClaimedAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/isoDate"
              },
              {
                "type": "null"
              }
            ]
          },
          "processingWorkflowId": {
            "type": [
              "string",
              "null"
            ]
          },
          "queueEligible": {
            "type": "boolean"
          },
          "processingQueuedAt": {
            "$ref": "#/components/schemas/isoDate"
          },
          "currentCompensation": {
            "type": "number"
          },
          "expectedCompensation": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "scoreSummary": {
            "type": [
              "string",
              "null"
            ]
          },
          "isValidResume": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "deletedAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/isoDate"
              },
              {
                "type": "null"
              }
            ]
          },
          "isDeleted": {
            "type": "boolean"
          },
          "appliedBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceId": {
            "type": [
              "number",
              "null"
            ]
          },
          "refereeEmployeeId": {
            "type": [
              "number",
              "null"
            ]
          },
          "refereePhone": {
            "type": [
              "string",
              "null"
            ]
          },
          "refereeFirstName": {
            "type": [
              "string",
              "null"
            ]
          },
          "refereeLastName": {
            "type": [
              "string",
              "null"
            ]
          },
          "relationshipToCandidate": {
            "type": [
              "string",
              "null"
            ]
          },
          "refereeEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "referralStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedInUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "resumeUrl": {
            "type": "string"
          },
          "currentCompany": {
            "type": [
              "string",
              "null"
            ]
          },
          "spokenLanguages": {
            "type": [
              "string",
              "null"
            ]
          },
          "technicalTools": {
            "type": [
              "string",
              "null"
            ]
          },
          "currentDesignation": {
            "type": [
              "string",
              "null"
            ]
          },
          "previousCompaniesTop3": {
            "type": [
              "string",
              "null"
            ]
          },
          "industryExperienceTop3": {
            "type": [
              "string",
              "null"
            ]
          },
          "latestDegree": {
            "type": [
              "string",
              "null"
            ]
          },
          "latestInstitution": {
            "type": [
              "string",
              "null"
            ]
          },
          "yearOfGraduation": {
            "type": [
              "string",
              "null"
            ]
          },
          "yearsOfExperience": {
            "type": [
              "number",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "peopleManagement": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "noticePeriodInDays": {
            "type": [
              "number",
              "null"
            ]
          },
          "processingStatus": {
            "type": "string"
          },
          "processingStatusProgress": {
            "type": "number"
          },
          "profileVerified": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "naukriJobApplicationId": {
            "type": [
              "string",
              "null"
            ]
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "Stored custom field values plus the display-only aiInterviewScore"
          },
          "workshortAssessments": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "activityHistory": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/looseObject"
            }
          },
          "searchableRoleTitles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "searchableTechnicalSkills": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "searchableCompanies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "searchableLanguages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "searchableQualifications": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isApproved": {
            "type": "boolean"
          },
          "isShortlisted": {
            "type": "boolean"
          },
          "extractedText": {
            "type": [
              "string",
              "null"
            ]
          },
          "applicationDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/looseObject"
            }
          },
          "JobPosting": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "title": {
                "type": "string"
              },
              "createdAt": {
                "$ref": "#/components/schemas/isoDate"
              },
              "customFields": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "propertyNames": {
                  "type": "string"
                }
              },
              "AssessmentTemplate": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/looseObject"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "Company": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "number"
                  },
                  "companySlug": {
                    "type": "string"
                  },
                  "companyName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "companySlug",
                  "companyName"
                ]
              }
            },
            "required": [
              "id",
              "title",
              "createdAt",
              "customFields",
              "AssessmentTemplate",
              "Company"
            ],
            "additionalProperties": true
          },
          "candidateDetails": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "candidate": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "number"
                  }
                },
                "required": [
                  "id"
                ]
              },
              "candidateExperiences": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/looseObject"
                }
              },
              "candidateQualifications": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/looseObject"
                }
              },
              "candidateSkills": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/looseObject"
                }
              }
            },
            "required": [
              "candidate",
              "candidateExperiences",
              "candidateQualifications",
              "candidateSkills"
            ],
            "additionalProperties": true
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/looseObject"
              },
              {
                "type": "null"
              }
            ]
          },
          "JobOffer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/looseObject"
              },
              {
                "type": "null"
              }
            ]
          },
          "candidateNotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/looseObject"
            }
          },
          "ApplicantHistory": {
            "$ref": "#/components/schemas/applicantHistorySchema"
          },
          "hasScreeningInterviewReport": {
            "type": "boolean",
            "description": "The AI screening interview has a result with a summary"
          },
          "hasPhoneReport": {
            "type": "boolean",
            "description": "The phone screening call has a report to open"
          }
        },
        "required": [
          "id",
          "jacdId",
          "createdAt",
          "updatedAt",
          "statusChangeDate",
          "companyId",
          "jobPostingId",
          "applicationType",
          "uploadSource",
          "uploadFileName",
          "processingAttempts",
          "processingClaimedAt",
          "processingWorkflowId",
          "queueEligible",
          "processingQueuedAt",
          "currentCompensation",
          "expectedCompensation",
          "currency",
          "status",
          "score",
          "scoreSummary",
          "isValidResume",
          "deletedAt",
          "isDeleted",
          "appliedBy",
          "sourceId",
          "refereeEmployeeId",
          "refereePhone",
          "refereeFirstName",
          "refereeLastName",
          "relationshipToCandidate",
          "refereeEmail",
          "referralStatus",
          "firstName",
          "lastName",
          "email",
          "phone",
          "linkedInUrl",
          "resumeUrl",
          "currentCompany",
          "spokenLanguages",
          "technicalTools",
          "currentDesignation",
          "previousCompaniesTop3",
          "industryExperienceTop3",
          "latestDegree",
          "latestInstitution",
          "yearOfGraduation",
          "yearsOfExperience",
          "location",
          "peopleManagement",
          "noticePeriodInDays",
          "processingStatus",
          "processingStatusProgress",
          "profileVerified",
          "notes",
          "naukriJobApplicationId",
          "customFields",
          "workshortAssessments",
          "activityHistory",
          "searchableRoleTitles",
          "searchableTechnicalSkills",
          "searchableCompanies",
          "searchableLanguages",
          "searchableQualifications",
          "isApproved",
          "isShortlisted",
          "extractedText",
          "applicationDocuments",
          "JobPosting",
          "candidateDetails",
          "source",
          "JobOffer",
          "candidateNotes",
          "ApplicantHistory",
          "hasScreeningInterviewReport",
          "hasPhoneReport"
        ],
        "additionalProperties": true
      },
      "JobApplicationDetailQueryParamsSchema": {
        "type": "object",
        "properties": {
          "jobOfferSlug": {
            "type": "string",
            "description": "Approval slug: lets an approver open the application from an approval link"
          },
          "includeParsedJD": {
            "type": "string",
            "description": "'true' to include the job posting's parsed job description"
          }
        }
      },
      "JobApplicationDetailResponseSchema": {
        "$ref": "#/components/schemas/jobApplicationDetailPayloadSchema"
      },
      "JobApplicationIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job application id"
          }
        },
        "required": [
          "id"
        ]
      },
      "JobApplicationMessageResponseSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "JobApplicationReprocessResponseSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "status": {
            "type": "string",
            "description": "QUEUED on the already-queued short-circuit"
          },
          "alreadyQueued": {
            "type": "boolean",
            "description": "true when the application was already queued"
          },
          "application": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "companyId": {
                "type": "number"
              },
              "jobPostingId": {
                "type": "number"
              },
              "processingStatus": {
                "type": "string"
              },
              "customFields": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "propertyNames": {
                  "type": "string"
                }
              },
              "alreadyQueued": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "companyId",
              "jobPostingId",
              "processingStatus"
            ],
            "description": "Re-queued application snapshot"
          }
        },
        "required": [
          "success"
        ]
      },
      "JobApplicationsListQueryParamsSchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job posting id — scopes the list to one job and triggers the job-level permission check"
          },
          "refereeEmail": {
            "type": "string",
            "description": "Filter to applications whose referral source is this email"
          },
          "email": {
            "type": "string",
            "description": "Filter to a single applicant email"
          },
          "includeTotal": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Defaults to true when omitted; \"false\" skips the count and returns total: null"
          },
          "shortlistMode": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", restrict to shortlisted applications"
          },
          "excludeShortlistedMode": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", exclude shortlisted applications"
          },
          "shortlistRule": {
            "type": "string",
            "description": "JSON ShortlistRule used to derive shortlist filter clauses"
          },
          "paginationModel": {
            "type": "string",
            "description": "JSON MUI GridPaginationModel {\"page\",\"pageSize\"} — required in practice: the handler dereferences it unconditionally"
          },
          "sortModel": {
            "type": "string",
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]"
          },
          "filterModel": {
            "type": "string",
            "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]), pushed into the full-text search"
          },
          "createdAt": {
            "type": "string",
            "description": "ISO date — return only applications created on/after this timestamp"
          },
          "updatedAt": {
            "type": "string",
            "description": "ISO date — return only applications updated on/after this timestamp"
          }
        },
        "required": [
          "paginationModel"
        ]
      },
      "JobApplicationsListResponseSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "total": {
            "type": [
              "number",
              "null"
            ]
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "nextPage": {
            "type": [
              "number",
              "null"
            ]
          },
          "hasUnprocessed": {
            "type": "boolean",
            "description": "Whether the job still has queued or actively-processing resumes"
          },
          "unprocessedCount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Count of queued/active unprocessed applications — null when includeTotal=false"
          }
        },
        "required": [
          "rows",
          "page",
          "limit",
          "total",
          "hasNextPage",
          "nextPage",
          "hasUnprocessed",
          "unprocessedCount"
        ]
      },
      "JobApplicationsProcessingQueryParamsSchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job posting id (required)"
          },
          "page": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "0-based page index (default 0)"
          },
          "pageSize": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Rows per page (default 10, max 100)"
          },
          "sortModel": {
            "type": "string",
            "description": "JSON MUI GridSortModel array — only the first item is applied, and only for the allow-listed fields: fileName, processingStatus, uploadSource, remarks, fileType"
          },
          "filterModel": {
            "type": "string",
            "description": "JSON MUI GridFilterModel — items are matched in memory against the label fields (statusLabel, fileType, uploadSource, fileName)"
          },
          "search": {
            "type": "string",
            "description": "Case-insensitive substring match over fileName, name, email and statusLabel"
          }
        },
        "required": [
          "jobPostingId"
        ]
      },
      "JobApplicationsProcessingResponseSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "counts": {
            "type": "object",
            "properties": {
              "total": {
                "type": "number"
              },
              "processed": {
                "type": "number"
              },
              "queued": {
                "type": "number"
              },
              "active": {
                "type": "number"
              },
              "failed": {
                "type": "number"
              }
            },
            "required": [
              "total",
              "processed",
              "queued",
              "active",
              "failed"
            ],
            "description": "Processing-status totals across ALL applications for the job (not just the workspace subset)"
          },
          "totalRows": {
            "type": "number",
            "description": "Row count of the filtered workspace list (drives grid pagination)"
          },
          "page": {
            "type": "number"
          },
          "pageSize": {
            "type": "number"
          }
        },
        "required": [
          "rows",
          "counts",
          "totalRows",
          "page",
          "pageSize"
        ]
      },
      "JobAutomationRuleApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/JobAutomationRuleSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobAutomationRuleCreateBodySchema": {
        "type": "object",
        "properties": {
          "definition": {
            "$ref": "#/components/schemas/definitionBody"
          },
          "enabled": {
            "type": "boolean",
            "description": "Default false"
          }
        },
        "required": [
          "definition"
        ]
      },
      "JobAutomationRuleListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobAutomationRuleSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobAutomationRuleOrderApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobAutomationRuleOrderBodySchema": {
        "type": "object",
        "properties": {
          "ruleIds": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Every rule of the job, once, in card order (first card first). Interview cards' order is the round order"
          }
        },
        "required": [
          "ruleIds"
        ]
      },
      "JobAutomationRuleSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "scope": {
            "type": "string",
            "enum": [
              "JOB",
              "PERSONAL",
              "COMPANY_TEMPLATE"
            ]
          },
          "jobPostingId": {
            "type": [
              "number",
              "null"
            ]
          },
          "ownerEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Condition tree: {all|any: [...]}, {not: ...} or {field, op, value}"
          },
          "actions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "[{type, params}]"
          },
          "runOnce": {
            "type": "boolean"
          },
          "catalogItemVersions": {
            "$ref": "#/components/schemas/json"
          },
          "version": {
            "type": "number",
            "description": "Send back as expectedVersion when editing"
          },
          "enabled": {
            "type": "boolean"
          },
          "pausedReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Set when the platform paused the rule"
          },
          "systemKey": {
            "type": [
              "string",
              "null"
            ]
          },
          "systemManaged": {
            "type": "boolean",
            "description": "Created from the job settings (e.g. Candidate Shortlisting); edit it there"
          },
          "position": {
            "type": [
              "number",
              "null"
            ],
            "description": "Card order on the job's Automations tab; interview cards' order is the job's interview round order"
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Why it would not run right now; empty = it would run"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "createdByEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedByEmail": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "scope",
          "jobPostingId",
          "ownerEmail",
          "name",
          "description",
          "triggerType",
          "conditions",
          "actions",
          "runOnce",
          "catalogItemVersions",
          "version",
          "enabled",
          "pausedReason",
          "systemKey",
          "systemManaged",
          "problems",
          "createdAt",
          "updatedAt",
          "createdByEmail",
          "updatedByEmail"
        ]
      },
      "JobAutomationRuleUpdateBodySchema": {
        "type": "object",
        "properties": {
          "definition": {
            "allOf": [
              {
                "$ref": "#/components/schemas/definitionBody"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "expectedVersion": {
            "type": "number",
            "description": "The rule version you loaded"
          }
        },
        "required": [
          "expectedVersion"
        ]
      },
      "JobAutomationRunEntrySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "ruleId": {
            "type": "number"
          },
          "ruleName": {
            "type": "string"
          },
          "ruleVersion": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "SUCCEEDED",
              "FAILED",
              "SKIPPED"
            ]
          },
          "matched": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "conditions_not_met | self_trigger | max_chain_depth | run_once | catalog_unavailable | ..."
          },
          "conditionResult": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "Evaluator trace: each leaf's field, op, value, actual and result"
          },
          "actionResults": {
            "allOf": [
              {
                "$ref": "#/components/schemas/json"
              }
            ],
            "description": "[{index, type, status, result | error}]"
          },
          "applicationId": {
            "type": "number"
          },
          "applicantName": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "createdAt",
          "finishedAt",
          "ruleId",
          "ruleName",
          "ruleVersion",
          "status",
          "matched",
          "skipReason",
          "conditionResult",
          "actionResults",
          "applicationId",
          "applicantName"
        ]
      },
      "JobAutomationRunsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/JobAutomationRunEntrySchema"
                }
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "rows",
              "total"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobAutomationRunsQuerySchema": {
        "type": "object",
        "properties": {
          "ruleId": {
            "description": "Only this rule's runs (default: all the job's rules)",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "includeSkipped": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Also list runs whose conditions didn't match (default: only runs that acted)"
          },
          "page": {
            "default": 0,
            "description": "0-based page",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "page",
          "pageSize"
        ]
      },
      "JobAutomationRunSummaryApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobAutomationRunSummarySchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobAutomationRunSummarySchema": {
        "type": "object",
        "properties": {
          "ruleId": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "triggerType": {
            "type": "string"
          },
          "runs": {
            "type": "number"
          },
          "acted": {
            "type": "number",
            "description": "Conditions matched, so its actions ran (or are running)"
          },
          "skipped": {
            "type": "number"
          },
          "failed": {
            "type": "number"
          },
          "inProgress": {
            "type": "number"
          },
          "lastRunAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "ruleId",
          "name",
          "triggerType",
          "runs",
          "acted",
          "skipped",
          "failed",
          "inProgress",
          "lastRunAt"
        ]
      },
      "JobCandidateMatchingQueryParamsSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Max rows to return, 1–1000 (default 50)"
          },
          "offset": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Row offset, ≥ 0 — superseded by paginationModel (default 0)"
          },
          "maxCandidates": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Candidate pool size scanned by the vector search, 1–1000 (default 50)"
          },
          "experienceFilter": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Minimum years of experience, 0–20 (default 0)"
          },
          "roleSimilarityThreshold": {
            "type": "string",
            "pattern": "^\\d*\\.?\\d+$",
            "description": "Role similarity threshold, 0–1 (default 0.5)"
          },
          "useStandardRolesOnly": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Restrict matching to standardized roles (default false)"
          },
          "useExactWords": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Exact-word matching (default false)"
          },
          "useLocationFilter": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Apply location matching (default false)"
          },
          "useSummaryMatch": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Include summary-match scoring (default false)"
          },
          "useDomainFilter": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Apply domain filtering (default false)"
          },
          "minStarRating": {
            "type": "string",
            "pattern": "^\\d*\\.?\\d*$",
            "description": "Minimum displayed star rating, 0–5; empty/omitted means no floor"
          },
          "minCandidatePoolSize": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Lower bound for the adaptive candidate pool, 1–1000 (default 150)"
          },
          "minRoleSimilarityThreshold": {
            "type": "string",
            "pattern": "^\\d*\\.?\\d+$",
            "description": "Floor when the role threshold relaxes, 0–1 (default 0.65)"
          },
          "thresholdRelaxationStep": {
            "type": "string",
            "pattern": "^\\d*\\.?\\d+$",
            "description": "Step by which the role threshold relaxes per pass, 0–1 (default 0.1)"
          },
          "ivfflatProbes": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "pgvector ivfflat probes, 1–100 (default 10)"
          },
          "refreshCache": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", forces regeneration of the cached match list (one-shot — not part of the grid query key)"
          },
          "shortlistRule": {
            "type": "string",
            "description": "JSON ShortlistRule applied to the talent pool. An empty string suppresses the job's default rule; omitted = job default"
          },
          "paginationModel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/paginationModelParam"
              }
            ],
            "description": "JSON MUI GridPaginationModel {\"page\",\"pageSize\"} — drives limit/offset"
          },
          "sortModel": {
            "$ref": "#/components/schemas/sortModelParam"
          },
          "filterModel": {
            "type": "string",
            "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]), joined into the FTS predicate"
          }
        },
        "required": [
          "paginationModel"
        ]
      },
      "JobCandidateMatchingResponseSchema": {
        "type": "object",
        "properties": {
          "candidates": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "total": {
            "type": "number"
          },
          "hasMore": {
            "type": "boolean"
          },
          "searchMeta": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "Vector-search execution metadata"
          },
          "jobDetails": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "title": {
                "type": "string"
              },
              "parsedJobDescription": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "propertyNames": {
                  "type": "string"
                }
              }
            },
            "required": [
              "id",
              "title"
            ],
            "description": "Job fields the grid needs for the experience filter"
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "nextPage": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "candidates",
          "total",
          "hasMore",
          "jobDetails",
          "page",
          "limit",
          "hasNextPage",
          "nextPage"
        ]
      },
      "jobCandidateProfileSchema": {
        "type": "object",
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "responsibilities": {
            "$ref": "#/components/schemas/textList"
          },
          "must_have_skills": {
            "$ref": "#/components/schemas/textList"
          },
          "nice_to_have_skills": {
            "$ref": "#/components/schemas/textList"
          },
          "experience": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "work_mode": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "location": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "working_hours": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "team": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "reports_to": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "travel": {
            "$ref": "#/components/schemas/textOrNull"
          },
          "benefits": {
            "$ref": "#/components/schemas/textList"
          },
          "other_details": {
            "$ref": "#/components/schemas/textList"
          }
        }
      },
      "JobDescriptionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/JobDescriptionSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobDescriptionByIdQuerySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "description": "Accepted for compatibility; ignored — the route is public"
          },
          "companySlug": {
            "type": "string",
            "description": "Accepted for compatibility; ignored — the route is public"
          }
        }
      },
      "JobDescriptionDeleteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobDescriptionIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^c[^\\s-]{8,}$",
            "description": "Job description id"
          }
        },
        "required": [
          "id"
        ]
      },
      "JobDescriptionLinkedJobsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "jobs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/JobDescriptionLinkedJobSchema"
                }
              }
            },
            "required": [
              "jobs"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobDescriptionLinkedJobSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Job posting id"
          },
          "title": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "required": [
          "id",
          "title",
          "createdAt"
        ]
      },
      "JobDescriptionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/JdStatusSchema"
          },
          "isFinal": {
            "type": "boolean"
          },
          "companyId": {
            "type": "number"
          },
          "createdBy": {
            "type": "string"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "referenceJD": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/referenceJDSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "linkedJobCount": {
            "type": "number",
            "description": "Number of live job postings linked to this JD"
          },
          "companyHeader": {
            "type": "string",
            "description": "Company-wide markdown shown above every job description (single fetch only)"
          },
          "companyFooter": {
            "type": "string",
            "description": "Company-wide markdown shown below every job description (single fetch only)"
          }
        },
        "required": [
          "id",
          "title",
          "content",
          "status",
          "isFinal",
          "companyId",
          "createdBy",
          "createdAt",
          "updatedAt"
        ]
      },
      "JobDescriptionsListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "jds": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/JobDescriptionSchema"
                }
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "number"
                  },
                  "limit": {
                    "type": "number"
                  },
                  "total": {
                    "type": "number"
                  },
                  "totalPages": {
                    "type": "number"
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "page",
                  "limit",
                  "total",
                  "totalPages",
                  "hasMore"
                ]
              }
            },
            "required": [
              "jds",
              "pagination"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobDescriptionsListQuerySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Company id — when present it must match the session company"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JdStatusSchema"
              },
              {
                "type": "string",
                "enum": [
                  "all"
                ]
              }
            ],
            "default": "all",
            "description": "Filter by status; \"all\" (default) excludes archived descriptions"
          },
          "search": {
            "type": "string",
            "description": "Filter by title"
          },
          "page": {
            "type": "string",
            "pattern": "^\\d+$",
            "default": "1",
            "description": "One-based page index (default 1)"
          },
          "limit": {
            "type": "string",
            "pattern": "^\\d+$",
            "default": "10",
            "description": "Page size (default 10, max 1000)"
          }
        }
      },
      "JobDetailQueryParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "description": "Company slug of the signed-in user"
          }
        }
      },
      "jobFormFieldSchema": {
        "type": "object",
        "properties": {
          "fieldName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "label": {
            "type": "string",
            "maxLength": 120
          },
          "type": {
            "type": "string",
            "minLength": 1
          },
          "isStandard": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "required": {
            "type": "boolean"
          },
          "fullWidth": {
            "type": "boolean"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/jobFormOptionSchema"
            },
            "maxItems": 500
          },
          "defaultValue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/optionValueSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "dependsOn": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "fieldName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "showWhen": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 120,
                "description": "Shown only while the parent has this value; null: options follow the parent"
              }
            },
            "required": [
              "fieldName",
              "showWhen"
            ]
          },
          "optionsByParent": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/jobFormOptionSchema"
              },
              "maxItems": 500
            },
            "propertyNames": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Options per parent value"
          },
          "creatable": {
            "type": "boolean"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 120
          },
          "helperText": {
            "type": "string",
            "maxLength": 300
          },
          "showInJobsList": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Custom fields: a Jobs list column from the start; null when the grid ignores it"
          },
          "isNew": {
            "type": "boolean"
          }
        },
        "required": [
          "fieldName",
          "label",
          "type",
          "isStandard",
          "visible",
          "required",
          "fullWidth",
          "defaultValue",
          "dependsOn",
          "creatable",
          "placeholder",
          "helperText",
          "showInJobsList"
        ]
      },
      "jobFormOptionSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 120
          },
          "value": {
            "$ref": "#/components/schemas/optionValueSchema"
          },
          "isNew": {
            "type": "boolean"
          }
        },
        "required": [
          "label",
          "value"
        ]
      },
      "jobFormSectionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "formSection": {
            "type": "string",
            "minLength": 1
          },
          "title": {
            "type": "string",
            "maxLength": 120
          },
          "editable": {
            "type": "boolean"
          },
          "managedFieldCount": {
            "type": "integer",
            "minimum": 0
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/jobFormFieldSchema"
            },
            "maxItems": 300
          },
          "isNew": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "formSection",
          "title",
          "editable",
          "managedFieldCount",
          "fields"
        ]
      },
      "JobIdParams": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job posting id"
          }
        },
        "required": [
          "id"
        ]
      },
      "JobIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job posting id"
          }
        },
        "required": [
          "id"
        ]
      },
      "JobPostingConfigApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/jobPostingConfigPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobPostingConfigBodySchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "The `version` from GET; a save over a job form changed since is rejected with 409"
          },
          "locationMode": {
            "type": "string",
            "enum": [
              "text",
              "single-select"
            ]
          },
          "locationOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            }
          },
          "titleMode": {
            "type": "string",
            "enum": [
              "text",
              "single-select"
            ]
          },
          "titleOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            }
          },
          "currencyOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            },
            "minItems": 1
          },
          "countryOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            },
            "minItems": 1
          },
          "defaults": {
            "type": "object",
            "properties": {
              "location": {
                "$ref": "#/components/schemas/defaultTextSchema"
              },
              "title": {
                "$ref": "#/components/schemas/defaultTextSchema"
              },
              "currency": {
                "$ref": "#/components/schemas/defaultTextSchema"
              },
              "country": {
                "$ref": "#/components/schemas/defaultTextSchema"
              },
              "departmentId": {
                "type": [
                  "integer",
                  "null"
                ],
                "exclusiveMinimum": 0
              }
            },
            "description": "Defaults for new jobs. A key left out keeps the saved default; null clears it. A dropdown default must be one of its options."
          },
          "noOfOpeningsVisible": {
            "type": "boolean",
            "description": "Whether the job form asks for the number of openings. Left out keeps the saved setting."
          }
        },
        "required": [
          "version",
          "locationMode",
          "locationOptions",
          "titleMode",
          "titleOptions",
          "currencyOptions",
          "countryOptions"
        ]
      },
      "JobPostingConfigParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "jobPostingConfigPayloadSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Token of the stored job form; send it back on save"
          },
          "presentFields": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "location",
                "title",
                "currency",
                "country",
                "departmentId",
                "noOfOpenings"
              ]
            }
          },
          "hiddenFields": {
            "type": "object",
            "properties": {
              "location": {
                "type": "boolean"
              },
              "title": {
                "type": "boolean"
              },
              "currency": {
                "type": "boolean"
              },
              "country": {
                "type": "boolean"
              },
              "departmentId": {
                "type": "boolean"
              },
              "noOfOpenings": {
                "type": "boolean"
              }
            }
          },
          "defaults": {
            "type": "object",
            "properties": {
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "departmentId": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "location",
              "title",
              "currency",
              "country",
              "departmentId"
            ]
          },
          "locationMode": {
            "$ref": "#/components/schemas/configModeSchema"
          },
          "titleMode": {
            "$ref": "#/components/schemas/configModeSchema"
          },
          "locationOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            }
          },
          "titleOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            }
          },
          "currencyOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            }
          },
          "countryOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionSchema"
            }
          }
        },
        "required": [
          "version",
          "presentFields",
          "hiddenFields",
          "defaults",
          "locationMode",
          "titleMode",
          "locationOptions",
          "titleOptions",
          "currencyOptions",
          "countryOptions"
        ]
      },
      "JobPostingFormApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/JobPostingFormModelSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobPostingFormBodySchema": {
        "$ref": "#/components/schemas/JobPostingFormModelSchema"
      },
      "JobPostingFormModelSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "Token of the stored layout; send it back on save"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/jobFormSectionSchema"
            },
            "maxItems": 50
          }
        },
        "required": [
          "version",
          "sections"
        ]
      },
      "JobPostingFormParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "jobRuleCreateSchema": {
        "type": "object",
        "properties": {
          "definition": {
            "$ref": "#/components/schemas/templateDefinitionSchema"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "definition"
        ],
        "additionalProperties": false
      },
      "jobRuleOrderSchema": {
        "type": "object",
        "properties": {
          "ruleIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "maxItems": 200
          }
        },
        "required": [
          "ruleIds"
        ],
        "additionalProperties": false
      },
      "jobRulePreviewSchema": {
        "type": "object",
        "properties": {
          "triggerType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "conditions": {}
        },
        "required": [
          "conditions"
        ],
        "additionalProperties": false
      },
      "jobRuleUpdateSchema": {
        "type": "object",
        "properties": {
          "definition": {
            "allOf": [
              {
                "$ref": "#/components/schemas/templateDefinitionSchema"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "expectedVersion": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "JobsErrorSchema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ]
      },
      "JobsListQueryParamsSchema": {
        "type": "object",
        "properties": {
          "includeJobDetails": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", each row includes Department, Approvers/JobApprovers and a jobApplications subset"
          },
          "paginationModel": {
            "$ref": "#/components/schemas/paginationModelParam"
          },
          "sortModel": {
            "$ref": "#/components/schemas/sortModelParam"
          },
          "filterModel": {
            "type": "string",
            "description": "JSON MUI GridFilterModel. Free-text search goes in `searchTerms` (string[]) on the same object — tokenized server-side into title/location/department/email/status matches"
          },
          "externalJobId": {
            "type": "string",
            "description": "Exact-match filter on the external job id"
          },
          "showAnalytics": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "When \"true\", include application-count analytics metrics per job"
          }
        }
      },
      "JobsListResponseSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "rowCount": {
            "type": "number"
          },
          "total": {
            "type": "number"
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "nextPage": {
            "type": [
              "number",
              "null"
            ]
          },
          "executionPath": {
            "type": "string"
          },
          "executionTime": {
            "type": "number"
          },
          "searchMeta": {
            "type": "null"
          }
        },
        "required": [
          "rows",
          "rowCount",
          "total",
          "page",
          "limit",
          "hasNextPage",
          "nextPage",
          "executionPath",
          "executionTime",
          "searchMeta"
        ]
      },
      "JobSourcedCandidateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/jobSourcedCandidateRowSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidateDeleteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidateInviteDraftApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "channel": {
                "type": "string",
                "enum": [
                  "email",
                  "connection_note",
                  "inmail"
                ]
              },
              "subject": {
                "type": "string",
                "description": "Email or InMail subject; empty for a connection note"
              },
              "body": {
                "type": "string",
                "description": "Email: body only (the email adds the greeting, job ID, apply button and signature). InMail: includes the apply link."
              },
              "personalisation": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Profile facts the draft relies on"
              },
              "applyUrl": {
                "type": "string",
                "description": "The job's career-site apply page"
              }
            },
            "required": [
              "channel",
              "subject",
              "body",
              "personalisation",
              "applyUrl"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidateInviteDraftBodySchema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "connection_note",
              "inmail"
            ]
          },
          "connectionNoteLimit": {
            "type": "integer",
            "enum": [
              200,
              300
            ],
            "default": 200,
            "description": "LinkedIn note limit: 200 free, 300 Premium"
          }
        },
        "required": [
          "channel",
          "connectionNoteLimit"
        ],
        "additionalProperties": false
      },
      "JobSourcedCandidateInviteEmailApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "applyUrl": {
                "type": "string"
              },
              "sourcedCandidate": {
                "$ref": "#/components/schemas/jobSourcedCandidateRowSchema"
              }
            },
            "required": [
              "applyUrl",
              "sourcedCandidate"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidateInviteEmailBodySchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "maxLength": 256,
            "format": "email",
            "description": "Usually the person's stored email; saved as their email once sent"
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3000,
            "description": "Plain text; blank lines separate paragraphs"
          },
          "resend": {
            "type": "boolean",
            "description": "Send again to someone already emailed an invite (otherwise 409)"
          }
        },
        "required": [
          "to",
          "subject",
          "message"
        ],
        "additionalProperties": false
      },
      "JobSourcedCandidateInviteEmailPreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "html": {
                "type": "string"
              },
              "applyUrl": {
                "type": "string"
              }
            },
            "required": [
              "html",
              "applyUrl"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidateInviteEmailPreviewBodySchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3000,
            "description": "Plain text; blank lines separate paragraphs"
          }
        },
        "required": [
          "message"
        ],
        "additionalProperties": false
      },
      "JobSourcedCandidateMoveApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "jobApplicationId": {
                "type": "number"
              }
            },
            "required": [
              "jobApplicationId"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidateParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job posting id"
          },
          "sourcedCandidateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "id",
          "sourcedCandidateId"
        ]
      },
      "jobSourcedCandidateRowSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "jobPostingId": {
            "type": "number"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": [
              "string",
              "null"
            ]
          },
          "headline": {
            "type": [
              "string",
              "null"
            ]
          },
          "currentCompany": {
            "type": [
              "string",
              "null"
            ]
          },
          "currentDesignation": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedInUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "profile": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "The full profile the recruiter reviewed in the extension"
          },
          "pageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "Site the profile came from, e.g. LinkedIn"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ADDED",
              "CONTACTED",
              "INVITED",
              "APPLIED",
              "MOVED"
            ]
          },
          "addedByEmail": {
            "type": "string"
          },
          "contactedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "invitedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "appliedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "archivedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobApplicationId": {
            "type": [
              "number",
              "null"
            ]
          },
          "inviteEmail": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "status": {
                "type": "string",
                "description": "Latest delivery event: queued, sent, delivered, bounced, failed…"
              },
              "timestamp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "status",
              "timestamp"
            ],
            "description": "Latest invite email; on list rows only, null when never emailed"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "jobPostingId",
          "firstName",
          "lastName",
          "headline",
          "currentCompany",
          "currentDesignation",
          "location",
          "linkedInUrl",
          "email",
          "phone",
          "profile",
          "pageUrl",
          "source",
          "note",
          "status",
          "addedByEmail",
          "contactedAt",
          "invitedAt",
          "appliedAt",
          "archivedAt",
          "jobApplicationId"
        ]
      },
      "JobSourcedCandidatesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/jobSourcedCandidateRowSchema"
                }
              },
              "total": {
                "type": "number",
                "description": "Matching the filters"
              },
              "activeCount": {
                "type": "number",
                "description": "Not archived, for the tab badge"
              },
              "emailEnabled": {
                "type": "boolean",
                "description": "Whether the company may send invite emails"
              }
            },
            "required": [
              "rows",
              "total",
              "activeCount",
              "emailEnabled"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "JobSourcedCandidatesParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job posting id"
          }
        },
        "required": [
          "id"
        ]
      },
      "JobSourcedCandidatesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "page": {
            "default": 0,
            "description": "0-based page",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "description": "The Sourced tab loads up to 500 at once",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "search": {
            "type": "string",
            "maxLength": 200,
            "description": "Name, email, headline, company, role or location"
          },
          "archived": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "default": "false",
            "description": "true lists the archived people instead"
          }
        },
        "required": [
          "page",
          "pageSize",
          "archived"
        ]
      },
      "JobSourcedCandidateUpdateBodySchema": {
        "type": "object",
        "properties": {
          "contacted": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Contacted outside intalent.ai, e.g. a LinkedIn note"
          },
          "archived": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "JobTitleOptionParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "json": {},
      "jsonValueSchema": {
        "anyOf": [
          {},
          {
            "type": "null"
          }
        ]
      },
      "kind": {
        "type": "string",
        "enum": [
          "TRIGGER",
          "CONDITION_FIELD",
          "ACTION"
        ]
      },
      "kindSchema": {
        "type": "string",
        "enum": [
          "base",
          "language_addendum"
        ],
        "description": "base: the template for every language; language_addendum: extra instructions for one language"
      },
      "languageSchema": {
        "type": "string",
        "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$",
        "description": "Language code (e.g. hi or hi-IN)"
      },
      "LibraryCompetencyRefSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "limitBody": {
        "type": "object",
        "properties": {
          "min": {
            "type": "number"
          },
          "max": {
            "type": "number"
          },
          "allowed": {
            "type": "array",
            "items": {}
          },
          "maxLength": {
            "type": "number"
          }
        }
      },
      "limitsSchema": {
        "type": "object",
        "properties": {
          "maxUsers": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxActiveJobs": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxJobsTotal": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxScreeningInterviewsPerMonth": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxScreeningInterviewsTotal": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxHumanInterviewsPerMonth": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxJobDescriptions": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxAssessments": {
            "type": [
              "integer",
              "null"
            ]
          },
          "maxResumeParsesPerMonth": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "linkBodySchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/mixableRolesSchema"
            },
            "minItems": 1,
            "maxItems": 4
          }
        },
        "required": [
          "email",
          "roles"
        ]
      },
      "listQuerySchema": {
        "type": "object",
        "properties": {
          "page": {
            "default": 1,
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "maxLength": 200
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/uploadStatusSchema"
            }
          }
        },
        "required": [
          "page",
          "pageSize"
        ]
      },
      "looseObject": {
        "type": "object",
        "properties": {},
        "additionalProperties": true
      },
      "MailboxProcessApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/mailboxProcessPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "MailboxProcessBodySchema": {
        "type": "object",
        "properties": {
          "extractionResponse": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "talent-ai extraction result: job_id, extracted_data"
          },
          "emailSubject": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailBody": {
            "type": [
              "string",
              "null"
            ]
          },
          "senderEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "resumeURL": {
            "type": "string",
            "minLength": 1,
            "description": "Stored resume URL"
          },
          "candidateEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "Company resolved by POST /api/temporal/mailbox/resolve"
          }
        },
        "required": [
          "resumeURL",
          "companyId"
        ]
      },
      "mailboxProcessPayloadSchema": {
        "type": "object",
        "properties": {
          "processed_as": {
            "type": "string",
            "enum": [
              "job_application",
              "candidate"
            ]
          }
        },
        "required": [
          "processed_as"
        ],
        "additionalProperties": true
      },
      "MailboxResolveApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/mailboxResolvePayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "MailboxResolveBodySchema": {
        "type": "object",
        "properties": {
          "senderEmail": {
            "type": "string",
            "format": "email",
            "description": "From address of the inbound email"
          }
        },
        "required": [
          "senderEmail"
        ]
      },
      "mailboxResolvePayloadSchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "companyId"
        ]
      },
      "mappedNodeSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "taxonomy": {
            "$ref": "#/components/schemas/industryTaxonomyEnum"
          },
          "externalCode": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "hierarchyPath": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "taxonomy",
          "externalCode",
          "label",
          "hierarchyPath"
        ]
      },
      "mixableRolesSchema": {
        "type": "string"
      },
      "moveToStageParamsSchema": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/statusValue"
          },
          "applicationStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/statusValue"
              }
            ]
          },
          "subStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/statusValue"
              }
            ]
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "MyCompaniesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "companies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/myCompanyPayloadSchema"
                }
              }
            },
            "required": [
              "companies"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "myCompanyPayloadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "logo": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "logo",
          "createdAt"
        ]
      },
      "MyNotificationPreferencesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                },
                "propertyNames": {
                  "type": "string"
                }
              }
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "MyNotificationPreferencesParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "MyNotificationPreferencesPatchBodySchema": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            },
            "propertyNames": {
              "type": "string"
            },
            "description": "Email key → on/off for you"
          }
        },
        "required": [
          "emails"
        ],
        "additionalProperties": false
      },
      "nameSchema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "nodeSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "taxonomyVersion": {
            "type": "string"
          },
          "externalCode": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "level": {
            "type": "number"
          },
          "hierarchyPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "parent": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "number"
              },
              "externalCode": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "externalCode",
              "label"
            ]
          },
          "isDeprecated": {
            "type": "boolean"
          },
          "firstSeenAt": {
            "type": "string"
          },
          "lastSeenAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "taxonomyVersion",
          "externalCode",
          "label",
          "description",
          "level",
          "hierarchyPath",
          "parent",
          "isDeprecated",
          "firstSeenAt",
          "lastSeenAt"
        ]
      },
      "NotificationIdPathParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Notification id"
          }
        },
        "required": [
          "id"
        ]
      },
      "NotificationsApiResponseSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/notificationsListResponseSchema"
          },
          {
            "$ref": "#/components/schemas/notificationsUnreadSummaryResponseSchema"
          }
        ]
      },
      "notificationSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "createdAt": {
            "type": "string",
            "description": "ISO 8601 timestamp"
          },
          "message": {
            "type": "string"
          },
          "isRead": {
            "type": "boolean"
          },
          "notificationType": {
            "type": [
              "string",
              "null"
            ]
          },
          "fromUserEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "toUserEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "link": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "message",
          "isRead",
          "notificationType",
          "fromUserEmail",
          "toUserEmail",
          "link"
        ]
      },
      "NotificationsErrorResponseSchema": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ]
      },
      "NotificationSettingsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/notificationSettingsSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "NotificationSettingsParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "NotificationSettingsPatchBodySchema": {
        "type": "object",
        "properties": {
          "emailsEnabled": {
            "type": "boolean",
            "description": "Company master switch (\"Send hiring emails\")"
          },
          "emails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/booleanMap"
              }
            ],
            "description": "Email key → on/off"
          },
          "statusEmails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/booleanMap"
              }
            ],
            "description": "Status value → whether moving a candidate there emails them"
          }
        },
        "additionalProperties": false
      },
      "notificationSettingsSchema": {
        "type": "object",
        "properties": {
          "config": {
            "type": "object",
            "properties": {
              "emailsEnabled": {
                "type": "boolean"
              },
              "emails": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/booleanMap"
                  }
                ]
              },
              "statusEmails": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/booleanMap"
                  }
                ]
              }
            }
          },
          "platformEnabled": {
            "type": "boolean",
            "description": "Superadmin email switch — off means nothing is sent"
          },
          "featureEnabled": {
            "type": "boolean",
            "description": "NOTIFICATION_SETTINGS flag — off means the saved config is ignored"
          },
          "statusOptions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "isCustom": {
                  "type": "boolean"
                },
                "defaultOn": {
                  "type": "boolean"
                }
              },
              "required": [
                "value",
                "label",
                "isCustom",
                "defaultOn"
              ]
            }
          },
          "statuses": {
            "type": "object",
            "properties": {
              "statuses": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/statusDefinitionSchema"
                }
              }
            },
            "required": [
              "statuses"
            ]
          },
          "visibleEmailKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Catalogue emails this company can see (feature-flagged ones filtered out)"
          }
        },
        "required": [
          "config",
          "platformEnabled",
          "featureEnabled",
          "statusOptions",
          "statuses",
          "visibleEmailKeys"
        ]
      },
      "notificationsListResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/notificationSchema"
            }
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "message"
        ]
      },
      "NotificationsMessageResponseSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "NotificationsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "unreadCount": {
            "type": "string",
            "description": "`true` returns only the unread count and the latest unread notification, not the list"
          }
        }
      },
      "notificationsUnreadSummaryResponseSchema": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number"
          },
          "latestNotification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/notificationSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "count",
          "latestNotification"
        ]
      },
      "NotificationsUpdateQueryParamsSchema": {
        "type": "object",
        "properties": {
          "notificationId": {
            "type": "string",
            "description": "Marks just this notification read; omitted marks all of them read"
          }
        }
      },
      "notifyParamsSchema": {
        "type": "object",
        "properties": {
          "inApp": {
            "type": "boolean",
            "default": true
          },
          "emailDigest": {
            "type": "string",
            "enum": [
              "off",
              "hourly",
              "daily"
            ],
            "default": "off"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "maxLength": 256
            },
            "minItems": 1,
            "maxItems": 20
          }
        },
        "required": [
          "inApp",
          "emailDigest"
        ],
        "additionalProperties": false
      },
      "notifyRecruitersParamsSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "objectiveEvaluationSchema": {
        "type": "object",
        "properties": {
          "questionIndex": {
            "type": "integer",
            "minimum": 0,
            "description": "0-based index into ScreeningCall.questions"
          },
          "question": {
            "type": "string",
            "description": "Question text as asked"
          },
          "expectedAnswer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expected answer from the competency (phone channel); null when none is set"
          },
          "candidateAnswer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Candidate's answer extracted from the transcript; null when none was found"
          },
          "isCorrect": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Verdict; true = correct, false = incorrect or irrelevant, null = answered (no expected answer) or skipped"
          },
          "status": {
            "type": "string",
            "enum": [
              "correct",
              "incorrect",
              "answered",
              "irrelevant",
              "skipped"
            ],
            "description": "correct | incorrect | answered (no expected answer, relevant answer) | irrelevant (answer does not address the question) | skipped (declined / no answer). Optional for older talent-ai payloads: then derived from isCorrect (null stays null = not evaluated)"
          },
          "confidence": {
            "type": [
              "number",
              "null"
            ],
            "description": "Evaluator confidence, 0..1"
          },
          "reasoning": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short justification for the verdict"
          }
        },
        "required": [
          "questionIndex",
          "question",
          "expectedAnswer",
          "candidateAnswer",
          "isCorrect",
          "confidence",
          "reasoning"
        ]
      },
      "objectSchema": {
        "type": "object",
        "properties": {
          "customFields": {
            "$ref": "#/components/schemas/customShape",
            "default": {}
          },
          "screeningConfig": {
            "$ref": "#/components/schemas/screeningConfigSchema"
          },
          "phoneScreeningConfig": {
            "$ref": "#/components/schemas/phoneScreeningConfigSchema"
          }
        },
        "required": [
          "customFields"
        ]
      },
      "OfferedSystemTemplateListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferedSystemTemplateSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "OfferedSystemTemplateSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "$ref": "#/components/schemas/json"
          },
          "actions": {
            "$ref": "#/components/schemas/json"
          },
          "runOnce": {
            "type": "boolean"
          }
        },
        "required": [
          "key",
          "version",
          "name",
          "description",
          "category",
          "triggerType",
          "conditions",
          "actions",
          "runOnce"
        ]
      },
      "OnboardingCompleteCheckoutApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/onboardingCompleteCheckoutPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingCompleteCheckoutBodySchema": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "sessionId"
        ]
      },
      "onboardingCompleteCheckoutPayloadSchema": {
        "type": "object",
        "properties": {
          "provisioned": {
            "type": "boolean"
          },
          "companySlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "provisionedCompanyId": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "provisioned",
          "companySlug"
        ]
      },
      "OnboardingDraftApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/onboardingDraftSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingDraftPlanSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "trialPeriodDays": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "isFreemium",
          "amountCents",
          "currency",
          "interval",
          "trialPeriodDays"
        ]
      },
      "onboardingDraftSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companySlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "planId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "provisionedCompanyId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "plan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/onboardingDraftPlanSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "emailVerified",
          "companyName",
          "companySlug",
          "companyLogoUrl",
          "domain",
          "planId",
          "status",
          "provisionedCompanyId",
          "createdAt",
          "updatedAt"
        ]
      },
      "onboardingOrgBodySchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "companySlug": {
            "$ref": "#/components/schemas/companySlugSchema"
          },
          "companyLogoUrl": {
            "type": "string",
            "minLength": 1,
            "description": "Storage object ref or absolute storage URL"
          },
          "domain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/companyDomainSchema"
              }
            ]
          }
        },
        "required": [
          "companyName",
          "companySlug",
          "companyLogoUrl"
        ]
      },
      "OnboardingPlansApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/onboardingPublicPlanSchema"
            }
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingPublicPlanSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "includedCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditGrantMode": {
            "type": [
              "string",
              "null"
            ]
          },
          "annualDiscountPercent": {
            "type": "integer"
          },
          "annualAmountCents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "interval": {
            "type": "string"
          },
          "trialPeriodDays": {
            "type": "integer"
          },
          "limits": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "isFreemium",
          "amountCents",
          "currency",
          "interval",
          "trialPeriodDays"
        ]
      },
      "OnboardingSelectPlanApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/onboardingSelectPlanProvisionedSchema"
              },
              {
                "$ref": "#/components/schemas/onboardingSelectPlanCheckoutSchema"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingSelectPlanBodySchema": {
        "type": "object",
        "properties": {
          "planId": {
            "type": "integer",
            "minimum": 1
          },
          "interval": {
            "type": "string",
            "enum": [
              "month",
              "year"
            ],
            "default": "month"
          }
        },
        "required": [
          "planId"
        ]
      },
      "onboardingSelectPlanCheckoutSchema": {
        "type": "object",
        "properties": {
          "provisioned": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "checkoutUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "sessionId": {
            "type": "string"
          }
        },
        "required": [
          "provisioned",
          "checkoutUrl",
          "sessionId"
        ]
      },
      "onboardingSelectPlanProvisionedSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "companySlug": {
            "type": "string"
          },
          "companyLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "planId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "provisionedCompanyId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "plan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/onboardingDraftPlanSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "provisioned": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "checkoutUrl": {
            "type": "null"
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "emailVerified",
          "companyName",
          "companySlug",
          "companyLogoUrl",
          "domain",
          "planId",
          "status",
          "provisionedCompanyId",
          "createdAt",
          "updatedAt",
          "provisioned",
          "checkoutUrl"
        ]
      },
      "onboardingSignupCompleteSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "password": {
            "type": "string",
            "minLength": 8
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$"
          }
        },
        "required": [
          "email",
          "password",
          "name",
          "code"
        ]
      },
      "onboardingSignupSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "password": {
            "type": "string",
            "minLength": 8
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "acceptTerms": {
            "type": "boolean"
          }
        },
        "required": [
          "email",
          "password",
          "name",
          "acceptTerms"
        ]
      },
      "OnboardingSignupStartApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/onboardingSignupStartResponseSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingSignupStartResponseSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          }
        },
        "required": [
          "email",
          "name",
          "emailVerified"
        ]
      },
      "onboardingSignupStartSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "format": "email"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "email",
          "name"
        ]
      },
      "OnboardingUploadLogoApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/onboardingUploadLogoPayloadSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingUploadLogoMultipartSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug; defaults to draft slug when omitted"
          },
          "logo": {
            "description": "Logo image file (PNG, JPG, JPEG, or SVG)"
          }
        },
        "required": [
          "logo"
        ]
      },
      "onboardingUploadLogoPayloadSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      },
      "onboardingVerifyCodeBodySchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$"
          }
        },
        "required": [
          "code"
        ]
      },
      "OnboardingVerifyStatusResendApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/onboardingVerifyStatusResendSchema"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success",
          "data"
        ]
      },
      "onboardingVerifyStatusResendSchema": {
        "type": "object",
        "properties": {
          "sent": {
            "type": "boolean"
          },
          "alreadyVerified": {
            "type": "boolean"
          }
        },
        "required": [
          "sent"
        ]
      },
      "optionalNumber": {
        "type": "number"
      },
      "optionSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1
          },
          "value": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "label",
          "value"
        ]
      },
      "optionValueSchema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "orgConfigBodySchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "domain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/companyDomainSchema"
              }
            ]
          },
          "careerPageSettingEnabled": {
            "type": "boolean"
          },
          "enableSendingEmail": {
            "type": "boolean"
          },
          "isReachOutEnabled": {
            "type": "boolean"
          },
          "showCompanyLogo": {
            "type": "boolean"
          },
          "companyLogoUrl": {
            "type": "string",
            "maxLength": 1024
          },
          "allowJDAgent": {
            "type": "boolean"
          },
          "industryTaxonomy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/industryTaxonomyEnum"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "companyName",
          "careerPageSettingEnabled",
          "enableSendingEmail",
          "isReachOutEnabled",
          "showCompanyLogo",
          "companyLogoUrl"
        ]
      },
      "orgConfigFormSchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "domain": {
            "$ref": "#/components/schemas/companyDomainSchema"
          },
          "careerPageSettingEnabled": {
            "type": "boolean"
          },
          "enableSendingEmail": {
            "type": "boolean"
          },
          "isReachOutEnabled": {
            "type": "boolean"
          },
          "showCompanyLogo": {
            "type": "boolean"
          },
          "companyLogoUrl": {
            "type": "string",
            "maxLength": 1024
          },
          "allowJDAgent": {
            "type": "boolean",
            "default": true
          },
          "industryTaxonomy": {
            "type": "string",
            "enum": [
              "",
              "LINKEDIN_V2",
              "NAICS",
              "BLS"
            ],
            "default": ""
          }
        },
        "required": [
          "companyName",
          "domain",
          "careerPageSettingEnabled",
          "enableSendingEmail",
          "isReachOutEnabled",
          "showCompanyLogo",
          "companyLogoUrl",
          "allowJDAgent",
          "industryTaxonomy"
        ]
      },
      "paginationModelParam": {
        "type": "string",
        "description": "JSON MUI GridPaginationModel, e.g. {\"page\":0,\"pageSize\":25} — page is 0-based"
      },
      "pairSchema": {
        "type": "object",
        "properties": {
          "fromCode": {
            "$ref": "#/components/schemas/taxonomyCodeSchema"
          },
          "toCode": {
            "$ref": "#/components/schemas/taxonomyCodeSchema"
          }
        },
        "required": [
          "fromCode",
          "toCode"
        ]
      },
      "PanellistsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/panellistsPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "panellistSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "roles"
        ]
      },
      "panellistsPayloadSchema": {
        "type": "object",
        "properties": {
          "Panellists": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/panellistSchema"
            }
          },
          "page": {
            "type": "number",
            "description": "Echoed 1-based page index"
          },
          "limit": {
            "type": "number"
          },
          "total": {
            "type": "number",
            "description": "Total matches across all pages"
          },
          "hasNextPage": {
            "type": "boolean"
          },
          "nextPage": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "Panellists",
          "page",
          "limit",
          "total",
          "hasNextPage",
          "nextPage"
        ]
      },
      "PanellistsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "1-based page index (default 1)"
          },
          "limit": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Page size (default 100)"
          },
          "search": {
            "type": "string",
            "description": "Matches name or email (case-insensitive)"
          },
          "managerName": {
            "type": "string",
            "description": "Matches name (case-insensitive); OR-ed with the other searches"
          },
          "email": {
            "type": "string",
            "description": "Matches email (case-insensitive); OR-ed with the other searches"
          },
          "departmentId": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Restricts to the department's graph-tenant email domains, when it has any"
          },
          "emails": {
            "type": "string",
            "description": "Comma-separated exact emails; ignored when departmentId is given"
          },
          "sort": {
            "type": "string",
            "enum": [
              "newest",
              "name"
            ],
            "description": "`newest` (default) or `name` for A–Z by name, then email"
          }
        }
      },
      "paramLimitSchema": {
        "type": "object",
        "properties": {
          "min": {
            "type": "number"
          },
          "max": {
            "type": "number"
          },
          "allowed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/scalar"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "maxLength": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 100000
          }
        },
        "additionalProperties": false
      },
      "paramLimitsSchema": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/paramLimitSchema"
        },
        "propertyNames": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        }
      },
      "paramPresetsSchema": {
        "type": "object",
        "additionalProperties": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/scalar"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/scalar"
              },
              "maxItems": 500
            }
          ]
        },
        "propertyNames": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        }
      },
      "patchAutoApproveSchema": {
        "type": "object",
        "properties": {
          "autoApprove": {
            "type": "boolean"
          },
          "autoApproveReplacementJobs": {
            "type": "boolean"
          },
          "autoApproveOffers": {
            "type": "boolean"
          },
          "autoApproveApplications": {
            "type": "boolean"
          },
          "allowAutomationAutoReject": {
            "type": "boolean"
          }
        }
      },
      "patchBodySchema": {
        "type": "object",
        "properties": {
          "integrationId": {
            "type": "string",
            "format": "uuid"
          },
          "isActive": {
            "type": "boolean"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          }
        },
        "required": [
          "integrationId"
        ]
      },
      "patchStatusSchema": {
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean"
          },
          "isShortlisted": {
            "type": "boolean"
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "analyticsStage": {
            "type": "string"
          }
        }
      },
      "PersonalAutomationRuleApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/PersonalAutomationRuleSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PersonalAutomationRuleCreateBodySchema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "templateKey": {
                "type": "string",
                "description": "A system template key, e.g. daily_recruiter_summary or weekly_recruiter_summary"
              },
              "timeZone": {
                "type": "string",
                "description": "IANA time zone the schedule runs in"
              },
              "cron": {
                "type": "string"
              },
              "channels": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "dashboard",
                    "email"
                  ]
                }
              },
              "jobPostingIds": {
                "type": "array",
                "items": {
                  "type": "number"
                }
              }
            },
            "required": [
              "templateKey",
              "timeZone"
            ]
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "enabled": {
                "type": "boolean"
              },
              "triggerType": {
                "type": "string"
              },
              "conditions": {},
              "schedule": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/scheduleSchema"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "thresholdCount": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "jobPostingIds": {
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              "actions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "params": {
                      "type": "object",
                      "additionalProperties": {},
                      "propertyNames": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "type",
                    "params"
                  ]
                }
              }
            },
            "required": [
              "name",
              "triggerType",
              "actions"
            ]
          }
        ]
      },
      "PersonalAutomationRuleDeleteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PersonalAutomationRuleListApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PersonalAutomationRuleSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PersonalAutomationRuleParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id"
        ]
      },
      "PersonalAutomationRulePatchBodySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {},
          "schedule": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "cron": {
                "type": "string"
              },
              "timeZone": {
                "type": "string"
              }
            },
            "required": [
              "cron",
              "timeZone"
            ]
          },
          "thresholdCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "jobPostingIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "params": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "type",
                "params"
              ]
            }
          }
        }
      },
      "PersonalAutomationRuleSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string",
            "description": "\"schedule\" or an application event type"
          },
          "conditions": {},
          "actions": {},
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/scheduleSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "jobPostingIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "thresholdCount": {
            "type": [
              "number",
              "null"
            ]
          },
          "thresholdProgress": {
            "type": "number"
          },
          "enabled": {
            "type": "boolean"
          },
          "pausedReason": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "triggerType",
          "conditions",
          "actions",
          "schedule",
          "jobPostingIds",
          "thresholdCount",
          "thresholdProgress",
          "enabled",
          "pausedReason",
          "version",
          "createdAt",
          "updatedAt"
        ]
      },
      "personalRuleInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          },
          "enabled": {
            "type": "boolean"
          },
          "triggerType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "conditions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ruleConditionsSchema"
              }
            ]
          },
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/scheduleSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "Required for the \"schedule\" trigger: a five-field cron read in the IANA time zone"
          },
          "thresholdCount": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 2,
            "maximum": 1000,
            "description": "Run the actions once every this many matching events"
          },
          "jobPostingIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "maxItems": 200,
            "description": "Jobs the rule covers; empty means every job the owner works on"
          },
          "actions": {
            "$ref": "#/components/schemas/automationActionsSchema"
          }
        },
        "required": [
          "name",
          "triggerType",
          "actions"
        ],
        "additionalProperties": false
      },
      "phonePipelineConfigSchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "engine"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "pipeline_type": {
                "type": "string",
                "enum": [
                  "S2S",
                  "S2T2S"
                ]
              },
              "engine": {
                "$ref": "#/components/schemas/screenaiEngine"
              },
              "stt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineSttBlock"
                  }
                ]
              },
              "llm": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineLlmBlock"
                  }
                ]
              },
              "tts": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineTtsBlockSchema"
                  }
                ]
              },
              "realtime": {
                "$ref": "#/components/schemas/pipelineRealtimeBlockSchema"
              },
              "enable_recording": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "enable_mute_filter": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "allow_interruptions": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "tts_voice": {
                "type": "string"
              },
              "tts_type": {
                "type": "string"
              },
              "ttsType": {
                "type": "string"
              },
              "vapi": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/vapiPhoneConfigSchema"
                  }
                ]
              }
            },
            "required": [
              "pipeline_type",
              "realtime"
            ],
            "additionalProperties": true
          },
          {
            "type": "object",
            "properties": {
              "engine": {
                "type": "string",
                "enum": [
                  "vapi"
                ]
              },
              "stt": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "deepgram",
                      "soniox",
                      "assembly-ai",
                      "azure",
                      "cartesia",
                      "elevenlabs",
                      "gladia",
                      "google",
                      "openai",
                      "speechmatics",
                      "talkscriber"
                    ]
                  },
                  "service_type": {
                    "type": "string"
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "language": {
                        "type": "string",
                        "minLength": 1
                      },
                      "model": {
                        "type": "string"
                      },
                      "location": {
                        "type": "string"
                      },
                      "sample_rate": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/pipelinePositiveInt"
                          }
                        ]
                      },
                      "enable_punctuation": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "language"
                    ]
                  }
                },
                "required": [
                  "type",
                  "config"
                ],
                "additionalProperties": true
              },
              "llm": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "anthropic",
                      "openai",
                      "google",
                      "groq",
                      "cerebras",
                      "deepseek",
                      "deep-infra",
                      "openrouter",
                      "perplexity-ai",
                      "together-ai",
                      "xai",
                      "custom-llm"
                    ]
                  },
                  "service_type": {
                    "type": "string"
                  },
                  "config": {
                    "$ref": "#/components/schemas/pipelineLlmConfigSchema"
                  }
                },
                "required": [
                  "type",
                  "config"
                ],
                "additionalProperties": true
              },
              "tts": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "cartesia",
                      "elevenlabs",
                      "deepgram",
                      "azure",
                      "hume",
                      "inworld",
                      "lmnt",
                      "minimax",
                      "neuphonic",
                      "openai",
                      "playht",
                      "rime-ai",
                      "smallest-ai",
                      "vapi"
                    ]
                  },
                  "service_type": {
                    "type": "string"
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "language": {
                        "type": "string",
                        "minLength": 1
                      },
                      "voice": {
                        "type": "string",
                        "minLength": 1
                      },
                      "voice_id": {
                        "type": "string"
                      },
                      "model": {
                        "type": "string"
                      },
                      "sample_rate": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/pipelinePositiveInt"
                          }
                        ]
                      }
                    },
                    "required": [
                      "language"
                    ]
                  }
                },
                "required": [
                  "type",
                  "config"
                ],
                "additionalProperties": true
              },
              "vapi": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/vapiPhoneConfigSchema"
                  }
                ]
              }
            },
            "required": [
              "engine",
              "stt",
              "llm",
              "tts"
            ],
            "additionalProperties": true
          }
        ]
      },
      "phoneScreeningConfigSchema": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "enableScoring": {
            "type": "boolean",
            "default": true
          },
          "enablePsychometrics": {
            "type": "boolean",
            "default": false
          },
          "method": {
            "type": "string",
            "enum": [
              "generic",
              "star"
            ],
            "default": "generic"
          },
          "agentLanguage": {
            "type": "string",
            "default": "en-IN"
          }
        },
        "required": [
          "enableScoring",
          "enablePsychometrics",
          "method",
          "agentLanguage"
        ],
        "additionalProperties": true
      },
      "pipelineFlagSchema": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        ]
      },
      "pipelineLlmBlock": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "minLength": 1
          },
          "service_type": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/pipelineLlmConfigSchema"
          }
        },
        "required": [
          "type",
          "config"
        ],
        "additionalProperties": true
      },
      "pipelineLlmConfigSchema": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "model"
        ],
        "additionalProperties": true
      },
      "pipelinePositiveInt": {
        "type": "integer",
        "exclusiveMinimum": 0
      },
      "pipelineRealtimeBlockSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "google",
              "openai"
            ]
          },
          "service_type": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/pipelineRealtimeConfigSchema"
          }
        },
        "required": [
          "type",
          "config"
        ],
        "additionalProperties": true
      },
      "pipelineRealtimeConfigSchema": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "minLength": 1
          },
          "voice": {
            "type": "string",
            "minLength": 1
          },
          "language": {
            "type": "string",
            "minLength": 1
          },
          "instructions": {
            "type": "string"
          },
          "silence_duration_ms": {
            "type": "integer",
            "minimum": 200
          },
          "max_duration_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "enable_session_resumption": {
            "type": "boolean"
          },
          "enable_input_transcription": {
            "type": "boolean"
          },
          "enable_output_transcription": {
            "type": "boolean"
          },
          "turn_coverage": {
            "type": "string",
            "enum": [
              "activity_only",
              "all_input"
            ]
          },
          "response_onset_hold_ms": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3000
          },
          "idle_engagement_delay_seconds": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 3600
          },
          "context_compression_enabled": {
            "type": "boolean"
          },
          "context_compression_trigger_tokens": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pipelinePositiveInt"
              }
            ]
          },
          "context_compression_target_tokens": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pipelinePositiveInt"
              }
            ]
          },
          "input_energy_interrupt": {
            "type": "boolean"
          },
          "runtime": {
            "type": "string",
            "enum": [
              "direct",
              "pydantic"
            ]
          },
          "emotional_expression": {
            "type": "string",
            "enum": [
              "off",
              "subtle",
              "expressive"
            ]
          },
          "affective_dialog": {
            "type": "boolean"
          },
          "proactive_audio": {
            "type": "boolean"
          }
        },
        "required": [
          "model"
        ],
        "additionalProperties": true
      },
      "pipelineSttBlock": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "azure",
              "google",
              "aws",
              "sarvam"
            ]
          },
          "service_type": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/pipelineSttConfigSchema"
          }
        },
        "required": [
          "type",
          "config"
        ],
        "additionalProperties": true
      },
      "pipelineSttConfigSchema": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "minLength": 1
          },
          "model": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "sample_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pipelinePositiveInt"
              }
            ]
          },
          "enable_punctuation": {
            "type": "boolean"
          }
        },
        "required": [
          "language"
        ],
        "additionalProperties": true
      },
      "pipelineTtsBlockSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "azure",
              "google",
              "aws",
              "deepgram",
              "openai",
              "elevenlabs",
              "sarvam"
            ]
          },
          "service_type": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/pipelineTtsConfigSchema"
          }
        },
        "required": [
          "type",
          "config"
        ],
        "additionalProperties": true
      },
      "pipelineTtsConfigSchema": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "minLength": 1
          },
          "voice": {
            "type": "string",
            "minLength": 1
          },
          "voice_id": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "sample_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pipelinePositiveInt"
              }
            ]
          }
        },
        "required": [
          "language"
        ],
        "additionalProperties": true
      },
      "planCodeSchema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64,
        "pattern": "^[a-z0-9_-]+$"
      },
      "planCodesSchema": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "maxItems": 100
      },
      "planFormSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[a-z0-9_-]+$"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isFreemium": {
            "type": "boolean"
          },
          "amountCents": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "includedCredits": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "unlimitedCredits": {
            "type": "boolean"
          },
          "creditGrantMode": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "one_time",
              "monthly",
              "contract"
            ]
          },
          "creditCarryoverEnabled": {
            "type": "boolean"
          },
          "creditCostSetId": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "annualDiscountPercent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "interval": {
            "type": "string",
            "enum": [
              "month"
            ]
          },
          "offerTrial": {
            "type": "boolean"
          },
          "trialPeriodDays": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "featureFlags": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "propertyNames": {
              "type": "string"
            },
            "default": {}
          }
        },
        "required": [
          "code",
          "name",
          "isActive",
          "isPublic",
          "isFreemium",
          "unlimitedCredits",
          "creditCarryoverEnabled",
          "annualDiscountPercent",
          "currency",
          "interval",
          "offerTrial",
          "featureFlags"
        ]
      },
      "problem": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "reason",
          "message"
        ]
      },
      "PublicCareerCompanySlugParams": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "PublicCareerConfigApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/publicCareerConfigPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PublicCareerConfigErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerConfigParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "publicCareerConfigPayloadSchema": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "companySlug": {
            "type": "string"
          },
          "showCompanyLogo": {
            "type": "boolean"
          },
          "companyLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "careerPageEnabled": {
            "type": "boolean"
          },
          "isCareerTalentPoolApplyEnabled": {
            "type": "boolean"
          },
          "applicationForm": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            },
            "description": "JobApplication form sections (standard + custom fields)"
          },
          "jobPostingFieldLabels": {
            "type": "object",
            "properties": {
              "department": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "location": {
                "type": "string"
              }
            },
            "required": [
              "department",
              "title",
              "location"
            ]
          },
          "jobLocationOptions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "label",
                "value"
              ]
            },
            "description": "Configured job location options (location filter)"
          },
          "theme": {
            "type": "object",
            "properties": {
              "layout": {
                "type": "string",
                "enum": [
                  "classic",
                  "minimal",
                  "directory",
                  "grid"
                ]
              },
              "primaryColor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brand colour (#rrggbb); null for the default colours"
              },
              "radius": {
                "type": "string",
                "enum": [
                  "sharp",
                  "default",
                  "round"
                ]
              }
            },
            "required": [
              "layout",
              "primaryColor",
              "radius"
            ],
            "description": "Career page theme; the default look unless the CAREER_THEMING flag is on"
          }
        },
        "required": [
          "companyName",
          "companySlug",
          "showCompanyLogo",
          "companyLogoUrl",
          "careerPageEnabled",
          "isCareerTalentPoolApplyEnabled",
          "applicationForm",
          "jobPostingFieldLabels",
          "jobLocationOptions",
          "theme"
        ]
      },
      "PublicCareerDepartmentSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "departmentName": {
            "type": "string"
          },
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "departmentName"
        ]
      },
      "PublicCareerDepartmentsNotFoundSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerDepartmentsParams": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "PublicCareerDepartmentsResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "Departments": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PublicCareerDepartmentSchema"
                }
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "Departments",
              "count"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PublicCareerErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        }
      },
      "PublicCareerJobApplicationApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/publicCareerJobApplicationPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PublicCareerJobApplicationBodySchema": {
        "type": "object",
        "properties": {
          "resumeUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024,
            "description": "fileUrl returned by the job upload-url endpoint"
          },
          "firstName": {
            "type": "string",
            "maxLength": 128
          },
          "lastName": {
            "type": "string",
            "maxLength": 128
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "maxLength": 256
              },
              {
                "type": "string",
                "enum": [
                  ""
                ]
              }
            ]
          },
          "phone": {
            "type": "string",
            "maxLength": 64
          },
          "linkedInUrl": {
            "type": "string",
            "maxLength": 256
          },
          "currentCompensation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "expectedCompensation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "noticePeriodInDays": {
            "type": "integer",
            "minimum": 0,
            "maximum": 365
          },
          "applicationType": {
            "type": "string",
            "enum": [
              "DIRECT",
              "REFERRAL",
              "INTERNAL",
              "CONSULTANT"
            ],
            "description": "Source"
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "Company custom fields, job application answers, and form-level standard fields such as applicationType or introVideoUrl"
          },
          "inviteId": {
            "type": "string",
            "maxLength": 128,
            "description": "Talent-pool invite id from the invite link"
          },
          "sourcedCandidateId": {
            "type": "string",
            "maxLength": 64,
            "description": "Sourced person id from a Sourced invite link"
          },
          "isCheckboxChecked": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Terms of Use & Privacy Policy accepted"
          },
          "isNotificationChecked": {
            "type": "boolean"
          }
        },
        "required": [
          "resumeUrl",
          "isCheckboxChecked"
        ]
      },
      "PublicCareerJobApplicationErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerJobApplicationParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          },
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Public job posting id"
          }
        },
        "required": [
          "companySlug",
          "id"
        ]
      },
      "publicCareerJobApplicationPayloadSchema": {
        "type": "null"
      },
      "PublicCareerJobDetailSchema": {
        "type": "object",
        "additionalProperties": {},
        "propertyNames": {
          "type": "string"
        }
      },
      "PublicCareerJobIdParams": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "companySlug",
          "id"
        ]
      },
      "PublicCareerJobNotFoundSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerJobsListResponseSchema": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "rowCount": {
            "type": "number"
          },
          "searchMeta": {
            "type": "null"
          }
        },
        "required": [
          "rows",
          "rowCount"
        ]
      },
      "PublicCareerJobsQueryParamsSchema": {
        "type": "object",
        "properties": {
          "paginationModel": {
            "type": "string",
            "description": "JSON pagination model, e.g. {\"page\":0,\"pageSize\":10}"
          },
          "sortModel": {
            "type": "string",
            "description": "JSON sort model array"
          },
          "filterModel": {
            "type": "string",
            "description": "JSON filter model with items and optional searchTerms"
          },
          "format": {
            "type": "string",
            "description": "Set to application/xml for LinkedIn feed"
          },
          "all": {
            "type": "string",
            "description": "When true, returns all jobs (career page feed consumers)"
          },
          "page": {
            "description": "Zero-based page; with plain params the JSON models are ignored",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "description": "Page size (default 10)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "description": "Free-text search (title, department, location, job id)"
          },
          "departmentId": {
            "description": "Filter by department id",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "location": {
            "type": "string",
            "description": "Filter by location (contains)"
          }
        }
      },
      "PublicCareerJobUploadUrlErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerJobUploadUrlParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          },
          "id": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Public job posting id"
          }
        },
        "required": [
          "companySlug",
          "id"
        ]
      },
      "PublicCareerJobUploadUrlQueryParamsSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "introVideo"
            ],
            "description": "document (resume / attachment, default) or introVideo"
          },
          "fileExtension": {
            "type": "string",
            "minLength": 1,
            "description": "File extension, e.g. pdf, docx, mp4"
          },
          "contentType": {
            "type": "string",
            "description": "Optional Content-Type constraint for the signed upload credential"
          }
        },
        "required": [
          "fileExtension"
        ]
      },
      "PublicCareerJobUploadUrlResponseSchema": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Signed URL to PUT the file contents to"
          },
          "fileUrl": {
            "type": "string",
            "description": "Canonical object URL to submit with the application"
          }
        },
        "required": [
          "uploadUrl",
          "fileUrl"
        ]
      },
      "PublicCareerTalentPoolApplicationApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/publicCareerTalentPoolApplicationPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "PublicCareerTalentPoolApplicationBodySchema": {
        "type": "object",
        "properties": {
          "resumeUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024,
            "description": "fileUrl returned by the talent-pool upload-url endpoint"
          },
          "firstName": {
            "type": "string",
            "maxLength": 128
          },
          "lastName": {
            "type": "string",
            "maxLength": 128
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "maxLength": 256
              },
              {
                "type": "string",
                "enum": [
                  ""
                ]
              }
            ]
          },
          "phone": {
            "type": "string",
            "maxLength": 64
          },
          "linkedInUrl": {
            "type": "string",
            "maxLength": 256
          },
          "currentCompany": {
            "type": "string",
            "maxLength": 256
          },
          "currentDesignation": {
            "type": "string",
            "maxLength": 256
          },
          "latestDegree": {
            "type": "string",
            "maxLength": 256
          },
          "latestInstitution": {
            "type": "string",
            "maxLength": 256
          },
          "yearOfGraduation": {
            "type": "string",
            "maxLength": 16
          },
          "yearsOfExperience": {
            "type": "number",
            "minimum": 0,
            "maximum": 80
          },
          "location": {
            "type": "string",
            "maxLength": 256
          },
          "currentCompensation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "expectedCompensation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "noticePeriodInDays": {
            "type": "integer",
            "minimum": 0,
            "maximum": 365
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "Company custom fields and form-level standard fields such as applicationType (Source)"
          },
          "isCheckboxChecked": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Terms of Use & Privacy Policy accepted"
          }
        },
        "required": [
          "resumeUrl",
          "isCheckboxChecked"
        ]
      },
      "PublicCareerTalentPoolApplicationErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerTalentPoolApplicationParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "publicCareerTalentPoolApplicationPayloadSchema": {
        "type": "null"
      },
      "PublicCareerTalentPoolUploadUrlErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicCareerTalentPoolUploadUrlParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "PublicCareerTalentPoolUploadUrlQueryParamsSchema": {
        "type": "object",
        "properties": {
          "fileExtension": {
            "type": "string",
            "minLength": 1,
            "description": "File extension, e.g. pdf, docx"
          },
          "contentType": {
            "type": "string",
            "description": "Optional Content-Type constraint for the signed upload credential"
          }
        },
        "required": [
          "fileExtension"
        ]
      },
      "PublicCareerTalentPoolUploadUrlResponseSchema": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Signed URL to PUT the file contents to"
          },
          "fileUrl": {
            "type": "string",
            "description": "Canonical object URL to submit with the application"
          }
        },
        "required": [
          "uploadUrl",
          "fileUrl"
        ]
      },
      "PutAuthProfileMultipartSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "avatar": {
            "description": "Avatar image file (PNG, JPEG, or WebP)"
          }
        }
      },
      "putBodySchema": {
        "type": "object",
        "properties": {
          "accessControlConfig": {}
        }
      },
      "putJdTemplateSchema": {
        "type": "object",
        "properties": {
          "templateMarkdown": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "requiredFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "optionalFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "templateMarkdown"
        ]
      },
      "ratingCriteriaSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ratingCriterionRowSchema"
        }
      },
      "ratingCriterionRowSchema": {
        "type": "object",
        "properties": {
          "criterion": {},
          "points": {}
        },
        "required": [
          "criterion",
          "points"
        ],
        "additionalProperties": true
      },
      "ReachOutCandidateSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "name",
          "email",
          "phone",
          "source"
        ]
      },
      "ReachOutCheckApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "verdict": {
                "type": "string",
                "enum": [
                  "ok",
                  "warning",
                  "blocked"
                ],
                "description": "blocked stops the send; warning lets the recruiter send anyway"
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "severity": {
                      "type": "string",
                      "enum": [
                        "warning",
                        "blocked"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "suggestion": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "severity",
                    "message"
                  ]
                }
              }
            },
            "required": [
              "verdict",
              "issues"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ReachOutCheckBodySchema": {
        "$ref": "#/components/schemas/ReachOutContentSchema"
      },
      "ReachOutCheckErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "ReachOutContentSchema": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Subject with {{placeholders}}"
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000,
            "description": "Message above the role details, with {{placeholders}}"
          },
          "closing": {
            "type": "string",
            "maxLength": 2000,
            "description": "Closing and sign-off at the end, with {{placeholders}}"
          }
        },
        "required": [
          "subject",
          "body"
        ]
      },
      "ReachOutEmailOptionsSchema": {
        "type": "object",
        "properties": {
          "email": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReachOutContentSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "fromAddress": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          }
        }
      },
      "ReachOutPreviewApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "emailEnabled": {
                "type": "boolean",
                "description": "Company email sending is on; without it only WhatsApp goes out"
              },
              "from": {
                "type": "object",
                "properties": {
                  "options": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ReachOutSenderOptionSchema"
                    },
                    "description": "Company addresses the email may go from"
                  },
                  "selected": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Preselected address; null means the default sender"
                  },
                  "defaultSender": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The integration's default sender, when configured"
                  }
                },
                "required": [
                  "options",
                  "selected",
                  "defaultSender"
                ]
              },
              "subject": {
                "type": "string"
              },
              "body": {
                "type": "string",
                "description": "Message above the role details"
              },
              "closing": {
                "type": "string",
                "description": "Closing and sign-off at the end"
              },
              "placeholders": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "values": {
                "type": "object",
                "properties": {
                  "jobTitle": {
                    "type": "string"
                  },
                  "companyName": {
                    "type": "string"
                  },
                  "applyLink": {
                    "type": "string"
                  },
                  "recruiterName": {
                    "type": "string"
                  },
                  "businessWhatsappNumber": {
                    "type": "string",
                    "description": "The company's WhatsApp business number (digits), for the WhatsApp note; empty when none"
                  }
                },
                "required": [
                  "jobTitle",
                  "companyName",
                  "applyLink",
                  "recruiterName",
                  "businessWhatsappNumber"
                ]
              }
            },
            "required": [
              "emailEnabled",
              "from",
              "subject",
              "body",
              "closing",
              "placeholders",
              "values"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ReachOutPreviewErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "ReachOutPreviewQuerySchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "string",
            "pattern": "^\\d+$",
            "description": "Job posting the reach-out is for"
          }
        },
        "required": [
          "jobPostingId"
        ]
      },
      "ReachOutSenderOptionSchema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "address"
        ]
      },
      "RecordingInitBodySchema": {
        "type": "object",
        "properties": {
          "uploadMbps": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 100000
          }
        }
      },
      "reencryptPayloadSchema": {
        "type": "object",
        "properties": {
          "integrationId": {
            "type": "string"
          },
          "encryption": {
            "type": "string",
            "enum": [
              "kms"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "migrated",
              "already-kms"
            ]
          }
        },
        "required": [
          "integrationId",
          "encryption",
          "status"
        ]
      },
      "referenceJDSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "jobDescId": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "originalName": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "size": {
            "type": "number"
          },
          "fileUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "extractedText": {
            "type": [
              "string",
              "null"
            ]
          },
          "processingStatus": {
            "type": "string"
          },
          "processingError": {
            "type": [
              "string",
              "null"
            ]
          },
          "uploadedBy": {
            "type": "string"
          },
          "uploadedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "processedAt": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "jobDescId",
          "filename",
          "originalName",
          "mimeType",
          "size",
          "processingStatus",
          "uploadedBy",
          "uploadedAt"
        ]
      },
      "reportConfigSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "default": "1.0"
          },
          "companySlug": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean",
            "default": true
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reportPageSchema"
            }
          },
          "globalSettings": {
            "type": "object",
            "properties": {
              "timezone": {
                "type": "string",
                "default": "Asia/Kolkata"
              },
              "dateFormat": {
                "type": "string",
                "default": "YYYY-MM-DD"
              },
              "numberFormat": {
                "type": "object",
                "properties": {
                  "locale": {
                    "type": "string",
                    "default": "en-IN"
                  },
                  "currency": {
                    "type": "string",
                    "default": "INR"
                  }
                },
                "required": [
                  "locale",
                  "currency"
                ]
              },
              "theme": {
                "type": "object",
                "properties": {
                  "primaryColor": {
                    "type": "string",
                    "default": "#1976d2"
                  },
                  "secondaryColor": {
                    "type": "string",
                    "default": "#dc004e"
                  },
                  "chartColors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "primaryColor",
                  "secondaryColor",
                  "chartColors"
                ]
              }
            },
            "required": [
              "timezone",
              "dateFormat"
            ]
          }
        },
        "required": [
          "version",
          "companySlug",
          "enabled",
          "pages"
        ]
      },
      "reportPageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "accessRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dateRangeEnabled": {
            "type": "boolean",
            "default": true
          },
          "defaultDateRange": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "days",
                  "weeks",
                  "months",
                  "custom"
                ]
              },
              "value": {
                "type": "number"
              },
              "start": {
                "type": "string"
              },
              "end": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "default": {
              "type": "days",
              "value": 7
            }
          },
          "widgets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/widgetConfigSchema"
            }
          },
          "layout": {
            "type": "object",
            "properties": {
              "columns": {
                "type": "number",
                "default": 12
              },
              "gap": {
                "type": "number",
                "default": 16
              }
            },
            "required": [
              "columns",
              "gap"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "path",
          "dateRangeEnabled",
          "defaultDateRange",
          "widgets"
        ]
      },
      "requiredJobDescriptionIdSchema": {
        "type": "string",
        "minLength": 1
      },
      "requiredJobDescriptionUrlSchema": {
        "type": "string",
        "minLength": 1,
        "format": "uri"
      },
      "ResendDnsRecordSchema": {
        "type": "object",
        "properties": {
          "record": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "ttl": {
            "type": "string"
          },
          "priority": {
            "type": "number"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "record",
          "name",
          "type",
          "value"
        ]
      },
      "ResendDomainStateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "not_started, pending, verified, partially_verified, partially_failed, failed or temporary_failure"
          },
          "region": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResendDnsRecordSchema"
            }
          },
          "apiKeyId": {
            "type": "string"
          },
          "createdRow": {
            "type": "boolean"
          },
          "checkedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "region",
          "from",
          "records",
          "createdRow",
          "checkedAt"
        ]
      },
      "resetPasswordBodySchema": {
        "type": "object",
        "properties": {
          "newPassword": {
            "type": "string",
            "minLength": 8
          },
          "sendEmail": {
            "type": "boolean"
          }
        },
        "required": [
          "newPassword"
        ]
      },
      "roleAutomationPermissionSchema": {
        "type": "object",
        "properties": {
          "jobRules": {
            "type": "boolean",
            "description": "May create and edit rules on jobs they can edit"
          },
          "personalRules": {
            "type": "boolean",
            "description": "May create their own personal rules"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 500
          }
        },
        "additionalProperties": false
      },
      "RoleAutomationSettingsSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "jobRules": {
            "type": "boolean"
          },
          "personalRules": {
            "type": "boolean"
          },
          "actions": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Action keys this role may use; null = every action the company has on"
          },
          "override": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/json"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the company stored for this role"
          }
        },
        "required": [
          "role",
          "jobRules",
          "personalRules",
          "actions",
          "override"
        ]
      },
      "routingRuleApproversSchema": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "format": "email"
            },
            "level": {
              "type": "integer",
              "minimum": 1
            }
          },
          "required": [
            "email",
            "level"
          ]
        }
      },
      "ruleConditionsSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/conditionLeafSchema"
          },
          {
            "type": "object",
            "properties": {
              "all": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/conditionSchema"
                },
                "maxItems": 100
              }
            },
            "required": [
              "all"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "any": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/conditionSchema"
                },
                "maxItems": 100
              }
            },
            "required": [
              "any"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "not": {
                "$ref": "#/components/schemas/conditionSchema"
              }
            },
            "required": [
              "not"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ruleDraftSchema": {
        "type": "object",
        "properties": {
          "target": {
            "$ref": "#/components/schemas/ruleTargetSchema"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 5000
          },
          "triggerType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "conditions": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {},
              "propertyNames": {
                "type": "string"
              }
            }
          },
          "runOnce": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "target",
          "name",
          "triggerType",
          "conditions",
          "actions"
        ],
        "additionalProperties": false
      },
      "ruleTargetSchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "job"
                ]
              },
              "jobPostingId": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "type",
              "jobPostingId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "personal"
                ]
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "scalar": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "scheduleAiInterviewParamsSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "schedulePhoneScreenParamsSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "scheduleSchema": {
        "type": "object",
        "properties": {
          "cron": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          }
        },
        "required": [
          "cron",
          "timeZone"
        ]
      },
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "age": {
            "type": "number"
          }
        },
        "required": [
          "name"
        ]
      },
      "screenaiEngine": {
        "type": "string",
        "enum": [
          "screenai"
        ]
      },
      "ScreeningCallApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ScreeningCallBodySchema": {
        "type": "object",
        "properties": {
          "jobApplicationId": {
            "type": "number",
            "description": "Application to schedule the call for"
          },
          "candidatePhoneNumber": {
            "type": "string",
            "description": "Number to call (with its country code); defaults to the application's. In production only the number on file (any format)"
          },
          "scheduledAt": {
            "type": "string",
            "description": "ISO instant to place the call at; defaults to now. Ignored with scheduleMode 'ask_candidate'"
          },
          "scheduleMode": {
            "type": "string",
            "enum": [
              "ask_candidate"
            ],
            "description": "ask_candidate: ask the candidate on WhatsApp when to call (INT-978)"
          },
          "timezone": {
            "type": "string",
            "description": "Scheduler's IANA zone; the fallback when the phone number doesn't identify one"
          },
          "candidateTimezone": {
            "type": "string",
            "description": "Candidate IANA zone; defaults from the phone number"
          },
          "override": {
            "type": "boolean",
            "description": "Replace the application's existing call (not one that already started or finished)"
          }
        },
        "required": [
          "jobApplicationId"
        ]
      },
      "ScreeningCallErrorSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "message",
          "success"
        ]
      },
      "ScreeningCallLifecycleBodySchema": {
        "type": "object",
        "properties": {
          "screeningCallId": {
            "type": "number"
          },
          "webrtc_id": {
            "type": "string"
          },
          "session_id": {
            "type": "string"
          },
          "eventId": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          },
          "attemptId": {
            "type": "string"
          },
          "attempt_id": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "scheduledAtUtc": {
            "type": "string"
          },
          "rescheduleReason": {
            "type": "string"
          },
          "candidateTimezone": {
            "type": "string"
          },
          "recordingUrl": {
            "type": "string"
          },
          "recording_url": {
            "type": "string"
          },
          "transcript": {},
          "transcriptUrl": {
            "type": "string"
          },
          "transcript_url": {
            "type": "string"
          },
          "interviewStateUrl": {
            "type": "string"
          },
          "interview_state_url": {
            "type": "string"
          },
          "decisionLogsUrl": {
            "type": "string"
          },
          "decision_logs_url": {
            "type": "string"
          },
          "hasCandidateSpeech": {
            "type": "boolean"
          },
          "has_candidate_speech": {
            "type": "boolean"
          },
          "callQuality": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CallQualitySchema"
              }
            ],
            "description": "Candidate line quality ScreenAI measured for this attempt; stored on final / terminal outcomes. Older ScreenAI omits it"
          }
        }
      },
      "ScreeningCallObjectiveEvaluationsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/screeningCallObjectiveEvaluationsPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ScreeningCallObjectiveEvaluationsBodySchema": {
        "type": "object",
        "properties": {
          "screeningCallId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "Screening call id"
          },
          "attemptId": {
            "type": "string",
            "minLength": 1,
            "description": "Phone attempt id (ignored when superseded) or, if unknown, the scoring workflow id (always stored)"
          },
          "evaluations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/objectiveEvaluationSchema"
            },
            "description": "One entry per objective question"
          }
        },
        "required": [
          "screeningCallId",
          "attemptId",
          "evaluations"
        ]
      },
      "screeningCallObjectiveEvaluationsPayloadSchema": {
        "type": "object",
        "properties": {
          "screeningCallId": {
            "type": "number"
          },
          "attemptId": {
            "type": "string"
          },
          "stored": {
            "type": "boolean",
            "description": "True when the evaluations were saved on the call"
          },
          "ignored": {
            "type": "boolean",
            "description": "True when the attempt is not the call’s current one (nothing saved)"
          },
          "reason": {
            "type": "string",
            "description": "Why the report was ignored (`superseded_attempt`)"
          },
          "evaluatedAt": {
            "type": "string",
            "description": "ISO time the evaluations were stored"
          },
          "evaluationCount": {
            "type": "number"
          }
        },
        "required": [
          "screeningCallId",
          "attemptId",
          "stored",
          "ignored"
        ]
      },
      "ScreeningCallQuestionsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "questionCount": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "questionCount"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ScreeningCallQuestionsBodySchema": {
        "type": "object",
        "properties": {
          "questions": {
            "type": "string",
            "minLength": 1,
            "description": "The full question list as a JSON array, in the stored phone question shape"
          }
        },
        "required": [
          "questions"
        ]
      },
      "ScreeningCallQuestionsParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Screening call id"
          }
        },
        "required": [
          "id"
        ]
      },
      "ScreeningCallRecordingApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/screeningCallRecordingPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ScreeningCallRecordingFetchApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/screeningCallRecordingFetchPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "ScreeningCallRecordingFetchParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Screening call id"
          }
        },
        "required": [
          "id"
        ]
      },
      "screeningCallRecordingFetchPayloadSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "stored",
              "already_stored",
              "not_found",
              "ignored"
            ],
            "description": "stored: copied from the provider now; already_stored: the call already had one; not_found: the provider has none (yet)"
          },
          "reason": {
            "type": "string",
            "description": "Why the recording was ignored (duplicate, superseded, no_voice_integration)"
          }
        },
        "required": [
          "action"
        ]
      },
      "ScreeningCallRecordingParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Screening call id"
          }
        },
        "required": [
          "id"
        ]
      },
      "screeningCallRecordingPayloadSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Signed URL of the last call recording (audio/mpeg)"
          },
          "expiresAt": {
            "type": "string",
            "description": "ISO time the signed URLs expire"
          },
          "recordings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/callRecordingSchema"
            },
            "description": "Every call recording in call order: more than one when a redial continued a cut-off call"
          }
        },
        "required": [
          "url",
          "expiresAt",
          "recordings"
        ]
      },
      "screeningConfigSchema": {
        "type": "object",
        "properties": {
          "agentLanguage": {
            "type": "string"
          },
          "languageStyle": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "hinglish"
            ]
          },
          "candidateLanguage": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "followupMode": {
            "type": "string"
          },
          "enablePsychometrics": {
            "type": "boolean",
            "default": true
          },
          "enableLivenessCheck": {
            "type": "boolean",
            "default": true
          },
          "showQuestionsMultilingual": {
            "type": "boolean",
            "default": false
          },
          "questionsAdditionalLang": {
            "type": "string"
          },
          "webrtc": {
            "type": "object",
            "properties": {
              "laptopOnly": {
                "type": "boolean",
                "default": false
              }
            },
            "required": [
              "laptopOnly"
            ]
          }
        },
        "required": [
          "enablePsychometrics",
          "enableLivenessCheck",
          "showQuestionsMultilingual"
        ]
      },
      "screeningInterviewVariantSchema": {
        "type": "string",
        "enum": [
          "DAILY_JS",
          "FASTRTC"
        ]
      },
      "screeningPipelineConfigSchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "engine"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "pipeline_type": {
                "type": "string",
                "enum": [
                  "S2S",
                  "S2T2S"
                ]
              },
              "engine": {
                "$ref": "#/components/schemas/screenaiEngine"
              },
              "stt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineSttBlock"
                  }
                ]
              },
              "llm": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineLlmBlock"
                  }
                ]
              },
              "tts": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineTtsBlockSchema"
                  }
                ]
              },
              "realtime": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineRealtimeBlockSchema"
                  }
                ]
              },
              "enable_recording": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "enable_mute_filter": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "allow_interruptions": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "tts_voice": {
                "type": "string"
              },
              "tts_type": {
                "type": "string"
              },
              "ttsType": {
                "type": "string"
              }
            },
            "required": [
              "pipeline_type"
            ],
            "additionalProperties": true
          },
          {
            "type": "object",
            "properties": {
              "pipeline_type": {
                "type": "string",
                "enum": [
                  "S2S",
                  "S2T2S"
                ]
              },
              "engine": {
                "type": "string",
                "enum": [
                  "vapi"
                ]
              },
              "stt": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "deepgram",
                      "soniox",
                      "assembly-ai",
                      "azure",
                      "cartesia",
                      "elevenlabs",
                      "gladia",
                      "google",
                      "openai",
                      "speechmatics",
                      "talkscriber"
                    ]
                  },
                  "service_type": {
                    "type": "string"
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "language": {
                        "type": "string",
                        "minLength": 1
                      },
                      "model": {
                        "type": "string"
                      },
                      "location": {
                        "type": "string"
                      },
                      "sample_rate": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/pipelinePositiveInt"
                          }
                        ]
                      },
                      "enable_punctuation": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "language"
                    ]
                  }
                },
                "required": [
                  "type",
                  "config"
                ],
                "additionalProperties": true
              },
              "llm": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "anthropic",
                      "openai",
                      "google",
                      "groq",
                      "cerebras",
                      "deepseek",
                      "deep-infra",
                      "openrouter",
                      "perplexity-ai",
                      "together-ai",
                      "xai",
                      "custom-llm"
                    ]
                  },
                  "service_type": {
                    "type": "string"
                  },
                  "config": {
                    "$ref": "#/components/schemas/pipelineLlmConfigSchema"
                  }
                },
                "required": [
                  "type",
                  "config"
                ],
                "additionalProperties": true
              },
              "tts": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "cartesia",
                      "elevenlabs",
                      "deepgram",
                      "azure",
                      "hume",
                      "inworld",
                      "lmnt",
                      "minimax",
                      "neuphonic",
                      "openai",
                      "playht",
                      "rime-ai",
                      "smallest-ai",
                      "vapi"
                    ]
                  },
                  "service_type": {
                    "type": "string"
                  },
                  "config": {
                    "type": "object",
                    "properties": {
                      "language": {
                        "type": "string",
                        "minLength": 1
                      },
                      "voice": {
                        "type": "string",
                        "minLength": 1
                      },
                      "voice_id": {
                        "type": "string"
                      },
                      "model": {
                        "type": "string"
                      },
                      "sample_rate": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/pipelinePositiveInt"
                          }
                        ]
                      }
                    },
                    "required": [
                      "language"
                    ]
                  }
                },
                "required": [
                  "type",
                  "config"
                ],
                "additionalProperties": true
              },
              "realtime": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineRealtimeBlockSchema"
                  }
                ]
              },
              "enable_recording": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "enable_mute_filter": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "allow_interruptions": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pipelineFlagSchema"
                  }
                ]
              },
              "tts_voice": {
                "type": "string"
              },
              "tts_type": {
                "type": "string"
              },
              "ttsType": {
                "type": "string"
              }
            },
            "required": [
              "pipeline_type",
              "engine",
              "stt",
              "llm",
              "tts"
            ],
            "additionalProperties": true
          }
        ]
      },
      "ScreeningReportPdfRequestSchema": {
        "type": "object",
        "properties": {
          "jobApplicationId": {
            "type": "number",
            "description": "Job application ID for the interview report"
          },
          "enablePageBreaks": {
            "type": "boolean",
            "description": "When false, sections flow continuously instead of each starting on a new page"
          },
          "isPhoneInterview": {
            "type": "boolean",
            "description": "When true, the report is built from the application's AI phone screening call"
          }
        },
        "required": [
          "jobApplicationId"
        ]
      },
      "ScreeningReportPdfResponseSchema": {
        "type": "string",
        "description": "Generated screening report PDF"
      },
      "screeningWebrtcIceCandidateSchema": {
        "type": "object",
        "properties": {
          "offer_url": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "ice-candidate"
            ]
          },
          "webrtc_id": {
            "type": "string",
            "minLength": 1
          },
          "candidate": {
            "type": "object",
            "properties": {
              "candidate": {
                "type": "string",
                "minLength": 1
              },
              "sdpMid": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sdpMLineIndex": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "candidate"
            ]
          },
          "generation": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "offer_url",
          "type",
          "webrtc_id",
          "candidate"
        ]
      },
      "screeningWebrtcOfferBodySchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/screeningWebrtcIceCandidateSchema"
          },
          {
            "$ref": "#/components/schemas/screeningWebrtcOfferSchema"
          }
        ]
      },
      "screeningWebrtcOfferSchema": {
        "type": "object",
        "properties": {
          "offer_url": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "offer"
            ]
          },
          "sdp": {
            "type": "string",
            "minLength": 1
          },
          "webrtc_id": {
            "type": "string",
            "minLength": 1
          },
          "reconnect": {
            "type": "boolean"
          },
          "generation": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "offer_url",
          "type",
          "sdp",
          "webrtc_id"
        ]
      },
      "selectableRoleSchema": {
        "type": "string"
      },
      "SetCompanyApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/setCompanyPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SetCompanyBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "companyId"
        ]
      },
      "setCompanyPayloadSchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "number"
          }
        },
        "required": [
          "companyId"
        ]
      },
      "setSubStatusParamsSchema": {
        "type": "object",
        "properties": {
          "subStatus": {
            "$ref": "#/components/schemas/statusValue"
          }
        },
        "required": [
          "subStatus"
        ],
        "additionalProperties": false
      },
      "severityCountsSchema": {
        "type": "object",
        "properties": {
          "LOW": {
            "type": "number"
          },
          "MEDIUM": {
            "type": "number"
          },
          "HIGH": {
            "type": "number"
          },
          "CRITICAL": {
            "type": "number"
          }
        },
        "required": [
          "LOW",
          "MEDIUM",
          "HIGH",
          "CRITICAL"
        ]
      },
      "severitySchema": {
        "type": "string",
        "enum": [
          "LOW",
          "MEDIUM",
          "HIGH",
          "CRITICAL"
        ]
      },
      "SharedLinkAddToJobApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/sharedLinkAddToJobPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SharedLinkAddToJobBodySchema": {
        "type": "object",
        "properties": {
          "candidateIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 50,
            "description": "Candidate ids from the shared link (review-page row ids)"
          },
          "jobPostingId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "reviewerName": {
            "type": "string",
            "maxLength": 256,
            "description": "Required on copied (generic) links"
          }
        },
        "required": [
          "candidateIds",
          "jobPostingId"
        ]
      },
      "sharedLinkAddToJobPayloadSchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "number"
          },
          "jobTitle": {
            "type": "string"
          },
          "addedCandidateIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "alreadyInJobCandidateIds": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Skipped: already have an application on the job"
          },
          "noResumeCandidateIds": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Skipped: no resume on file"
          }
        },
        "required": [
          "jobPostingId",
          "jobTitle",
          "addedCandidateIds",
          "alreadyInJobCandidateIds",
          "noResumeCandidateIds"
        ]
      },
      "SharedLinkApplicationsParamsSchema": {
        "type": "object",
        "properties": {
          "sharingSlug": {
            "type": "string",
            "minLength": 1,
            "description": "Public sharing slug"
          }
        },
        "required": [
          "sharingSlug"
        ]
      },
      "SharedLinkJobsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "jobs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/sharedLinkJobSchema"
                }
              }
            },
            "required": [
              "jobs"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "sharedLinkJobSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "department": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "location",
          "department"
        ]
      },
      "SharedLinkJobsParamsSchema": {
        "type": "object",
        "properties": {
          "sharingSlug": {
            "type": "string",
            "minLength": 1,
            "description": "Public sharing slug"
          }
        },
        "required": [
          "sharingSlug"
        ]
      },
      "SharingFeedbackApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/sharingFeedbackPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SharingFeedbackBodySchema": {
        "type": "object",
        "properties": {
          "reviewerName": {
            "type": "string",
            "maxLength": 256,
            "description": "Reviewer name shown on their remarks"
          },
          "candidateUpdates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "jacdId": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "description": "Shared candidate-details id"
                },
                "status": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "New status (job-application links only)"
                },
                "remark": {
                  "type": "string",
                  "maxLength": 5000
                }
              },
              "required": [
                "jacdId"
              ]
            },
            "minItems": 1,
            "maxItems": 200
          }
        },
        "required": [
          "candidateUpdates"
        ]
      },
      "SharingFeedbackParamsSchema": {
        "type": "object",
        "properties": {
          "sharingSlug": {
            "type": "string",
            "minLength": 1,
            "description": "Public sharing slug"
          }
        },
        "required": [
          "sharingSlug"
        ]
      },
      "sharingFeedbackPayloadSchema": {
        "type": "object",
        "properties": {
          "updatedCandidates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "jacdId": {
                  "type": "number"
                },
                "status": {
                  "type": "string"
                },
                "remark": {
                  "type": "string"
                }
              },
              "required": [
                "jacdId"
              ]
            }
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "updatedCandidates",
          "message"
        ]
      },
      "SharingSlugParamsSchema": {
        "type": "object",
        "properties": {
          "sharingSlug": {
            "type": "string",
            "minLength": 1,
            "description": "Public sharing slug"
          }
        },
        "required": [
          "sharingSlug"
        ]
      },
      "shortlistRuleSchema": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "minRating": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "minExperienceYears": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "maxExperienceYears": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "minCurrentComp": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "maxCurrentComp": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "minExpectedComp": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "maxExpectedComp": {
            "$ref": "#/components/schemas/optionalNumber"
          },
          "locationKeywords": {
            "type": "string"
          },
          "educationKeywords": {
            "type": "string"
          },
          "currentCompanyKeywords": {
            "type": "string"
          },
          "questionRules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "questionId": {
                  "type": "string"
                },
                "fieldName": {
                  "type": "string"
                },
                "fieldType": {
                  "type": "string",
                  "enum": [
                    "YES_NO",
                    "DROPDOWN",
                    "NUMERIC"
                  ]
                },
                "expectedYesNo": {
                  "type": "string",
                  "enum": [
                    "Yes",
                    "No"
                  ]
                },
                "allowedDropdownOptions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "minNumeric": {
                  "$ref": "#/components/schemas/optionalNumber"
                },
                "maxNumeric": {
                  "$ref": "#/components/schemas/optionalNumber"
                }
              },
              "required": [
                "questionId",
                "fieldName",
                "fieldType",
                "minNumeric",
                "maxNumeric"
              ]
            }
          }
        },
        "required": [
          "minRating",
          "minExperienceYears",
          "maxExperienceYears",
          "minCurrentComp",
          "maxCurrentComp",
          "minExpectedComp",
          "maxExpectedComp"
        ],
        "additionalProperties": true
      },
      "skippedSchema": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "number"
            },
            "reason": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "reason"
          ]
        }
      },
      "sortModelParam": {
        "type": "string",
        "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]"
      },
      "SourcedCandidateNoteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/sourcedCandidateNoteSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SourcedCandidateNoteBodySchema": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000
          }
        },
        "required": [
          "note"
        ],
        "additionalProperties": false
      },
      "SourcedCandidateNoteDeleteApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "null"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SourcedCandidateNoteParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Job posting id"
          },
          "sourcedCandidateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "noteId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "sourcedCandidateId",
          "noteId"
        ]
      },
      "SourcedCandidateNotesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sourcedCandidateNoteSchema"
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "sourcedCandidateNoteSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "note": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "createdBy": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": true
          },
          "sourcedCandidateId": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobApplicationId": {
            "type": [
              "number",
              "null"
            ]
          },
          "candidateId": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "note",
          "createdAt",
          "updatedAt",
          "createdBy",
          "sourcedCandidateId",
          "jobApplicationId",
          "candidateId"
        ]
      },
      "sourceDetailsSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/applicantHistorySourceDetailSchema"
        },
        "description": "Details of that application’s Source in form order; empty when none"
      },
      "SourcedInviteLinkSchema": {
        "type": "object",
        "properties": {
          "sourcedCandidateId": {
            "type": "string",
            "maxLength": 64
          }
        }
      },
      "SourcingExtractApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "companySlug": {
                "type": "string",
                "description": "For \"View in intalent.ai\" links"
              },
              "isValidProfile": {
                "type": "boolean"
              },
              "profile": {
                "type": "object",
                "properties": {
                  "firstName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lastName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "phone": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "linkedin": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "location": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currentCompany": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currentDesignation": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "latestDegree": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "latestInstitution": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "yearOfGraduation": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "experienceInYears": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "experience": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "company": {
                          "type": "string"
                        },
                        "location": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "startDate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "endDate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "isCurrent": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "title",
                        "company",
                        "location",
                        "startDate",
                        "endDate",
                        "isCurrent",
                        "description"
                      ]
                    }
                  },
                  "skills": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "education": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "degree": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "institution": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "startYear": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "endYear": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "degree",
                        "institution",
                        "startYear",
                        "endYear"
                      ]
                    }
                  },
                  "certifications": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "languages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "firstName",
                  "lastName",
                  "email",
                  "phone",
                  "linkedin",
                  "location",
                  "currentCompany",
                  "currentDesignation",
                  "latestDegree",
                  "latestInstitution",
                  "yearOfGraduation",
                  "experienceInYears",
                  "experience",
                  "skills",
                  "education",
                  "certifications",
                  "languages"
                ]
              },
              "existing": {
                "$ref": "#/components/schemas/sourcingMatchSchema"
              }
            },
            "required": [
              "companySlug",
              "isValidProfile",
              "profile",
              "existing"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SourcingExtractBodySchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30000,
            "description": "innerText of the profile page"
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "URL of the page the text was captured from"
          }
        },
        "required": [
          "text",
          "url"
        ],
        "additionalProperties": false
      },
      "SourcingJobsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "companySlug": {
                "type": "string"
              },
              "canSwitchEnvironment": {
                "type": "boolean",
                "description": "intalent.ai staff only: the extension shows its Dev/Local switch"
              },
              "jobs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "title": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "location"
                  ]
                }
              }
            },
            "required": [
              "companySlug",
              "canSwitchEnvironment",
              "jobs"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "sourcingMatchSchema": {
        "type": "object",
        "properties": {
          "candidate": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "number"
              },
              "jacdId": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "addedBy": {
                "type": "string"
              },
              "addedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "jacdId",
              "name",
              "addedBy",
              "addedAt"
            ]
          },
          "applications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "jacdId": {
                  "type": "number"
                },
                "jobPostingId": {
                  "type": "number"
                },
                "jobTitle": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "score": {
                  "type": "number"
                },
                "addedBy": {
                  "type": "string"
                },
                "addedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "jacdId",
                "jobPostingId",
                "jobTitle",
                "name",
                "status",
                "score",
                "addedBy",
                "addedAt"
              ]
            }
          }
        },
        "required": [
          "candidate",
          "applications"
        ]
      },
      "SourcingPageUrlSchema": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 2048,
        "format": "uri"
      },
      "SourcingProfileSchema": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "lastName": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 128
          },
          "email": {
            "anyOf": [
              {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 256,
                "format": "email"
              },
              {
                "type": "string",
                "enum": [
                  ""
                ]
              }
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 32,
            "pattern": "^\\+?[\\d\\s\\-().]*$"
          },
          "linkedInUrl": {
            "anyOf": [
              {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2048
              },
              {
                "type": "string",
                "enum": [
                  ""
                ]
              }
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "currentCompany": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "currentDesignation": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "latestDegree": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "latestInstitution": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "yearOfGraduation": {
            "anyOf": [
              {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^\\d{4}$"
              },
              {
                "type": "string",
                "enum": [
                  ""
                ]
              }
            ]
          },
          "experienceInYears": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 70
          },
          "experience": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "company": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "location": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 256
                },
                "startDate": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 32
                },
                "endDate": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 32
                },
                "isCurrent": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 4000
                }
              },
              "required": [
                "title",
                "company"
              ],
              "additionalProperties": false
            },
            "maxItems": 30
          },
          "skills": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "maxItems": 30
          },
          "education": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "properties": {
                "degree": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 256
                },
                "institution": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "startYear": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 8
                },
                "endYear": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 8
                }
              },
              "required": [
                "institution"
              ],
              "additionalProperties": false
            },
            "maxItems": 10
          },
          "certifications": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "maxItems": 20
          },
          "languages": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "maxItems": 20
          }
        },
        "required": [
          "firstName"
        ],
        "additionalProperties": false
      },
      "SourcingSourcedCandidateApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "jobPostingId": {
                "type": "number"
              },
              "companySlug": {
                "type": "string",
                "description": "For \"View in intalent.ai\" links"
              }
            },
            "required": [
              "id",
              "jobPostingId",
              "companySlug"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "SourcingSourcedCandidateBodySchema": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "pageUrl": {
            "$ref": "#/components/schemas/SourcingPageUrlSchema"
          },
          "profile": {
            "$ref": "#/components/schemas/SourcingProfileSchema"
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          }
        },
        "required": [
          "jobPostingId",
          "profile"
        ],
        "additionalProperties": false
      },
      "stageCountSchema": {
        "type": "object",
        "properties": {
          "stage": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "stage",
          "label",
          "count"
        ]
      },
      "stageStateSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "applicationStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "applicationSubStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "isShortlisted": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "applicationStatus",
          "applicationSubStatus",
          "isShortlisted"
        ]
      },
      "starterTemplate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "$ref": "#/components/schemas/json"
          },
          "actions": {
            "$ref": "#/components/schemas/json"
          },
          "runOnce": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "description",
          "triggerType",
          "conditions",
          "actions",
          "runOnce"
        ]
      },
      "status": {
        "type": "string",
        "enum": [
          "DRAFT",
          "BETA",
          "LIVE",
          "DISABLED"
        ]
      },
      "statusDefinitionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "value": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "isSystem": {
            "type": "boolean",
            "default": false
          },
          "analyticsStage": {
            "type": "string",
            "minLength": 1
          },
          "isShortlisted": {
            "type": "boolean",
            "default": false
          },
          "order": {
            "type": "number",
            "default": 0
          },
          "color": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "id",
          "value",
          "label",
          "isSystem",
          "analyticsStage",
          "isShortlisted",
          "order",
          "isActive"
        ]
      },
      "statusSchema": {
        "type": "string",
        "enum": [
          "DRAFT",
          "BETA",
          "LIVE",
          "DISABLED"
        ]
      },
      "statusValue": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128
      },
      "StorageAccessErrorMessageSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "StorageAccessQueryParamsSchema": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "minLength": 1,
            "description": "Existing object URL to mint a short-lived signed read/access URL for"
          }
        },
        "required": [
          "fileUrl"
        ]
      },
      "StorageAccessResponseSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Short-lived signed URL for reading the object inline"
          }
        },
        "required": [
          "url"
        ]
      },
      "StorageUploadCredentialResponseSchema": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Signed URL to PUT the file contents to"
          },
          "fileUrl": {
            "type": "string",
            "description": "Canonical object URL to store (without SAS/query string)"
          }
        },
        "required": [
          "uploadUrl",
          "fileUrl"
        ]
      },
      "StorageUploadErrorMessageSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "StorageUploadQueryParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company the file belongs to — the signed-in user must be a member"
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "introVideo"
            ],
            "description": "Upload kind (default document); intro videos go to the company temp folder"
          },
          "fileExtension": {
            "type": "string",
            "minLength": 1,
            "description": "File extension, e.g. pdf, docx, mp4 — the server picks the object name"
          },
          "contentType": {
            "type": "string",
            "description": "Optional Content-Type constraint for the signed upload credential"
          }
        },
        "required": [
          "companySlug",
          "fileExtension"
        ]
      },
      "storedCompanyProfileSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "enum": [
              2
            ]
          },
          "markdown": {
            "type": "string"
          },
          "sourceHash": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "ready",
              "failed"
            ]
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/companyProfileSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "extractedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "version",
          "markdown",
          "sourceHash",
          "status",
          "profile",
          "updatedAt",
          "extractedAt"
        ]
      },
      "storedJobCandidateProfileSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "enum": [
              1
            ]
          },
          "sourceHash": {
            "type": "string"
          },
          "profile": {
            "$ref": "#/components/schemas/jobCandidateProfileSchema"
          }
        },
        "required": [
          "version",
          "sourceHash",
          "profile"
        ]
      },
      "summaryPayloadSchema": {
        "type": "object",
        "properties": {
          "taxonomies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "taxonomy": {
                  "$ref": "#/components/schemas/industryTaxonomyEnum"
                },
                "versions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "total": {
                  "type": "number"
                },
                "deprecated": {
                  "type": "number"
                }
              },
              "required": [
                "taxonomy",
                "versions",
                "total",
                "deprecated"
              ]
            }
          },
          "mappings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "mappingSource": {
                  "type": "string"
                },
                "total": {
                  "type": "number"
                }
              },
              "required": [
                "mappingSource",
                "total"
              ]
            }
          },
          "defaultTaxonomy": {
            "$ref": "#/components/schemas/industryTaxonomyEnum"
          },
          "latestRun": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/industryTaxonomySyncRunSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "taxonomies",
          "mappings",
          "defaultTaxonomy",
          "latestRun"
        ]
      },
      "systemTemplateCreateSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z0-9_]{1,128}$"
          },
          "definition": {
            "$ref": "#/components/schemas/templateDefinitionSchema"
          },
          "planCodes": {
            "allOf": [
              {
                "$ref": "#/components/schemas/planCodesSchema"
              }
            ]
          },
          "visibleToCompanies": {
            "type": "boolean"
          },
          "changeNote": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          }
        },
        "required": [
          "key",
          "definition"
        ],
        "additionalProperties": false
      },
      "systemTemplateUpdateSchema": {
        "type": "object",
        "properties": {
          "definition": {
            "allOf": [
              {
                "$ref": "#/components/schemas/templateDefinitionSchema"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "BETA",
              "LIVE",
              "DISABLED"
            ]
          },
          "planCodes": {
            "allOf": [
              {
                "$ref": "#/components/schemas/planCodesSchema"
              }
            ]
          },
          "visibleToCompanies": {
            "type": "boolean"
          },
          "changeNote": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2000
          },
          "expectedCurrentVersion": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "additionalProperties": false
      },
      "talentPoolSchema": {
        "type": "object",
        "properties": {
          "resumeUrl": {
            "type": "object",
            "minLength": 1
          },
          "isCheckboxChecked": {
            "type": "boolean"
          },
          "isNotificationChecked": {
            "type": "boolean"
          }
        },
        "required": [
          "resumeUrl",
          "isCheckboxChecked",
          "isNotificationChecked"
        ]
      },
      "TalentPoolSharingApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/talentPoolSharingPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TalentPoolSharingParamsSchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1,
            "description": "Company slug"
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "talentPoolSharingPayloadSchema": {
        "type": "object",
        "properties": {
          "sharingSlug": {
            "type": "string"
          },
          "reviewUrl": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string"
          },
          "candidateCount": {
            "type": "number",
            "description": "Candidates in the link"
          },
          "skippedCount": {
            "type": "number",
            "description": "Requested candidates left out (deleted or not in this company)"
          },
          "emailSent": {
            "type": "boolean",
            "description": "False in link mode, or when the email failed — the link still works"
          }
        },
        "required": [
          "sharingSlug",
          "reviewUrl",
          "expiresAt",
          "candidateCount",
          "skippedCount",
          "emailSent"
        ]
      },
      "taxonomyCodeSchema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "taxonomyRefSchema": {
        "type": "object",
        "properties": {
          "taxonomy": {
            "$ref": "#/components/schemas/industryTaxonomyEnum"
          },
          "taxonomyVersion": {
            "$ref": "#/components/schemas/taxonomyVersionSchema"
          }
        },
        "required": [
          "taxonomy",
          "taxonomyVersion"
        ]
      },
      "taxonomyVersionSchema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "templateDefinitionBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "triggerType": {
            "type": "string"
          },
          "conditions": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "params": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "type",
                "params"
              ]
            }
          },
          "runOnce": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "triggerType",
          "conditions",
          "actions"
        ]
      },
      "templateDefinitionSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 5000
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 64
          },
          "triggerType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "conditions": {
            "type": "object",
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "params": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  },
                  "default": {}
                }
              },
              "required": [
                "type",
                "params"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 20
          },
          "runOnce": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "name",
          "triggerType",
          "conditions",
          "actions",
          "runOnce"
        ],
        "additionalProperties": false
      },
      "TemplateExtraQuestionSchema": {
        "type": "object",
        "properties": {
          "isAIScreening": {
            "type": "boolean"
          },
          "isPhoneScreening": {
            "type": "boolean"
          },
          "enableAIQuestionGeneration": {
            "type": "boolean",
            "description": "AI interview question personalized per candidate (true; `question` is the base, blank = AI writes it) or asked as written (false)"
          },
          "question": {
            "type": "string"
          },
          "answer": {
            "type": "string"
          },
          "phoneQuestion": {
            "type": "string"
          },
          "phoneAnswer": {
            "type": "string"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ]
          },
          "aiGenerated": {
            "type": "object",
            "properties": {
              "ai": {
                "type": "boolean"
              },
              "phone": {
                "type": "boolean"
              }
            },
            "required": [
              "ai",
              "phone"
            ],
            "description": "Which of this row's questions AI wrote (INT-1153)"
          },
          "aiWeight": {
            "type": [
              "number",
              "null"
            ],
            "description": "AI interview question weightage (INT-1153); null = not set"
          },
          "phoneWeight": {
            "type": [
              "number",
              "null"
            ],
            "description": "Subjective phone question weightage (INT-1153); null = not set"
          }
        },
        "required": [
          "isAIScreening",
          "isPhoneScreening",
          "enableAIQuestionGeneration",
          "question",
          "answer",
          "phoneQuestion",
          "phoneAnswer",
          "phoneQuestionType",
          "aiGenerated",
          "aiWeight",
          "phoneWeight"
        ]
      },
      "templateParamsSchema": {
        "type": "object",
        "additionalProperties": {},
        "propertyNames": {
          "type": "string"
        }
      },
      "TemporalAutomationApprovalApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "approvalId": {
                "type": "number"
              },
              "status": {
                "type": "string",
                "enum": [
                  "PENDING",
                  "APPROVED",
                  "REJECTED"
                ]
              },
              "applied": {
                "type": "boolean",
                "description": "False when the approval had already been decided"
              }
            },
            "required": [
              "approvalId",
              "status",
              "applied"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationApprovalBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "reject"
            ]
          },
          "via": {
            "type": "string",
            "enum": [
              "user",
              "hold_window"
            ],
            "description": "A recruiter decided, or the holding window ended"
          },
          "actorEmail": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "maxLength": 256
          }
        },
        "required": [
          "companyId",
          "decision",
          "via",
          "actorEmail"
        ]
      },
      "TemporalAutomationApprovalParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          },
          "approvalId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "AutomationApproval id"
          }
        },
        "required": [
          "id",
          "approvalId"
        ]
      },
      "TemporalAutomationPreviewFactsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "applicationId": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "facts": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "applicationId",
                "name",
                "facts"
              ]
            }
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationPreviewFactsBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "jobPostingId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "default": 200
          }
        },
        "required": [
          "companyId",
          "jobPostingId",
          "limit"
        ]
      },
      "TemporalAutomationRulesForEventApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rules": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/engineRuleSchema"
                }
              },
              "facts": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {},
                "propertyNames": {
                  "type": "string"
                },
                "description": "Application facts keyed by field; null when no rule listens or the application is gone"
              },
              "sourceRun": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "ruleId": {
                    "type": "number"
                  },
                  "chainDepth": {
                    "type": "number"
                  }
                },
                "required": [
                  "id",
                  "ruleId",
                  "chainDepth"
                ]
              },
              "pendingRuns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "runId": {
                      "type": "string"
                    },
                    "workflowId": {
                      "type": "string"
                    },
                    "signal": {
                      "type": "string",
                      "enum": [
                        "event",
                        "cancel"
                      ]
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "runId",
                    "workflowId",
                    "signal",
                    "reason"
                  ]
                },
                "description": "Runs with timed steps open on the application: wake the ones waiting for this event, cancel the ones it makes moot"
              }
            },
            "required": [
              "rules",
              "facts",
              "sourceRun",
              "pendingRuns"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRulesForEventBodySchema": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "eventType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "entityType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "entityId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "jobPostingId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0
          },
          "automationRunId": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 128,
            "description": "Set when an automation run caused the event"
          },
          "targetRuleId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0,
            "description": "Time-based events: the one rule the event was emitted for"
          }
        },
        "required": [
          "eventId",
          "companyId",
          "eventType",
          "entityType",
          "entityId",
          "jobPostingId",
          "automationRunId"
        ]
      },
      "TemporalAutomationRunActionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "index": {
                "type": "number"
              },
              "key": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "succeeded",
                  "awaiting_approval",
                  "rejected"
                ]
              },
              "result": {
                "type": "object",
                "additionalProperties": {},
                "propertyNames": {
                  "type": "string"
                }
              }
            },
            "required": [
              "index",
              "type",
              "status",
              "result"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunActionBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 19,
            "description": "Position of the action in the run’s rule snapshot"
          },
          "branch": {
            "type": "string",
            "enum": [
              "onTimeout",
              "onExhausted"
            ],
            "description": "With a wait step at `index`: which of its action lists"
          },
          "branchIndex": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4,
            "description": "Position of the action in that list"
          },
          "attempt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 20,
            "description": "Reminder number, so each reminder is recorded on its own"
          }
        },
        "required": [
          "companyId",
          "index"
        ]
      },
      "TemporalAutomationRunCheckApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "proceed": {
                "type": "boolean"
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why not: run_closed | rule_disabled | rule_paused | entity_not_found"
              }
            },
            "required": [
              "proceed",
              "reason"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunCheckBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "companyId"
        ]
      },
      "TemporalAutomationRunCheckParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationRunClaimApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "string"
              },
              "created": {
                "type": "boolean"
              },
              "owned": {
                "type": "boolean",
                "description": "True for a new run, or this workflow’s own unfinished run after a retry"
              },
              "status": {
                "type": "string",
                "enum": [
                  "RUNNING",
                  "SUCCEEDED",
                  "SKIPPED",
                  "FAILED"
                ]
              },
              "previouslyMatched": {
                "type": "boolean",
                "description": "Run-once rules: the rule already matched this entity on another event"
              },
              "unavailableReason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Set when the automation catalog no longer allows the rule for this company (item disabled, killed, off-plan or out of limits); skip the run"
              },
              "requiresApproval": {
                "type": "boolean",
                "description": "A catalog item the rule uses always needs human approval"
              },
              "roundGate": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "roundNumber": {
                    "type": "integer",
                    "description": "The rule's interview round in the job (its place among the job's interview cards)"
                  },
                  "blockedReason": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "already_invited",
                      "previous_round_incomplete",
                      "round_in_progress"
                    ],
                    "description": "Set when the candidate may not get this round now; skip the run"
                  }
                },
                "required": [
                  "roundNumber",
                  "blockedReason"
                ],
                "description": "Set when the rule is one of the job's interview cards"
              }
            },
            "required": [
              "runId",
              "created",
              "owned",
              "status",
              "previouslyMatched",
              "unavailableReason",
              "requiresApproval",
              "roundGate"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunClaimBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "ruleId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "entityType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "entityId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "chainDepth": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          }
        },
        "required": [
          "companyId",
          "ruleId",
          "eventId",
          "workflowId",
          "entityType",
          "entityId",
          "chainDepth"
        ]
      },
      "TemporalAutomationRunFinishApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "runId",
              "status"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunFinishBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "status": {
            "type": "string",
            "enum": [
              "SUCCEEDED",
              "SKIPPED",
              "FAILED",
              "CANCELLED"
            ]
          },
          "matched": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "skipReason": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 64
          },
          "conditionResult": {
            "anyOf": [
              {
                "description": "Evaluator trace"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "companyId",
          "status",
          "matched",
          "skipReason",
          "conditionResult"
        ]
      },
      "TemporalAutomationRunFinishParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationRunHandOffApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "runId",
              "status"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunHandOffBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "stepWorkflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "talent-ai's AutomationStepsWorkflow id for the run"
          },
          "conditionResult": {
            "anyOf": [
              {
                "description": "Evaluator trace"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "companyId",
          "stepWorkflowId",
          "conditionResult"
        ]
      },
      "TemporalAutomationRunHandOffParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationRunParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationRunQuietHoursApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "allowedAt": {
                "type": "string",
                "description": "`at` when inside calling hours, else the next 09:00 in the candidate’s time zone"
              },
              "timezone": {
                "type": "string"
              }
            },
            "required": [
              "allowedAt",
              "timezone"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunQuietHoursBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "When the action would run"
          }
        },
        "required": [
          "companyId",
          "at"
        ]
      },
      "TemporalAutomationRunQuietHoursParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationRunThresholdApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Matches counted toward the threshold after this run"
              },
              "threshold": {
                "type": "number"
              },
              "reached": {
                "type": "boolean",
                "description": "True when this run completes the threshold: run the actions"
              }
            },
            "required": [
              "count",
              "threshold",
              "reached"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunThresholdBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "companyId"
        ]
      },
      "TemporalAutomationRunWaitApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "runId",
              "status"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationRunWaitBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "waitingForEventType": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 128,
            "description": "The event a wait step is waiting for; null for a delay or once awake"
          },
          "resumeAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the delay, wait or quiet-hours pause ends; null once awake"
          }
        },
        "required": [
          "companyId",
          "waitingForEventType",
          "resumeAt"
        ]
      },
      "TemporalAutomationRunWaitParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "AutomationRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationScheduledRuleApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "rule": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "number"
                  },
                  "version": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "triggerType": {
                    "type": "string"
                  },
                  "conditions": {},
                  "actions": {},
                  "runOnce": {
                    "type": "boolean"
                  },
                  "catalogItemVersions": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "thresholdCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "version",
                  "name",
                  "triggerType",
                  "conditions",
                  "actions",
                  "runOnce",
                  "catalogItemVersions",
                  "thresholdCount"
                ]
              },
              "skipReason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "rule_not_found | rule_disabled | not_scheduled when the rule should not run"
              }
            },
            "required": [
              "rule",
              "skipReason"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalAutomationScheduledRuleBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "companyId"
        ]
      },
      "TemporalAutomationScheduledRuleParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "AutomationRule id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalAutomationSummaryBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 19,
            "description": "Position of the summary action in the run’s rule snapshot"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000,
            "description": "Markdown: ## headings, - bullets, **bold**"
          },
          "data": {
            "description": "The summary input it was written from, kept with the summary"
          }
        },
        "required": [
          "companyId",
          "index",
          "title",
          "body"
        ]
      },
      "TemporalAutomationSummaryInputApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "ruleName": {
                "type": "string"
              },
              "ownerEmail": {
                "type": "string"
              },
              "timeZone": {
                "type": "string"
              },
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              },
              "filters": {
                "type": "object",
                "properties": {
                  "stages": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "string"
                    }
                  },
                  "minScore": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "staleDays": {
                    "type": "number"
                  }
                },
                "required": [
                  "stages",
                  "minScore",
                  "staleDays"
                ]
              },
              "jobs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "jobPostingId": {
                      "type": "number"
                    },
                    "title": {
                      "type": "string"
                    },
                    "newApplicants": {
                      "type": "number"
                    },
                    "stageMovements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "status",
                          "count"
                        ]
                      }
                    },
                    "topCandidates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "applicationId": {
                            "type": "number"
                          },
                          "name": {
                            "type": "string"
                          },
                          "score": {
                            "type": "number"
                          },
                          "status": {
                            "type": "string"
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "applicationId",
                          "name",
                          "score",
                          "status",
                          "reason"
                        ]
                      }
                    },
                    "waitingOnRecruiter": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number"
                        },
                        "sample": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/applicantSchema"
                          }
                        }
                      },
                      "required": [
                        "count",
                        "sample"
                      ]
                    },
                    "stale": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number"
                        },
                        "sample": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/applicantSchema"
                          }
                        }
                      },
                      "required": [
                        "count",
                        "sample"
                      ]
                    }
                  },
                  "required": [
                    "jobPostingId",
                    "title",
                    "newApplicants",
                    "stageMovements",
                    "topCandidates",
                    "waitingOnRecruiter",
                    "stale"
                  ]
                }
              },
              "automationActivity": {
                "type": "object",
                "properties": {
                  "totals": {
                    "type": "object",
                    "properties": {
                      "runs": {
                        "type": "number"
                      },
                      "moved": {
                        "type": "number"
                      },
                      "awaitingApproval": {
                        "type": "number"
                      },
                      "undone": {
                        "type": "number"
                      },
                      "failed": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "runs",
                      "moved",
                      "awaitingApproval",
                      "undone",
                      "failed"
                    ]
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "ruleName": {
                          "type": "string"
                        },
                        "runs": {
                          "type": "number"
                        },
                        "moved": {
                          "type": "number"
                        },
                        "awaitingApproval": {
                          "type": "number"
                        },
                        "failed": {
                          "type": "number"
                        },
                        "stages": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string"
                              },
                              "count": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "label",
                              "count"
                            ]
                          }
                        }
                      },
                      "required": [
                        "ruleName",
                        "runs",
                        "moved",
                        "awaitingApproval",
                        "failed",
                        "stages"
                      ]
                    }
                  },
                  "failures": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "ruleName": {
                          "type": "string"
                        },
                        "applicantName": {
                          "type": "string"
                        },
                        "jobTitle": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": "string"
                        },
                        "at": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ruleName",
                        "applicantName",
                        "jobTitle",
                        "message",
                        "at"
                      ]
                    }
                  }
                },
                "required": [
                  "totals",
                  "rules",
                  "failures"
                ],
                "description": "What the owner's other automations (job rules on the summary's jobs, their personal rules) did over the window"
              }
            },
            "required": [
              "ruleName",
              "ownerEmail",
              "timeZone",
              "window",
              "filters",
              "jobs",
              "automationActivity"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalCandidateUploadPathParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "CandidateUpload id (`upload_id` on the candidate workflow input)"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalCandidateUploadProgressApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "duplicate": {
                "type": "boolean",
                "description": "True when the workflow must stop: the resume matches an existing profile or another upload"
              }
            },
            "required": [
              "duplicate"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalCandidateUploadProgressBodySchema": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "Company the upload belongs to"
          },
          "processingStatus": {
            "type": "string",
            "enum": [
              "BASIC_PROFILE_EXTRACTED",
              "PROCESSED",
              "ERROR"
            ],
            "description": "Pipeline step reached"
          },
          "processingError": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2048,
            "description": "Failure reason when processingStatus is ERROR"
          },
          "isValidResume": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "False when the document is not a resume"
          },
          "firstName": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "lastName": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256,
            "description": "Extracted email; the duplicate check key"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 128,
            "description": "Extracted phone; the duplicate check key when there is no email"
          },
          "skipDuplicateCheck": {
            "type": "boolean",
            "description": "The `skip_duplicate_check` the workflow was started with (\"Update existing\")"
          }
        },
        "required": [
          "companyId",
          "processingStatus"
        ]
      },
      "TemporalCompanyAgentMemoryFlagsParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Company id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalCompanyAgentMemoryFlagsResponseSchema": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "AGENT_MEMORY_ENABLED: master switch"
          },
          "portable": {
            "type": "boolean",
            "description": "AGENT_MEMORY_PORTABLE_ENABLED: share candidate-stated facts across opted-in companies (false while enabled is false)"
          },
          "hashed_identity": {
            "type": "boolean",
            "description": "AGENT_MEMORY_HASHED_IDENTITY_ENABLED: store candidate email / phone as KMS hashes (false while enabled is false)"
          }
        },
        "required": [
          "enabled",
          "portable",
          "hashed_identity"
        ]
      },
      "TemporalCompanyIndustryTaxonomyApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "taxonomy": {
                "$ref": "#/components/schemas/industryTaxonomyEnum"
              },
              "isDefault": {
                "type": "boolean",
                "description": "True when the company has none set and the default applies"
              },
              "taxonomyVersion": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Latest stored version; null until the taxonomy was synced"
              },
              "nodeCount": {
                "type": "number",
                "description": "Active nodes in that version; re-read the node list when it changes"
              }
            },
            "required": [
              "taxonomy",
              "isDefault",
              "taxonomyVersion",
              "nodeCount"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalCompanyIndustryTaxonomyParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Company id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalCompanyProfileApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/temporalCompanyProfilePayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalCompanyProfileBodySchema": {
        "type": "object",
        "properties": {
          "sourceHash": {
            "type": "string",
            "minLength": 1,
            "description": "Hash of the text the profile was extracted from; a result for older text is dropped"
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "failed"
            ]
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/companyProfileSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "Extracted profile with summary; null when extraction failed or found nothing"
          }
        },
        "required": [
          "sourceHash",
          "status",
          "profile"
        ]
      },
      "TemporalCompanyProfileParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Company id"
          }
        },
        "required": [
          "id"
        ]
      },
      "temporalCompanyProfilePayloadSchema": {
        "type": "object",
        "properties": {
          "applied": {
            "type": "boolean",
            "description": "False when the saved text changed since extraction started"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "processing",
              "ready",
              "failed"
            ]
          }
        },
        "required": [
          "applied",
          "status"
        ]
      },
      "TemporalIndustryTaxonomyClassificationNodesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "taxonomy": {
                "$ref": "#/components/schemas/industryTaxonomyEnum"
              },
              "taxonomyVersion": {
                "type": "string"
              },
              "nodes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "externalCode": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "parentCode": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "level": {
                      "type": "number"
                    },
                    "hierarchyPath": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "externalCode",
                    "label",
                    "parentCode",
                    "level",
                    "hierarchyPath"
                  ]
                }
              }
            },
            "required": [
              "taxonomy",
              "taxonomyVersion",
              "nodes"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalIndustryTaxonomyMappingsApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "inserted": {
                "type": "number"
              },
              "unchanged": {
                "type": "number"
              },
              "unresolved": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/pairSchema"
                }
              }
            },
            "required": [
              "inserted",
              "unchanged",
              "unresolved"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalIndustryTaxonomyMappingsBodySchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "mappingSource": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "e.g. linkedin_naics_2017"
          },
          "from": {
            "$ref": "#/components/schemas/taxonomyRefSchema"
          },
          "to": {
            "$ref": "#/components/schemas/taxonomyRefSchema"
          },
          "pairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pairSchema"
            },
            "minItems": 1,
            "maxItems": 1000
          }
        },
        "required": [
          "runId",
          "mappingSource",
          "from",
          "to",
          "pairs"
        ]
      },
      "TemporalIndustryTaxonomyNodesApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "inserted": {
                "type": "number"
              },
              "unchanged": {
                "type": "number"
              },
              "differs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "externalCode": {
                      "type": "string"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "externalCode",
                    "fields"
                  ]
                }
              }
            },
            "required": [
              "inserted",
              "unchanged",
              "differs"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalIndustryTaxonomyNodesBodySchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "taxonomy": {
            "$ref": "#/components/schemas/industryTaxonomyEnum"
          },
          "taxonomyVersion": {
            "$ref": "#/components/schemas/taxonomyVersionSchema"
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/incomingNodeSchema"
            },
            "minItems": 1,
            "maxItems": 500
          }
        },
        "required": [
          "runId",
          "taxonomy",
          "taxonomyVersion",
          "nodes"
        ]
      },
      "TemporalIndustryTaxonomyNodesQueryParamsSchema": {
        "type": "object",
        "properties": {
          "taxonomy": {
            "$ref": "#/components/schemas/industryTaxonomyEnum"
          },
          "taxonomyVersion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/taxonomyVersionSchema"
              }
            ],
            "description": "From GET /api/temporal/companies/{id}/industry-taxonomy"
          }
        },
        "required": [
          "taxonomy",
          "taxonomyVersion"
        ]
      },
      "TemporalIndustryTaxonomyRunFinishApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "number"
              }
            },
            "required": [
              "runId"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalIndustryTaxonomyRunFinishBodySchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10000
          },
          "stats": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "Per-taxonomy and per-mapping counts reported by the workflow"
          }
        },
        "required": [
          "status",
          "error",
          "stats"
        ]
      },
      "TemporalIndustryTaxonomyRunParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "IndustryTaxonomySyncRun id"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalIndustryTaxonomyRunStartApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "runId": {
                "type": "number"
              }
            },
            "required": [
              "runId"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalIndustryTaxonomyRunStartBodySchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0,
            "description": "Run created by a manual \"Sync now\"; null for a scheduled sync"
          },
          "trigger": {
            "type": "string",
            "enum": [
              "MANUAL",
              "SCHEDULE"
            ]
          },
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "runId",
          "trigger",
          "workflowId"
        ]
      },
      "TemporalInterviewQualityCheckQueryParamsSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ],
            "description": "WEB (needs screeningInterviewId) or PHONE (needs screeningCallId)"
          },
          "screeningInterviewId": {
            "description": "ScreeningInterview id (WEB)",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "screeningCallId": {
            "description": "ScreeningCall id (PHONE)",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "channel"
        ]
      },
      "TemporalInterviewQualityCheckResponseSchema": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "The company's INTERVIEW_QUALITY_ANALYSIS_ENABLED flag (false for an unknown screening)"
          },
          "interviewId": {
            "type": [
              "number",
              "null"
            ],
            "description": "Interview the screening belongs to (null when the screening is unknown)"
          },
          "companyId": {
            "type": [
              "number",
              "null"
            ],
            "description": "Company of the interview (null when unknown)"
          }
        },
        "required": [
          "enabled",
          "interviewId",
          "companyId"
        ]
      },
      "TemporalInterviewQualityContextQueryParamsSchema": {
        "type": "object",
        "properties": {
          "interviewId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Interview id"
          },
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ],
            "description": "Optional: which AI screening to describe when the interview has both (default: the newest one)"
          }
        },
        "required": [
          "interviewId"
        ]
      },
      "TemporalInterviewQualityContextResponseSchema": {
        "type": "object",
        "properties": {
          "interviewId": {
            "type": "number"
          },
          "channel": {
            "type": "string",
            "enum": [
              "WEB",
              "PHONE"
            ]
          },
          "companyId": {
            "type": [
              "number",
              "null"
            ]
          },
          "companySlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyName": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobApplicationId": {
            "type": [
              "number",
              "null"
            ]
          },
          "jobTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "candidateName": {
            "type": [
              "string",
              "null"
            ]
          },
          "screeningInterviewId": {
            "type": [
              "number",
              "null"
            ]
          },
          "screeningCallId": {
            "type": [
              "number",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "description": "ScreeningInterviewStatus (WEB) or ScreeningCallStatus (PHONE)"
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "Screening config's agentLanguage, e.g. en-IN"
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "number",
                  "description": "Position in the stored question list (= transcript question_index)"
                },
                "question": {
                  "type": "string"
                },
                "focusArea": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "questionType": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "index",
                "question",
                "focusArea",
                "questionType"
              ]
            }
          },
          "screeningConfig": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            }
          },
          "transcriptUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "PHONE only; null for WEB (derive from the recordings path)"
          },
          "interviewStateUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "PHONE only; null for WEB (derive from the recordings path)"
          },
          "decisionLogUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "clientDecisionLogUrl of the screening"
          },
          "recordingUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "web": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "webrtcSessionLog": {
                "$ref": "#/components/schemas/jsonValueSchema"
              },
              "interviewEvents": {
                "$ref": "#/components/schemas/jsonValueSchema"
              },
              "proctoringEvents": {
                "$ref": "#/components/schemas/jsonValueSchema"
              }
            },
            "required": [
              "webrtcSessionLog",
              "interviewEvents",
              "proctoringEvents"
            ],
            "description": "WEB only"
          },
          "phone": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "callEvents": {
                "$ref": "#/components/schemas/jsonValueSchema"
              },
              "callQuality": {
                "$ref": "#/components/schemas/jsonValueSchema"
              },
              "currentAttemptId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycleEvents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "createdAt": {
                      "type": "string"
                    },
                    "attemptId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "createdAt",
                    "attemptId",
                    "outcome",
                    "reason"
                  ]
                }
              }
            },
            "required": [
              "callEvents",
              "callQuality",
              "currentAttemptId",
              "lifecycleEvents"
            ],
            "description": "PHONE only"
          }
        },
        "required": [
          "interviewId",
          "channel",
          "companyId",
          "companySlug",
          "companyName",
          "jobApplicationId",
          "jobTitle",
          "candidateName",
          "screeningInterviewId",
          "screeningCallId",
          "status",
          "language",
          "questions",
          "screeningConfig",
          "transcriptUrl",
          "interviewStateUrl",
          "decisionLogUrl",
          "recordingUrl",
          "web",
          "phone"
        ]
      },
      "TemporalInterviewQualityReportBodySchema": {
        "type": "object",
        "properties": {
          "interviewId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "WEB",
              "PHONE"
            ],
            "description": "Null when a MANUAL run failed before the interview context loaded (report is then null, status FAILED)"
          },
          "trigger": {
            "type": "string",
            "enum": [
              "AUTO",
              "MANUAL"
            ]
          },
          "runId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0,
            "description": "Manual run to finish (MANUAL trigger)"
          },
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Idempotency key: a repeat with the same workflowId stores nothing new"
          },
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED",
              "FAILED"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "report": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "detectorVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "judgePromptVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "judgeModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "judgeScore": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "maximum": 100
              },
              "summary": {
                "type": "string"
              },
              "metrics": {
                "type": "object",
                "additionalProperties": {},
                "propertyNames": {
                  "type": "string"
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/issueSchema"
                }
              }
            },
            "required": [
              "detectorVersion",
              "judgePromptVersion",
              "judgeModel",
              "summary",
              "metrics",
              "issues"
            ]
          }
        },
        "required": [
          "interviewId",
          "channel",
          "trigger",
          "workflowId",
          "status"
        ]
      },
      "TemporalInterviewQualityReportResponseSchema": {
        "type": "object",
        "properties": {
          "reportId": {
            "type": [
              "number",
              "null"
            ],
            "description": "Stored report id; null when there were no issues (nothing stored)"
          }
        },
        "required": [
          "reportId"
        ]
      },
      "TemporalInterviewQualityRunStatusBodySchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "RUNNING"
            ],
            "description": "Only RUNNING — final statuses arrive with POST /report"
          },
          "workflowId": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "status"
        ]
      },
      "TemporalInterviewQualityRunStatusParamsSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "InterviewQualityRun id"
          }
        },
        "required": [
          "runId"
        ]
      },
      "TemporalInterviewQualityRunStatusResponseSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "COMPLETED_WITH_ISSUES",
              "COMPLETED_NO_ISSUES",
              "FAILED"
            ],
            "description": "The run's status after the call"
          },
          "updated": {
            "type": "boolean",
            "description": "False when the run had already finished (a late call never reopens it)"
          }
        },
        "required": [
          "runId",
          "status",
          "updated"
        ]
      },
      "TemporalInterviewRoundAiSummaryApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "$ref": "#/components/schemas/temporalInterviewRoundAiSummaryPayloadSchema"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "TemporalInterviewRoundAiSummaryBodySchema": {
        "type": "object",
        "properties": {
          "interviewResultId": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "InterviewResult the summary belongs to"
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "failed"
            ]
          },
          "summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "Recruiter brief (markdown); null when the run failed"
          }
        },
        "required": [
          "interviewResultId",
          "status",
          "summary"
        ]
      },
      "TemporalInterviewRoundAiSummaryParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Interview round id"
          }
        },
        "required": [
          "id"
        ]
      },
      "temporalInterviewRoundAiSummaryPayloadSchema": {
        "type": "object",
        "properties": {
          "applied": {
            "type": "boolean",
            "description": "False when the round or interview result was not found"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ready",
              "failed"
            ]
          }
        },
        "required": [
          "applied",
          "status"
        ]
      },
      "TemporalPhoneCallScoringParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ScreeningCall id"
          },
          "attemptId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The finished call (attempt)"
          }
        },
        "required": [
          "id",
          "attemptId"
        ]
      },
      "TemporalPhoneCallScoringResponseSchema": {
        "type": "object",
        "properties": {
          "score": {
            "type": "boolean",
            "description": "Score now; false while the call is a cut-off call held for its redial"
          },
          "redial": {
            "type": "boolean",
            "description": "Earlier calls need merging with this one (a redial continued them)"
          },
          "attempt_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The interview's calls in order, this call last; a normal call lists only itself"
          }
        },
        "required": [
          "score",
          "redial",
          "attempt_ids"
        ]
      },
      "TemporalScreeningCallVoiceConfigBodySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ScreeningCall id"
          },
          "attemptId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "The dial attempt the config is for; its prompts are recorded on the call"
          }
        },
        "required": [
          "id"
        ]
      },
      "TemporalScreeningCallVoiceConfigResponseSchema": {
        "type": "object",
        "properties": {
          "screeningCallId": {
            "type": "number"
          },
          "channel": {
            "type": "string",
            "enum": [
              "phone"
            ]
          },
          "engine": {
            "type": "string",
            "enum": [
              "screenai",
              "vapi"
            ],
            "description": "Who places the call: the company's engine integration (vapi), else screenai"
          },
          "language": {
            "type": "string",
            "description": "The call's language on that engine: Vapi speaks the job's bot language (else the phone language), screenai the phone language"
          },
          "pipelineConfig": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "description": "The engine's phoneScreeningConfig row for the language"
          },
          "prompt": {
            "type": "object",
            "properties": {
              "base": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/voiceAgentPromptSchema"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "languageAddendum": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "number"
                  },
                  "version": {
                    "type": "number"
                  },
                  "content": {
                    "type": "string"
                  },
                  "language": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "version",
                  "content",
                  "language"
                ]
              }
            },
            "required": [
              "base",
              "languageAddendum"
            ]
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "parameters": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  },
                  "description": "JSON schema of the arguments"
                }
              },
              "required": [
                "name",
                "description",
                "parameters"
              ]
            },
            "description": "The agent's tools, provider-neutral; talent-web answers them on the voice provider's webhook"
          },
          "script": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "systemPrompt": {
                "type": "string",
                "description": "Rendered from the stored prompts; talent-ai fills {{candidate_context}} from its agent memory"
              },
              "firstMessage": {
                "type": "string"
              },
              "voicemailMessage": {
                "type": "string"
              },
              "silencePrompt": {
                "type": "string",
                "description": "Said after a silence; {{transcript}} is Vapi's"
              }
            },
            "required": [
              "systemPrompt",
              "firstMessage",
              "voicemailMessage",
              "silencePrompt"
            ],
            "description": "What the agent says and is told on a Vapi call; null for other engines"
          },
          "structuredOutputs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "schema": {
                  "type": "object",
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  },
                  "description": "JSON schema of the result"
                }
              },
              "required": [
                "name",
                "description",
                "schema"
              ]
            },
            "description": "Vapi only (empty otherwise): transient structured outputs for the assistant's artifactPlan.structuredOutputs. question_outcomes asks for each question's outcome, which the end-of-call report brings back for the interview state"
          }
        },
        "required": [
          "screeningCallId",
          "channel",
          "engine",
          "language",
          "pipelineConfig",
          "prompt",
          "tools",
          "script",
          "structuredOutputs"
        ]
      },
      "text": {
        "type": "string"
      },
      "textList": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "textOrNull": {
        "type": [
          "string",
          "null"
        ],
        "default": null
      },
      "timeTriggerConfigSchema": {
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          },
          "status": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "days"
        ],
        "additionalProperties": false
      },
      "token": {
        "type": "string",
        "minLength": 16,
        "maxLength": 64,
        "description": "Chat link token (from the candidate email)"
      },
      "UpdateAssessmentParamBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "parameter": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Competency name"
          },
          "definition": {
            "type": [
              "string",
              "null"
            ]
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentParamQuestionSchema"
            },
            "maxItems": 1
          },
          "enableAIQuestionGeneration": {
            "type": "boolean",
            "description": "AI interview: true = personalized per candidate from their resume (the question below is the base; blank = AI writes it); false = the question below is spoken as written"
          },
          "defaultQuestion": {
            "type": "string",
            "description": "AI interview question: asked as written, or the personalization base"
          },
          "defaultAnswer": {
            "type": "string",
            "description": "AI interview reference answer"
          },
          "enableAIHumanQuestionGeneration": {
            "type": "boolean",
            "description": "Human interview: true = AI-generated questions; false = the question below is shown to the interviewer"
          },
          "defaultHumanQuestion": {
            "type": "string",
            "description": "Human interview question (used when enableAIHumanQuestionGeneration is false)"
          },
          "defaultHumanAnswer": {
            "type": "string",
            "description": "Human interview reference answer"
          },
          "phoneQuestionType": {
            "type": "string",
            "enum": [
              "objective",
              "subjective"
            ],
            "description": "Phone screening question type"
          },
          "defaultPhoneQuestion": {
            "type": "string",
            "description": "Phone screening question"
          },
          "defaultPhoneAnswer": {
            "type": "string",
            "description": "Phone screening reference answer"
          }
        },
        "required": [
          "companySlug",
          "parameter"
        ]
      },
      "UpdateAssessmentTemplateBodySchema": {
        "type": "object",
        "properties": {
          "companySlug": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AssessmentLevelSchema"
              }
            ]
          },
          "departmentId": {
            "type": [
              "integer",
              "null"
            ],
            "exclusiveMinimum": 0
          },
          "AssessmentParameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssessmentTemplateParameterSchema"
            }
          }
        },
        "required": [
          "companySlug"
        ]
      },
      "UpdateDepartmentBodySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "departmentName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "id",
          "departmentName"
        ]
      },
      "updateJobApplicationSchema": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "sendNotification": {
            "type": "boolean"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email",
            "default": ""
          },
          "phone": {
            "type": "string"
          },
          "linkedInUrl": {
            "type": "string"
          },
          "resumeUrl": {
            "type": "string"
          },
          "currentCompany": {
            "type": "string"
          },
          "currentDesignation": {
            "type": "string"
          },
          "previousCompaniesTop3": {
            "type": "string"
          },
          "industryExperienceTop3": {
            "type": "string"
          },
          "latestDegree": {
            "type": "string"
          },
          "latestInstitution": {
            "type": "string"
          },
          "yearOfGraduation": {
            "type": "string"
          },
          "yearsOfExperience": {
            "type": "number"
          },
          "currentCompensation": {
            "type": "number",
            "minimum": 100000,
            "maximum": 1000000000
          },
          "expectedCompensation": {
            "type": "number",
            "minimum": 100000,
            "maximum": 1000000000
          },
          "noticePeriodInDays": {
            "type": "number",
            "minimum": 0,
            "maximum": 120
          },
          "location": {
            "type": "string"
          },
          "peopleManagement": {
            "type": "boolean"
          },
          "applicationDocuments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "refereeEmployeeId": {
            "type": "string"
          },
          "refereePhone": {
            "type": "string"
          },
          "refereeFirstName": {
            "type": "string"
          },
          "refereeLastName": {
            "type": "string"
          },
          "relationshipToCandidate": {
            "type": "string"
          },
          "refereeEmail": {
            "type": "string"
          },
          "referralStatus": {
            "type": "string"
          },
          "score": {
            "type": "string"
          },
          "scoreSummary": {
            "type": "string"
          },
          "applicationType": {
            "type": "string"
          },
          "internalEmployeeNumber": {
            "type": "string"
          },
          "consultantCompanyName": {
            "type": "string"
          },
          "consultantEmail": {
            "type": "string"
          },
          "consultantName": {
            "type": "string"
          }
        }
      },
      "UpdateJobDescriptionBodySchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "content": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JdStatusSchema"
              }
            ]
          },
          "isFinal": {
            "type": "boolean"
          },
          "companyId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d+$"
              },
              {
                "type": "integer"
              }
            ],
            "description": "When present it must match the session company"
          }
        }
      },
      "updateJobSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "hiringManagerEmail": {
            "type": "string",
            "format": "email"
          },
          "recruiterEmail": {
            "type": "string",
            "format": "email"
          },
          "departmentId": {
            "type": "number"
          },
          "level": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "jobDescriptionUrl": {
            "type": "string",
            "format": "uri"
          },
          "jobDescriptionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "employmentType": {
            "type": "string"
          },
          "workExperience": {
            "type": "string",
            "minLength": 0,
            "maxLength": 25
          },
          "minSalaryExpectation": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1000000000
          },
          "maxSalaryExpectation": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1000000000
          },
          "newOrReplacement": {
            "type": "string"
          },
          "extractedText": {
            "type": "string"
          },
          "screeningConfig": {
            "type": "object",
            "properties": {
              "agentLanguage": {
                "type": "string"
              },
              "languageStyle": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "hinglish"
                ]
              },
              "candidateLanguage": {
                "type": "string"
              },
              "method": {
                "type": "string",
                "enum": [
                  "generic",
                  "star"
                ],
                "default": "star"
              },
              "followupMode": {
                "type": "string",
                "enum": [
                  "after_complete",
                  "intensive"
                ],
                "default": "after_complete"
              },
              "enablePsychometrics": {
                "type": "boolean",
                "default": true
              },
              "enableLivenessCheck": {
                "type": "boolean",
                "default": true
              },
              "showQuestionsMultilingual": {
                "type": "boolean",
                "default": false
              },
              "questionsAdditionalLang": {
                "type": "string"
              },
              "webrtc": {
                "type": "object",
                "properties": {
                  "laptopOnly": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "required": [
                  "laptopOnly"
                ]
              }
            },
            "required": [
              "method",
              "followupMode",
              "enablePsychometrics",
              "enableLivenessCheck",
              "showQuestionsMultilingual"
            ]
          },
          "assessmentTemplateId": {
            "type": [
              "number",
              "null"
            ]
          },
          "phoneScreeningConfig": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "enableScoring": {
                "type": "boolean",
                "default": true
              },
              "enablePsychometrics": {
                "type": "boolean",
                "default": false
              },
              "method": {
                "type": "string",
                "enum": [
                  "generic",
                  "star"
                ],
                "default": "generic"
              },
              "agentLanguage": {
                "type": "string",
                "default": "en-IN"
              }
            },
            "required": [
              "enableScoring",
              "enablePsychometrics",
              "method",
              "agentLanguage"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "jobDescriptionUrl",
          "jobDescriptionId",
          "assessmentTemplateId"
        ]
      },
      "updateRoutingRuleSchema": {
        "type": "object",
        "properties": {
          "entityType": {
            "type": "string",
            "enum": [
              "JobPosting",
              "JobApplication",
              "JobOffers"
            ]
          },
          "departmentId": {
            "type": [
              "number",
              "null"
            ]
          },
          "approvers": {
            "allOf": [
              {
                "$ref": "#/components/schemas/routingRuleApproversSchema"
              }
            ]
          }
        }
      },
      "updateStatusSchema": {
        "type": "object",
        "properties": {
          "visibility": {
            "type": "string",
            "minLength": 1
          },
          "positionHoldComments": {
            "type": "string"
          },
          "positionClosedComments": {
            "type": "string"
          },
          "isBackendRequest": {
            "type": "boolean"
          }
        },
        "required": [
          "visibility"
        ]
      },
      "uploadStatusSchema": {
        "type": "string",
        "enum": [
          "SUBMITTED",
          "BASIC_PROFILE_EXTRACTED",
          "PARSE_PROFILE",
          "PROCESSED",
          "ERROR",
          "DUPLICATE"
        ]
      },
      "value": {
        "type": "boolean"
      },
      "vapiLanguageSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "script": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "greet": {
            "type": "string",
            "maxLength": 200
          },
          "greet_no_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "acks": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vapiPhraseList"
              }
            ]
          },
          "stops": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vapiPhraseList"
              }
            ]
          },
          "byes": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vapiPhraseList"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "vapiPhoneConfigSchema": {
        "type": "object",
        "properties": {
          "tone": {
            "type": "string",
            "enum": [
              "off",
              "subtle",
              "expressive"
            ]
          },
          "voices": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/vapiVoiceSchema"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "backupVoice": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vapiVoiceSchema"
              }
            ]
          },
          "transcribers": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/vapiProviderObject"
            },
            "propertyNames": {
              "type": "string"
            }
          },
          "model": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vapiProviderObject"
              }
            ]
          },
          "language_profile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/vapiLanguageSchema"
              }
            ]
          },
          "slow_lookup": {
            "type": "object",
            "properties": {
              "line": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "after_ms": {
                "type": "integer",
                "minimum": 500,
                "maximum": 10000
              }
            },
            "required": [
              "line",
              "after_ms"
            ],
            "additionalProperties": false
          },
          "cut_off_redial_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3600
          },
          "persona": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "gender": {
                "type": "string",
                "enum": [
                  "female",
                  "male"
                ]
              },
              "say": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "devanagari": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "vapiPhraseList": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "minItems": 1,
        "maxItems": 30
      },
      "vapiProviderObject": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "provider"
        ],
        "additionalProperties": true
      },
      "vapiVoiceSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "minLength": 1
          },
          "model": {
            "type": "string",
            "minLength": 1
          },
          "voiceId": {
            "type": "string",
            "minLength": 1
          },
          "expressivity": {
            "type": "number",
            "minimum": -2,
            "maximum": 2
          },
          "speed": {
            "type": "number"
          }
        },
        "required": [
          "provider",
          "model",
          "voiceId"
        ],
        "additionalProperties": true
      },
      "viewSchema": {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "dir": {
                  "type": "string",
                  "enum": [
                    "in",
                    "out",
                    "event"
                  ]
                },
                "text": {
                  "type": "string"
                },
                "at": {
                  "type": "string"
                },
                "event": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "booked",
                        "rescheduled",
                        "cancelled"
                      ]
                    },
                    "start": {
                      "type": "string"
                    },
                    "previousStart": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "start"
                  ]
                }
              },
              "required": [
                "dir",
                "text",
                "at"
              ]
            }
          },
          "state": {
            "type": "string",
            "enum": [
              "unbooked",
              "booked",
              "closed"
            ]
          },
          "open": {
            "type": "boolean",
            "description": "False: read-only (closed, expired or nothing left to schedule)"
          },
          "awaitingCode": {
            "type": "boolean",
            "description": "An email code was sent; show the code box"
          },
          "companyName": {
            "type": "string"
          },
          "companyLogoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "showCompanyLogo": {
            "type": "boolean"
          },
          "jobTitle": {
            "type": "string"
          },
          "roundNumber": {
            "type": [
              "number",
              "null"
            ]
          },
          "durationMinutes": {
            "type": "number"
          },
          "timezone": {
            "type": "string"
          },
          "timezoneChosen": {
            "type": "boolean",
            "description": "False while the timezone is the round default"
          },
          "bookedSlotLocal": {
            "type": [
              "string",
              "null"
            ]
          },
          "bookedStart": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO start of the booked interview"
          },
          "maskedEmail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the code went, while one is out"
          },
          "closedReason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "cancelled",
              "declined",
              "message_limit",
              "interview_done",
              "link_expired"
            ]
          },
          "calendarLink": {
            "type": [
              "string",
              "null"
            ],
            "description": "Calendar page for the same round, while unbooked"
          },
          "format": {
            "type": "string",
            "enum": [
              "online",
              "in_person"
            ],
            "description": "How the candidate attends"
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Venue of an in-person interview, when set"
          }
        },
        "required": [
          "messages",
          "state",
          "open",
          "awaitingCode",
          "companyName",
          "companyLogoUrl",
          "showCompanyLogo",
          "jobTitle",
          "roundNumber",
          "durationMinutes",
          "timezone",
          "timezoneChosen",
          "bookedSlotLocal",
          "bookedStart",
          "maskedEmail",
          "closedReason",
          "calendarLink",
          "format",
          "location"
        ]
      },
      "voiceAgentPromptSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "version": {
            "type": "number"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "version",
          "content"
        ]
      },
      "waitForEventParamsSchema": {
        "type": "object",
        "properties": {
          "eventType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "timeoutMinutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 43200
          },
          "maxReminders": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10,
            "default": 0
          },
          "onTimeout": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/automationActionSchema"
            },
            "maxItems": 5
          },
          "onExhausted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/automationActionSchema"
            },
            "maxItems": 5
          }
        },
        "required": [
          "eventType",
          "timeoutMinutes",
          "maxReminders",
          "onTimeout",
          "onExhausted"
        ],
        "additionalProperties": false
      },
      "weird": {
        "type": "object",
        "additionalProperties": true
      },
      "WhatsAppThreadActionApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "ok": {
                "type": "boolean"
              }
            },
            "required": [
              "ok"
            ],
            "additionalProperties": true,
            "description": "`ok` plus the tool result, or `reason` when it was refused"
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "WhatsAppThreadActionBodySchema": {
        "type": "object",
        "discriminator": {
          "propertyName": "action"
        },
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "get_context"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "propose_slot"
                ]
              },
              "local_datetime": {
                "type": "string",
                "description": "Wall-clock time in the candidate's timezone, ISO without offset (2026-10-29T17:00)"
              }
            },
            "required": [
              "action",
              "local_datetime"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "book_call"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "confirm_current_time"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "ask_decline_confirmation"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "decline_interview"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "mark_wrong_number"
                ]
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "opt_out"
                ]
              }
            },
            "required": [
              "action"
            ]
          }
        ]
      },
      "WhatsAppThreadIdParamsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "WhatsAppThread id"
          }
        },
        "required": [
          "id"
        ]
      },
      "WhatsAppThreadsCronApiResponseSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "retried": {
                "type": "number",
                "description": "Threads whose unanswered message was answered again (the pod answering it had died)"
              },
              "closed": {
                "type": "number",
                "description": "Idle threads closed; an \"Ask candidate\" call with no reply becomes FAILED"
              }
            },
            "required": [
              "retried",
              "closed"
            ]
          },
          "message": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "statusCode",
          "data",
          "message",
          "success"
        ]
      },
      "widgetConfigSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "table",
              "pie_chart",
              "bar_chart",
              "line_chart",
              "metric_card",
              "metric",
              "donut_chart",
              "function"
            ]
          },
          "position": {
            "type": "object",
            "properties": {
              "row": {
                "type": "number"
              },
              "col": {
                "type": "number"
              },
              "width": {
                "type": "number",
                "default": 12
              },
              "height": {
                "type": "number",
                "default": 400
              }
            },
            "required": [
              "row",
              "col",
              "width",
              "height"
            ]
          },
          "dataSource": {
            "$ref": "#/components/schemas/dataSourceSchema"
          },
          "config": {
            "type": "object",
            "properties": {
              "columns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "text",
                        "number",
                        "date",
                        "status",
                        "link"
                      ],
                      "default": "text"
                    },
                    "sortable": {
                      "type": "boolean",
                      "default": false
                    },
                    "format": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "label",
                    "type",
                    "sortable"
                  ]
                }
              },
              "exportable": {
                "type": "boolean"
              },
              "exportFormats": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "csv",
                    "excel",
                    "pdf"
                  ]
                }
              },
              "pagination": {
                "type": "boolean"
              },
              "pageSize": {
                "type": "number"
              },
              "displayType": {
                "type": "string"
              },
              "primaryMetric": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "subMetrics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "color": {
                      "type": "string"
                    },
                    "suffix": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "label"
                  ]
                }
              },
              "trend": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "compareWith": {
                    "type": "string"
                  }
                },
                "required": [
                  "enabled"
                ]
              },
              "rowColors": {
                "type": "object",
                "properties": {
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "condition": {
                          "type": "string"
                        },
                        "color": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "condition",
                        "color"
                      ]
                    }
                  }
                },
                "required": [
                  "rules"
                ]
              },
              "note": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "position": {
                    "type": "string",
                    "enum": [
                      "top",
                      "bottom"
                    ],
                    "default": "bottom"
                  }
                },
                "required": [
                  "text",
                  "position"
                ]
              },
              "chartConfig": {
                "type": "object",
                "properties": {
                  "xAxis": {
                    "type": "string"
                  },
                  "yAxis": {
                    "type": "string"
                  },
                  "series": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "field": {
                          "type": "string"
                        },
                        "color": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "field"
                      ]
                    }
                  },
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "colors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "showLegend": {
                    "type": "boolean",
                    "default": true
                  },
                  "showDataLabels": {
                    "type": "boolean",
                    "default": true
                  },
                  "smooth": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "showLegend",
                  "showDataLabels"
                ]
              },
              "metricConfig": {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "format": {
                    "type": "string"
                  },
                  "trend": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "percentage",
                          "absolute"
                        ]
                      },
                      "period": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "type",
                      "period"
                    ]
                  },
                  "icon": {
                    "type": "string"
                  }
                },
                "required": [
                  "value",
                  "label"
                ]
              }
            }
          },
          "refresh": {
            "type": "object",
            "properties": {
              "auto": {
                "type": "boolean",
                "default": false
              },
              "interval": {
                "type": "number",
                "default": 300
              }
            },
            "required": [
              "auto",
              "interval"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "type",
          "position",
          "dataSource",
          "config"
        ]
      },
      "withTrim": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "name"
        ]
      }
    },
    "responses": {
      "400": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "examples": [
                    "Invalid request parameters"
                  ]
                },
                "code": {
                  "type": "string",
                  "examples": [
                    "400"
                  ]
                }
              }
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "examples": [
                    "Authentication required"
                  ]
                },
                "code": {
                  "type": "string",
                  "examples": [
                    "401"
                  ]
                }
              }
            }
          }
        }
      },
      "403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "examples": [
                    "Access denied"
                  ]
                },
                "code": {
                  "type": "string",
                  "examples": [
                    "403"
                  ]
                }
              }
            }
          }
        }
      },
      "404": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "examples": [
                    "Resource not found"
                  ]
                },
                "code": {
                  "type": "string",
                  "examples": [
                    "404"
                  ]
                }
              }
            }
          }
        }
      },
      "409": {
        "description": "Conflict",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "examples": [
                    "Resource already exists"
                  ]
                },
                "code": {
                  "type": "string",
                  "examples": [
                    "409"
                  ]
                }
              }
            }
          }
        }
      },
      "500": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "examples": [
                    "An unexpected error occurred"
                  ]
                },
                "code": {
                  "type": "string",
                  "examples": [
                    "500"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/{companySlug}/candidate-sharing/create": {
      "post": {
        "operationId": "post-{companySlug}-candidate-sharing-create",
        "summary": "",
        "description": "",
        "tags": [
          "{companySlug}"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/jobs/{jobPostingId}/talent-pool-invites": {
      "get": {
        "operationId": "get-{companySlug}-jobs-{jobPostingId}-talent-pool-invites",
        "summary": "",
        "description": "",
        "tags": [
          "{companySlug}"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-{companySlug}-jobs-{jobPostingId}-talent-pool-invites",
        "summary": "",
        "description": "",
        "tags": [
          "{companySlug}"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies": {
      "get": {
        "operationId": "get-admin-companies",
        "summary": "GET handler for admin companies endpoint",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "companySlug": {
                          "type": "string"
                        },
                        "companyName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "externalAccountId": {
                          "type": "object"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "archived": {
                          "type": "boolean"
                        },
                        "archivedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "description": {
                          "type": "object"
                        },
                        "stripeCustomerId": {
                          "type": "object"
                        },
                        "linkedInCompanyId": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "creditCostSetId": {
                          "type": "object"
                        },
                        "config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "companyLogoUrl": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "companyLogoUrl"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "companySlug",
                        "companyName",
                        "externalAccountId",
                        "createdAt",
                        "updatedAt",
                        "archived",
                        "archivedAt",
                        "description",
                        "stripeCustomerId",
                        "linkedInCompanyId",
                        "creditCostSetId",
                        "config"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-companies",
        "summary": "",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/companySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/intalent-users": {
      "get": {
        "operationId": "get-admin-intalent-users",
        "summary": "SuperAdmin only. Lists distinct @intalent.ai users with real Auth0 IDs (from Users table).",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "excludeCompanyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/organizations": {
      "post": {
        "operationId": "post-admin-organizations",
        "summary": "POST /api/admin/organizations",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createOrganizationSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "companySlug": {
                          "type": "string"
                        },
                        "companyName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "externalAccountId": {
                          "type": "object"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "archived": {
                          "type": "boolean"
                        },
                        "archivedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "description": {
                          "type": "object"
                        },
                        "stripeCustomerId": {
                          "type": "object"
                        },
                        "linkedInCompanyId": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "creditCostSetId": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "id",
                        "companySlug",
                        "companyName",
                        "externalAccountId",
                        "createdAt",
                        "updatedAt",
                        "archived",
                        "archivedAt",
                        "description",
                        "stripeCustomerId",
                        "linkedInCompanyId",
                        "creditCostSetId"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}": {
      "get": {
        "operationId": "get-admin-companies-{id}",
        "summary": "GET handler for company full details (super admin only).",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "company": {
                          "type": "object",
                          "properties": {
                            "companyName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "companySlug": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "description": {
                              "type": "object"
                            },
                            "stripeCustomerId": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "companyName",
                            "companySlug",
                            "createdAt",
                            "updatedAt",
                            "description",
                            "stripeCustomerId"
                          ]
                        },
                        "config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "domain": {
                              "type": "object"
                            },
                            "autoApprove": {
                              "type": "boolean"
                            },
                            "autoApproveReplacementJobs": {
                              "type": "boolean"
                            },
                            "autoApproveOffers": {
                              "type": "boolean"
                            },
                            "autoApproveApplications": {
                              "type": "boolean"
                            },
                            "autoPostToNaukri": {
                              "type": "boolean"
                            },
                            "autoPostToLinkedIn": {
                              "type": "boolean"
                            },
                            "naukriTestAccount": {
                              "type": "boolean"
                            },
                            "naukriAPIKey": {
                              "type": "boolean"
                            },
                            "careerPageSettingEnabled": {
                              "type": "boolean"
                            },
                            "enableSendingEmail": {
                              "type": "boolean"
                            },
                            "isReachOutEnabled": {
                              "type": "boolean"
                            },
                            "showCompanyLogo": {
                              "type": "boolean"
                            },
                            "companyLogoUrl": {
                              "type": "object"
                            },
                            "featureFlags": {
                              "type": "object",
                              "properties": {}
                            },
                            "allowJDAgent": {
                              "type": "boolean"
                            },
                            "industryTaxonomy": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "BLS",
                                "LINKEDIN_V2",
                                "NAICS"
                              ]
                            }
                          },
                          "required": [
                            "domain",
                            "autoApprove",
                            "autoApproveReplacementJobs",
                            "autoApproveOffers",
                            "autoApproveApplications",
                            "autoPostToNaukri",
                            "autoPostToLinkedIn",
                            "naukriTestAccount",
                            "naukriAPIKey",
                            "careerPageSettingEnabled",
                            "enableSendingEmail",
                            "isReachOutEnabled",
                            "showCompanyLogo",
                            "companyLogoUrl",
                            "featureFlags",
                            "allowJDAgent",
                            "industryTaxonomy"
                          ]
                        },
                        "graphConfig": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "connected": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "connected"
                          ]
                        },
                        "billingSubscription": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "id": {
                              "type": "number"
                            },
                            "companyId": {
                              "type": "number"
                            },
                            "planId": {
                              "type": "number"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "active",
                                "canceled",
                                "past_due",
                                "trialing"
                              ]
                            },
                            "stripeCustomerId": {
                              "type": "object"
                            },
                            "stripeSubscriptionId": {
                              "type": "object"
                            },
                            "billingInterval": {
                              "type": "string"
                            },
                            "currentPeriodEnd": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "date-time"
                            },
                            "stripePauseResumesAt": {
                              "type": "object"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "required": [
                            "id",
                            "companyId",
                            "planId",
                            "status",
                            "stripeCustomerId",
                            "stripeSubscriptionId",
                            "billingInterval",
                            "currentPeriodEnd",
                            "stripePauseResumesAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        },
                        "creditCostSetId": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "creditCostSet": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {}
                        }
                      },
                      "required": [
                        "company",
                        "config",
                        "graphConfig",
                        "billingSubscription",
                        "creditCostSetId",
                        "creditCostSet"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-admin-companies-{id}",
        "summary": "PUT handler for updating company details",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "companySlug": {
                          "type": "string"
                        },
                        "companyName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "externalAccountId": {
                          "type": "object"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "archived": {
                          "type": "boolean"
                        },
                        "archivedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "description": {
                          "type": "object"
                        },
                        "stripeCustomerId": {
                          "type": "object"
                        },
                        "linkedInCompanyId": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "creditCostSetId": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "id",
                        "companySlug",
                        "companyName",
                        "externalAccountId",
                        "createdAt",
                        "updatedAt",
                        "archived",
                        "archivedAt",
                        "description",
                        "stripeCustomerId",
                        "linkedInCompanyId",
                        "creditCostSetId"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/organizations/upload-logo": {
      "post": {
        "operationId": "post-admin-organizations-upload-logo",
        "summary": "POST /api/admin/organizations/upload-logo",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "url"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/access-control": {
      "get": {
        "operationId": "get-admin-companies-{id}-access-control",
        "summary": "GET /api/admin/companies/[id]/access-control",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "accessControlConfig": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                true
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "type": "number"
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object",
                                  "properties": {
                                    "length": {
                                      "oneOf": [
                                        {
                                          "type": "object"
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            false
                                          ]
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            true
                                          ]
                                        }
                                      ]
                                    },
                                    "toString": {
                                      "type": "object"
                                    },
                                    "toLocaleString": {
                                      "type": "object"
                                    },
                                    "pop": {
                                      "type": "object"
                                    },
                                    "push": {
                                      "type": "object"
                                    },
                                    "concat": {
                                      "type": "object"
                                    },
                                    "join": {
                                      "type": "object"
                                    },
                                    "reverse": {
                                      "type": "object"
                                    },
                                    "shift": {
                                      "type": "object"
                                    },
                                    "slice": {
                                      "type": "object"
                                    },
                                    "sort": {
                                      "type": "object"
                                    },
                                    "splice": {
                                      "type": "object"
                                    },
                                    "unshift": {
                                      "type": "object"
                                    },
                                    "indexOf": {
                                      "type": "object"
                                    },
                                    "lastIndexOf": {
                                      "type": "object"
                                    },
                                    "every": {
                                      "type": "object"
                                    },
                                    "some": {
                                      "type": "object"
                                    },
                                    "forEach": {
                                      "type": "object"
                                    },
                                    "map": {
                                      "type": "object"
                                    },
                                    "filter": {
                                      "type": "object"
                                    },
                                    "reduce": {
                                      "type": "object"
                                    },
                                    "reduceRight": {
                                      "type": "object"
                                    },
                                    "find": {
                                      "type": "object"
                                    },
                                    "findIndex": {
                                      "type": "object"
                                    },
                                    "fill": {
                                      "type": "object"
                                    },
                                    "copyWithin": {
                                      "type": "object"
                                    },
                                    "__@iterator@209": {
                                      "type": "object"
                                    },
                                    "entries": {
                                      "type": "object"
                                    },
                                    "keys": {
                                      "type": "object"
                                    },
                                    "values": {
                                      "type": "object"
                                    },
                                    "__@unscopables@210": {
                                      "type": "object"
                                    },
                                    "includes": {
                                      "type": "object"
                                    },
                                    "flatMap": {
                                      "type": "object"
                                    },
                                    "flat": {
                                      "type": "object"
                                    },
                                    "at": {
                                      "type": "object"
                                    },
                                    "findLast": {
                                      "type": "object"
                                    },
                                    "findLastIndex": {
                                      "type": "object"
                                    },
                                    "toReversed": {
                                      "type": "object"
                                    },
                                    "toSorted": {
                                      "type": "object"
                                    },
                                    "toSpliced": {
                                      "type": "object"
                                    },
                                    "with": {
                                      "type": "object"
                                    }
                                  }
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              },
                              "required": [
                                "length",
                                "toString",
                                "toLocaleString",
                                "pop",
                                "push",
                                "concat",
                                "join",
                                "reverse",
                                "shift",
                                "slice",
                                "sort",
                                "splice",
                                "unshift",
                                "indexOf",
                                "lastIndexOf",
                                "every",
                                "some",
                                "forEach",
                                "map",
                                "filter",
                                "reduce",
                                "reduceRight",
                                "find",
                                "findIndex",
                                "fill",
                                "copyWithin",
                                "__@iterator@209",
                                "entries",
                                "keys",
                                "values",
                                "__@unscopables@210",
                                "includes",
                                "flatMap",
                                "flat",
                                "at",
                                "findLast",
                                "findLastIndex",
                                "toReversed",
                                "toSorted",
                                "toSpliced",
                                "with"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      false
                                    ]
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      true
                                    ]
                                  },
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "object"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "accessControlConfig"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-admin-companies-{id}-access-control",
        "summary": "PUT /api/admin/companies/[id]/access-control",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "accessControlConfig": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                true
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "type": "number"
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object",
                                  "properties": {
                                    "length": {
                                      "oneOf": [
                                        {
                                          "type": "object"
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            false
                                          ]
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            true
                                          ]
                                        }
                                      ]
                                    },
                                    "toString": {
                                      "type": "object"
                                    },
                                    "toLocaleString": {
                                      "type": "object"
                                    },
                                    "pop": {
                                      "type": "object"
                                    },
                                    "push": {
                                      "type": "object"
                                    },
                                    "concat": {
                                      "type": "object"
                                    },
                                    "join": {
                                      "type": "object"
                                    },
                                    "reverse": {
                                      "type": "object"
                                    },
                                    "shift": {
                                      "type": "object"
                                    },
                                    "slice": {
                                      "type": "object"
                                    },
                                    "sort": {
                                      "type": "object"
                                    },
                                    "splice": {
                                      "type": "object"
                                    },
                                    "unshift": {
                                      "type": "object"
                                    },
                                    "indexOf": {
                                      "type": "object"
                                    },
                                    "lastIndexOf": {
                                      "type": "object"
                                    },
                                    "every": {
                                      "type": "object"
                                    },
                                    "some": {
                                      "type": "object"
                                    },
                                    "forEach": {
                                      "type": "object"
                                    },
                                    "map": {
                                      "type": "object"
                                    },
                                    "filter": {
                                      "type": "object"
                                    },
                                    "reduce": {
                                      "type": "object"
                                    },
                                    "reduceRight": {
                                      "type": "object"
                                    },
                                    "find": {
                                      "type": "object"
                                    },
                                    "findIndex": {
                                      "type": "object"
                                    },
                                    "fill": {
                                      "type": "object"
                                    },
                                    "copyWithin": {
                                      "type": "object"
                                    },
                                    "__@iterator@209": {
                                      "type": "object"
                                    },
                                    "entries": {
                                      "type": "object"
                                    },
                                    "keys": {
                                      "type": "object"
                                    },
                                    "values": {
                                      "type": "object"
                                    },
                                    "__@unscopables@210": {
                                      "type": "object"
                                    },
                                    "includes": {
                                      "type": "object"
                                    },
                                    "flatMap": {
                                      "type": "object"
                                    },
                                    "flat": {
                                      "type": "object"
                                    },
                                    "at": {
                                      "type": "object"
                                    },
                                    "findLast": {
                                      "type": "object"
                                    },
                                    "findLastIndex": {
                                      "type": "object"
                                    },
                                    "toReversed": {
                                      "type": "object"
                                    },
                                    "toSorted": {
                                      "type": "object"
                                    },
                                    "toSpliced": {
                                      "type": "object"
                                    },
                                    "with": {
                                      "type": "object"
                                    }
                                  }
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              },
                              "required": [
                                "length",
                                "toString",
                                "toLocaleString",
                                "pop",
                                "push",
                                "concat",
                                "join",
                                "reverse",
                                "shift",
                                "slice",
                                "sort",
                                "splice",
                                "unshift",
                                "indexOf",
                                "lastIndexOf",
                                "every",
                                "some",
                                "forEach",
                                "map",
                                "filter",
                                "reduce",
                                "reduceRight",
                                "find",
                                "findIndex",
                                "fill",
                                "copyWithin",
                                "__@iterator@209",
                                "entries",
                                "keys",
                                "values",
                                "__@unscopables@210",
                                "includes",
                                "flatMap",
                                "flat",
                                "at",
                                "findLast",
                                "findLastIndex",
                                "toReversed",
                                "toSorted",
                                "toSpliced",
                                "with"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      false
                                    ]
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      true
                                    ]
                                  },
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "object"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "accessControlConfig"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/archive": {
      "patch": {
        "operationId": "patch-admin-companies-{id}-archive",
        "summary": "PATCH /api/admin/companies/[id]/archive",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/archiveCompanyBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "archived": {
                          "type": "boolean"
                        },
                        "archivedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "featureFlags": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {}
                        }
                      },
                      "required": [
                        "id",
                        "archived",
                        "archivedAt",
                        "featureFlags"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/feature-flags": {
      "patch": {
        "operationId": "patch-admin-companies-{id}-feature-flags",
        "summary": "PATCH /api/admin/companies/[id]/feature-flags",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/featureFlagsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "featureFlags": {
                          "type": "object",
                          "properties": {}
                        }
                      },
                      "required": [
                        "featureFlags"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/integrations": {
      "get": {
        "operationId": "get-admin-companies-{id}-integrations",
        "summary": "",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-companies-{id}-integrations",
        "summary": "",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/integrationBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "503": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch-admin-companies-{id}-integrations",
        "summary": "",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/link-intalent-user": {
      "post": {
        "operationId": "post-admin-companies-{id}-link-intalent-user",
        "summary": "SuperAdmin only. Links an existing @intalent.ai user (from directory + Auth0) to a company:",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/linkBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "422": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/org-config": {
      "patch": {
        "operationId": "patch-admin-companies-{id}-org-config",
        "summary": "SuperAdmin only. Updates the company display name and CompanyConfig fields shown on the org Overview \"Configuration\" section. Does not modify Graph credentials.",
        "description": "",
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orgConfigBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "companyName": {
                          "type": "string"
                        },
                        "config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "domain": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "careerPageSettingEnabled": {
                              "type": "boolean"
                            },
                            "enableSendingEmail": {
                              "type": "boolean"
                            },
                            "isReachOutEnabled": {
                              "type": "boolean"
                            },
                            "showCompanyLogo": {
                              "type": "boolean"
                            },
                            "companyLogoUrl": {
                              "type": "object"
                            },
                            "allowJDAgent": {
                              "type": "boolean"
                            },
                            "industryTaxonomy": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "BLS",
                                "LINKEDIN_V2",
                                "NAICS"
                              ]
                            }
                          },
                          "required": [
                            "domain",
                            "careerPageSettingEnabled",
                            "enableSendingEmail",
                            "isReachOutEnabled",
                            "showCompanyLogo",
                            "companyLogoUrl",
                            "allowJDAgent",
                            "industryTaxonomy"
                          ]
                        }
                      },
                      "required": [
                        "companyName",
                        "config"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/automations/catalog": {
      "get": {
        "operationId": "get-admin-automations-catalog",
        "summary": "GET /api/admin/automations/catalog — every automation catalog item with its versions.",
        "description": "SuperAdmin. Triggers, condition fields and actions offered to customers, with availability (status, plans, default-on, kill switch) and every version.",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Catalog items",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCatalogItemsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-automations-catalog",
        "summary": "POST /api/admin/automations/catalog — add a catalog item (draft unless a status is given).",
        "description": "SuperAdmin. The item must be built on a handler shipped in code; it starts at version 1.",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCatalogItemCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created catalog item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCatalogItemApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/automations/templates": {
      "get": {
        "operationId": "get-admin-automations-templates",
        "summary": "GET /api/admin/automations/templates — every system automation template with its versions.",
        "description": "",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "System templates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemTemplatesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-automations-templates",
        "summary": "POST /api/admin/automations/templates — add a draft system template.",
        "description": "SuperAdmin. Drafts may name catalog items that aren't shipped yet; publishing checks them.",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSystemTemplateCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created system template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/automations/catalog/{id}": {
      "get": {
        "operationId": "get-admin-automations-catalog-{id}",
        "summary": "GET /api/admin/automations/catalog/[id] — one catalog item with all its versions.",
        "description": "",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Catalog item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCatalogItemApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-admin-automations-catalog-{id}",
        "summary": "PATCH /api/admin/automations/catalog/[id] — edit, version, plan-gate, publish or disable an item.",
        "description": "SuperAdmin. Changed version fields (label, presets, limits, safety, credit cost) add a version; rules keep the version they were built with. Availability changes in place. Disabling pauses every rule that uses the item and notifies the rule owners.",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCatalogItemUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated catalog item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCatalogItemUpdateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/automations/templates/{id}": {
      "get": {
        "operationId": "get-admin-automations-templates-{id}",
        "summary": "GET /api/admin/automations/templates/[id] — one system template with all its versions.",
        "description": "",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "System template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-admin-automations-templates-{id}",
        "summary": "PATCH /api/admin/automations/templates/[id] — edit, version, plan-gate, publish or disable a template.",
        "description": "SuperAdmin. A changed definition adds a version stamped with the catalog item versions it uses. Publishing (BETA / LIVE) requires a valid rule whose items are all published on the template's plans.",
        "tags": [
          "AdminAutomations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSystemTemplateUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated system template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemTemplateUpdateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/credit-costs": {
      "get": {
        "operationId": "get-admin-billing-credit-costs",
        "summary": "GET /api/admin/billing/credit-costs",
        "description": "List named credit cost catalogs assignable to plans and companies.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Credit cost sets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreditCostSetsListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-billing-credit-costs",
        "summary": "POST /api/admin/billing/credit-costs",
        "description": "Create a named credit cost catalog.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminCreditCostSetCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created credit cost set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreditCostSetApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/plans": {
      "get": {
        "operationId": "get-admin-billing-plans",
        "summary": "GET /api/admin/billing/plans — list all plans (SuperAdmin).",
        "description": "List all billing plans ordered by freemium, price, then name.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Billing plans list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlansListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-billing-plans",
        "summary": "POST /api/admin/billing/plans — create plan; sync non-freemium to Stripe.",
        "description": "Create a billing plan. Paid plans sync Product + Price to Stripe.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingPlanCreateSchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created billing plan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/signup-drafts": {
      "get": {
        "operationId": "get-admin-billing-signup-drafts",
        "summary": "GET /api/admin/billing/signup-drafts — incomplete signup drafts (SuperAdmin).",
        "description": "List incomplete signup drafts for SuperAdmin review.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Signup drafts list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSignupDraftsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/credit-costs/{id}": {
      "get": {
        "operationId": "get-admin-billing-credit-costs-{id}",
        "summary": "GET /api/admin/billing/credit-costs/[id]",
        "description": "Fetch a single credit cost set by id (SuperAdmin).",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Credit cost set ID"
            },
            "description": "Credit cost set ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Credit cost set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreditCostSetApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-admin-billing-credit-costs-{id}",
        "summary": "PUT /api/admin/billing/credit-costs/[id]",
        "description": "Update a credit cost set name/costs/default flag (SuperAdmin).",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Credit cost set ID"
            },
            "description": "Credit cost set ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminCreditCostSetUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated credit cost set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreditCostSetApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-admin-billing-credit-costs-{id}",
        "summary": "DELETE /api/admin/billing/credit-costs/[id]",
        "description": "Delete a credit cost set. Blocked if default or referenced by plans/companies.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Credit cost set ID"
            },
            "description": "Credit cost set ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted credit cost set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreditCostSetApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/credit-costs/export": {
      "get": {
        "operationId": "get-admin-billing-credit-costs-export",
        "summary": "GET /api/admin/billing/credit-costs/export — portable JSON of all credit cost sets.",
        "description": "Export named credit cost catalogs for cross-environment import.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Portable credit costs export",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCreditCostsExportApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/credit-costs/import": {
      "post": {
        "operationId": "post-admin-billing-credit-costs-import",
        "summary": "POST /api/admin/billing/credit-costs/import — upsert credit cost sets from a portable export.",
        "description": "Import named credit cost catalogs (v2) or a single catalog onto the default set (v1).",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingCreditCostsExportSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Import summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCreditCostsImportApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/plans/{id}": {
      "get": {
        "operationId": "get-admin-billing-plans-{id}",
        "summary": "GET /api/admin/billing/plans/[id]",
        "description": "Fetch a single billing plan by id (SuperAdmin).",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Billing plan ID"
            },
            "description": "Billing plan ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Billing plan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-admin-billing-plans-{id}",
        "summary": "PATCH /api/admin/billing/plans/[id]",
        "description": "Update a billing plan; sync non-freemium plans to Stripe.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Billing plan ID"
            },
            "description": "Billing plan ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingPlanUpdateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated billing plan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-admin-billing-plans-{id}",
        "summary": "DELETE /api/admin/billing/plans/[id]",
        "description": "Soft-deactivate a billing plan (isActive=false, isPublic=false).",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Billing plan ID"
            },
            "description": "Billing plan ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Deactivated billing plan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/plans/export": {
      "get": {
        "operationId": "get-admin-billing-plans-export",
        "summary": "GET /api/admin/billing/plans/export — portable JSON of all plans (no Stripe/env ids).",
        "description": "Export all billing plans as a portable JSON payload for cross-environment import.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Portable plans export",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlansExportApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/plans/import": {
      "post": {
        "operationId": "post-admin-billing-plans-import",
        "summary": "POST /api/admin/billing/plans/import — upsert plans by code from a portable export.",
        "description": "Import portable billing plans by code; paid plans sync to this environment's Stripe.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingPlansExportSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Import summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlansImportApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/billing": {
      "patch": {
        "operationId": "patch-admin-companies-{id}-billing",
        "summary": "PATCH /api/admin/companies/[id]/billing — assign/update company billing plan (SuperAdmin).",
        "description": "Assign or update the billing plan for a company. Stripe subscription cancel/price update only when syncStripeSubscription is true; pause_collection only when syncStripePause is true.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminCompanyBillingBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated billing subscription",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCompanyBillingApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/credits": {
      "get": {
        "operationId": "get-admin-companies-{id}-credits",
        "summary": "GET /api/admin/companies/[id]/credits — current credit wallet balance (SuperAdmin).",
        "description": "Fetch included, pack, and available credits for a company.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Credit balance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCompanyCreditsBalanceApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-companies-{id}-credits",
        "summary": "POST /api/admin/companies/[id]/credits — grant credits to a company wallet (SuperAdmin).",
        "description": "Grant included or pack credits to a company. Blocked for expired plans.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminCompanyCreditsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Credit grant result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCompanyCreditsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/billing/plans/{id}/sync": {
      "post": {
        "operationId": "post-admin-billing-plans-{id}-sync",
        "summary": "POST /api/admin/billing/plans/[id]/sync — push plan Product + Price to Stripe.",
        "description": "Sync a paid billing plan's Product and Price to Stripe.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Billing plan ID"
            },
            "description": "Billing plan ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Synced billing plan",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/credits/ledger": {
      "get": {
        "operationId": "get-admin-companies-{id}-credits-ledger",
        "summary": "GET /api/admin/companies/[id]/credits/ledger — credit wallet ledger history (SuperAdmin).",
        "description": "Paginated credit ledger entries (additions and deductions) for a company. Excludes internal hold/hold_release rows.",
        "tags": [
          "AdminBilling"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page index",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page index",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Rows per page (default 25, max 100)",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Rows per page (default 25, max 100)",
            "example": 1
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Credit ledger page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCompanyCreditLedgerApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/industry-taxonomies": {
      "get": {
        "operationId": "get-admin-industry-taxonomies",
        "summary": "GET /api/admin/industry-taxonomies — stored industry taxonomies at a glance (SuperAdmin).",
        "description": "Node counts per taxonomy (LinkedIn V2, NAICS, BLS), mapping counts, the default taxonomy and the latest sync run.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomySummaryApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/industry-taxonomies/mappings": {
      "get": {
        "operationId": "get-admin-industry-taxonomies-mappings",
        "summary": "GET /api/admin/industry-taxonomies/mappings — browse links between taxonomies (SuperAdmin).",
        "description": "Paginated mapping rows, e.g. LinkedIn's published NAICS 2017 → LinkedIn V2 mapping.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "mappingSource",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Default linkedin_naics_2017"
            },
            "description": "Default linkedin_naics_2017",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Code prefix or label text on either side"
            },
            "description": "Code prefix or label text on either side",
            "example": "example"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page index",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page index",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Rows per page (default 50, max 200)",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Rows per page (default 50, max 200)",
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Mappings page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomyMappingsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/industry-taxonomies/nodes": {
      "get": {
        "operationId": "get-admin-industry-taxonomies-nodes",
        "summary": "GET /api/admin/industry-taxonomies/nodes — browse one taxonomy (SuperAdmin).",
        "description": "Paginated nodes of LinkedIn V2, NAICS or BLS, ordered by level then code.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "taxonomy",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/industryTaxonomyEnum"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Code prefix, or text in the label or hierarchy"
            },
            "description": "Code prefix, or text in the label or hierarchy",
            "example": "example"
          },
          {
            "in": "query",
            "name": "level",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            },
            "example": 1
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page index",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page index",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Rows per page (default 50, max 200)",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "description": "Rows per page (default 50, max 200)",
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Nodes page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomyNodesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/industry-taxonomies/schedule": {
      "get": {
        "operationId": "get-admin-industry-taxonomies-schedule",
        "summary": "GET /api/admin/industry-taxonomies/schedule — the sync's Temporal schedule (SuperAdmin).",
        "description": "Read from talent-ai, which owns the schedule. `exists` is false until one is saved.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Schedule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomyScheduleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-admin-industry-taxonomies-schedule",
        "summary": "PUT /api/admin/industry-taxonomies/schedule — create or change the sync schedule (SuperAdmin).",
        "description": "Sets the cron expression and pauses or resumes the Temporal schedule. 400 when talent-ai rejects the cron expression.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminIndustryTaxonomyScheduleBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved schedule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomyScheduleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/industry-taxonomies/sync-runs": {
      "get": {
        "operationId": "get-admin-industry-taxonomies-sync-runs",
        "summary": "GET /api/admin/industry-taxonomies/sync-runs — taxonomy sync history (SuperAdmin).",
        "description": "Newest first, manual and scheduled, with per-taxonomy counts once finished.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page index",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page index",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Rows per page (default 20, max 100)",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Rows per page (default 20, max 100)",
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Runs page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomySyncRunsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-industry-taxonomies-sync-runs",
        "summary": "POST /api/admin/industry-taxonomies/sync-runs — sync the taxonomies now (SuperAdmin).",
        "description": "Creates a PENDING run and asks talent-ai to start IndustryTaxonomySyncWorkflow. If talent-ai can't be reached the run is returned as FAILED with the error.",
        "tags": [
          "AdminIndustryTaxonomy"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Created run",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIndustryTaxonomySyncRunApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/resend-domain": {
      "get": {
        "operationId": "get-admin-companies-{id}-resend-domain",
        "summary": "GET /api/admin/companies/[id]/resend-domain — the company's Resend sending domain (SuperAdmin).",
        "description": "The domain added to Resend for this company, its verification status and the DNS records to add. With refresh=true the status and records are read from Resend first; the first time the domain is verified, a sending key scoped to it is created and the company's email integration switches to it.",
        "tags": [
          "AdminIntegrations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "true reads the latest status and DNS records from Resend"
            },
            "description": "true reads the latest status and DNS records from Resend",
            "example": "true"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "The domain, or null when none is set up",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminResendDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-companies-{id}-resend-domain",
        "summary": "POST /api/admin/companies/[id]/resend-domain — add the company's sending domain to Resend (SuperAdmin).",
        "description": "Creates the domain in our Resend account and returns the DNS records the company must add. The company keeps sending as before until the domain is verified.",
        "tags": [
          "AdminIntegrations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResendDomainCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The domain created in Resend, with its DNS records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminResendDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-admin-companies-{id}-resend-domain",
        "summary": "DELETE /api/admin/companies/[id]/resend-domain — remove the company's sending domain from Resend (SuperAdmin).",
        "description": "Deletes the domain and its sending key from Resend. The company then sends from the system sender again, unless it had its own Resend setup before the domain was added.",
        "tags": [
          "AdminIntegrations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Removed (data is null)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminResendDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/resend-domain/verify": {
      "post": {
        "operationId": "post-admin-companies-{id}-resend-domain-verify",
        "summary": "POST /api/admin/companies/[id]/resend-domain/verify — check the company domain's DNS records (SuperAdmin).",
        "description": "Asks Resend to verify the domain's DNS records now and returns the current status. Verification finishes asynchronously, so refresh the status after a while. Once verified, a sending key scoped to the domain is created and the company's email integration switches to it.",
        "tags": [
          "AdminIntegrations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company ID"
            },
            "description": "Company ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "The domain with its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminResendDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/companies/{id}/integrations/{integrationId}/reencrypt": {
      "post": {
        "operationId": "post-admin-companies-{id}-integrations-{integrationId}-reencrypt",
        "summary": "POST /api/admin/companies/[id]/integrations/[integrationId]/reencrypt — move a legacy-encrypted integration secret to Cloud KMS (SuperAdmin).",
        "description": "Decrypts the secret with the legacy master key, re-encrypts it with Cloud KMS and verifies the round trip before saving. KMS rows are returned unchanged. The secret is never returned.",
        "tags": [
          "AdminIntegrations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "Company ID (0 = global integrations)"
            },
            "description": "Company ID (0 = global integrations)",
            "example": 123
          },
          {
            "in": "path",
            "name": "integrationId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "Integration ID"
            },
            "description": "Integration ID",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "responses": {
          "200": {
            "description": "Integration secret is KMS-encrypted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminIntegrationReencryptApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/interview-quality/reports": {
      "get": {
        "operationId": "get-admin-interview-quality-reports",
        "summary": "GET /api/admin/interview-quality/reports — interview quality reports across all companies (SuperAdmin).",
        "description": "Paginated, newest first. Cross-tenant on purpose: `companyId` is an optional filter. Issue filters (category, severity, source, triageStatus) match reports with at least one such issue.",
        "tags": [
          "AdminInterviewQuality"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Reports created at/after this ISO date or date-time"
            },
            "description": "Reports created at/after this ISO date or date-time",
            "example": "example"
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Reports created at/before this ISO date-time (a bare YYYY-MM-DD includes that whole day, UTC)"
            },
            "description": "Reports created at/before this ISO date-time (a bare YYYY-MM-DD includes that whole day, UTC)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "WEB",
                "PHONE"
              ]
            },
            "example": "WEB"
          },
          {
            "in": "query",
            "name": "trigger",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "AUTO",
                "MANUAL"
              ]
            },
            "example": "AUTO"
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "description": "Reports with at least one issue of this category"
            },
            "description": "Reports with at least one issue of this category",
            "example": "example"
          },
          {
            "in": "query",
            "name": "severity",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/severitySchema"
                }
              ],
              "description": "Reports with at least one issue of this severity"
            },
            "description": "Reports with at least one issue of this severity",
            "example": "example"
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "DETECTOR",
                "JUDGE",
                "BOTH"
              ],
              "description": "Reports with at least one issue from this source"
            },
            "description": "Reports with at least one issue from this source",
            "example": "DETECTOR"
          },
          {
            "in": "query",
            "name": "triageStatus",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "OPEN",
                "CONFIRMED",
                "FALSE_POSITIVE",
                "FIXED"
              ],
              "description": "Reports with at least one issue in this triage status"
            },
            "description": "Reports with at least one issue in this triage status",
            "example": "OPEN"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page index",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page index",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Rows per page (default 25, max 100)",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Rows per page (default 25, max 100)",
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Reports page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInterviewQualityReportsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/interview-quality/resolve": {
      "post": {
        "operationId": "post-admin-interview-quality-resolve",
        "summary": "POST /api/admin/interview-quality/resolve — find the AI interviews an id, link or candidate points to (SuperAdmin).",
        "description": "Cross-tenant. With `jobId` + `candidate`: the AI screenings of the application with that email (case-insensitive) or phone (same digits) in the job — email + job is unique. Otherwise `input`: a bare number is an Interview id; `web:123` / `phone:456` a web / phone screening id; else `interviewId=`, `screeningId=` / `screeningInterviewId=`, `screeningCallId=`, `roomToken=` (candidate link), `applicationId=` (all AI screenings of the application). Empty `matches` when nothing is found.",
        "tags": [
          "AdminInterviewQuality"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminInterviewQualityResolveBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching AI interviews",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInterviewQualityResolveApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/interview-quality/runs": {
      "get": {
        "operationId": "get-admin-interview-quality-runs",
        "summary": "GET /api/admin/interview-quality/runs — recent manual interview quality runs (SuperAdmin).",
        "description": "Newest first, with status, report id and issue count once finished.",
        "tags": [
          "AdminInterviewQuality"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page index",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page index",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Rows per page (default 25, max 100)",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Rows per page (default 25, max 100)",
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Runs page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInterviewQualityRunsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-interview-quality-runs",
        "summary": "POST /api/admin/interview-quality/runs — analyze an interview now (SuperAdmin).",
        "description": "Creates a PENDING run and asks talent-ai to start the analysis (regardless of the company flag). If talent-ai can't be reached the run is returned as FAILED with the error. 404 for an unknown interview, 400 when it has no AI screening.",
        "tags": [
          "AdminInterviewQuality"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminInterviewQualityRunCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created run",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInterviewQualityRunApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/interview-quality/issues/{id}": {
      "patch": {
        "operationId": "patch-admin-interview-quality-issues-{id}",
        "summary": "PATCH /api/admin/interview-quality/issues/[id] — triage one interview quality issue (SuperAdmin).",
        "description": "Sets the triage status (Confirmed / False positive / Fixed / Open) and note; records who triaged it and when.",
        "tags": [
          "AdminInterviewQuality"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "InterviewQualityIssue id"
            },
            "description": "InterviewQualityIssue id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminInterviewQualityIssueTriageBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Triaged issue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInterviewQualityIssueTriageApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/interview-quality/reports/{id}": {
      "get": {
        "operationId": "get-admin-interview-quality-reports-{id}",
        "summary": "GET /api/admin/interview-quality/reports/[id] — one interview quality report with its issues (SuperAdmin).",
        "description": "Report, issues (most severe first) and an interview summary: channel, date, recording URL and the candidate report link.",
        "tags": [
          "AdminInterviewQuality"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "InterviewQualityReport id"
            },
            "description": "InterviewQualityReport id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Report detail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminInterviewQualityReportApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/system-settings": {
      "get": {
        "operationId": "get-admin-system-settings",
        "summary": "GET /api/admin/system-settings — system settings (pipeline configs per language) (SuperAdmin).",
        "description": "Ordered by settingName, language then engine. The config JSON is left out; fetch one setting for it.",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "settingName",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "description": "Only this settingName (e.g. phoneScreeningConfig)"
            },
            "description": "Only this settingName (e.g. phoneScreeningConfig)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 10,
              "description": "Only this language code (e.g. ml-IN)"
            },
            "description": "Only this language code (e.g. ml-IN)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "engine",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "screenai",
                "vapi"
              ],
              "description": "Only rows for this engine"
            },
            "description": "Only rows for this engine",
            "example": "screenai"
          }
        ],
        "responses": {
          "200": {
            "description": "System settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemSettingsListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/system-settings/{id}": {
      "get": {
        "operationId": "get-admin-system-settings-{id}",
        "summary": "GET /api/admin/system-settings/[id]",
        "description": "Fetch one system setting with its config (SuperAdmin).",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "System setting ID"
            },
            "description": "System setting ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "System setting",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemSettingApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-admin-system-settings-{id}",
        "summary": "PUT /api/admin/system-settings/[id]",
        "description": "Replace a system setting's config (SuperAdmin). The config is validated against the setting's template; a 400 lists every issue as `errors: { path, message }[]`. Returns 409 if the setting changed since `expectedUpdatedAt`. Applies to new screenings only: existing ones keep their own copy.",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "System setting ID"
            },
            "description": "System setting ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminSystemSettingUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated system setting",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemSettingApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/system-settings/realtime-preview": {
      "post": {
        "operationId": "post-admin-system-settings-realtime-preview",
        "summary": "POST /api/admin/system-settings/realtime-preview",
        "description": "Hear a draft phone realtime config before saving (SuperAdmin): screenai opens a short Gemini Live session with the draft `realtime.config` and speaks the custom text (`agent_says`) or replies to it as the interviewer (`candidate_says`). A 400 lists config issues as `errors: { path, message }[]`.",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminRealtimePreviewBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Realtime preview",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminRealtimePreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "429": {
            "description": "Too many previews",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminRealtimePreviewApiResponseSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/system-settings/vapi-voices": {
      "get": {
        "operationId": "get-admin-system-settings-vapi-voices",
        "summary": "GET /api/admin/system-settings/vapi-voices",
        "description": "Voices from Vapi's voice library for a tested Vapi voice provider and model, voices that speak the language first, for the phone settings editor's Vapi voices (SuperAdmin). Deepgram voices include Vapi's sample clip.",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "provider",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Vapi voice provider (only tested ones)"
            },
            "description": "Vapi voice provider (only tested ones)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "model",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40,
              "description": "Voice model; Deepgram voices are listed for this model only"
            },
            "description": "Voice model; Deepgram voices are listed for this model only",
            "example": "example"
          },
          {
            "in": "query",
            "name": "language",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 10,
              "description": "Language code the voice should speak (e.g. hi); those voices come first"
            },
            "description": "Language code the voice should speak (e.g. hi); those voices come first",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Vapi voices",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemSettingVapiVoicesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/system-settings/voice-preview": {
      "post": {
        "operationId": "post-admin-system-settings-voice-preview",
        "summary": "POST /api/admin/system-settings/voice-preview",
        "description": "Speak a fixed sample line with a draft TTS or realtime block (SuperAdmin), so a voice can be heard before saving. Samples are cached by screenai per provider/model/voice/language. A 400 lists block issues as `errors: { path, message }[]`.",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminVoicePreviewBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Voice sample",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminVoicePreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "429": {
            "description": "Too many previews",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminVoicePreviewApiResponseSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/system-settings/voices": {
      "get": {
        "operationId": "get-admin-system-settings-voices",
        "summary": "GET /api/admin/system-settings/voices",
        "description": "Every voice a draft TTS or realtime block's provider offers, voices that speak the setting language first, for the settings editor (SuperAdmin). Sarvam and Gemini Live come from the voice catalog; Google and Azure TTS are listed live from the provider. Other providers return an empty list.",
        "tags": [
          "AdminSystemSettings"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "tts",
                "realtime"
              ],
              "description": "Which pipeline block the voices are for"
            },
            "description": "Which pipeline block the voices are for",
            "example": "tts"
          },
          {
            "in": "query",
            "name": "provider",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40,
              "description": "The block provider (sarvam, google, azure, ...)"
            },
            "description": "The block provider (sarvam, google, azure, ...)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "model",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "description": "The block model (Sarvam and Gemini Live voices depend on it)"
            },
            "description": "The block model (Sarvam and Gemini Live voices depend on it)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "language",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 10,
              "description": "The setting language (e.g. hi-IN); voices that speak it are listed first"
            },
            "description": "The setting language (e.g. hi-IN); voices that speak it are listed first",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Voices",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSystemSettingVoicesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/voice-agent-prompts": {
      "get": {
        "operationId": "get-admin-voice-agent-prompts",
        "summary": "GET /api/admin/voice-agent-prompts — voice agent prompts, every version (SuperAdmin).",
        "description": "The system prompts for Vapi interviews: one base prompt per channel and optional per-language addenda. Newest version first within each channel, kind and language; isActive marks the live one.",
        "tags": [
          "AdminVoiceAgentPrompts"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/channelSchema"
                }
              ]
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/kindSchema"
                }
              ]
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/languageSchema"
                }
              ],
              "description": "Only addenda for this language code"
            },
            "description": "Only addenda for this language code",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Voice agent prompts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminVoiceAgentPromptsListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-admin-voice-agent-prompts",
        "summary": "POST /api/admin/voice-agent-prompts — save a new prompt version (SuperAdmin).",
        "description": "Saves the content as the next version of its channel, kind and language; existing versions never change, so any can be activated again. A base prompt has no language; a language_addendum needs one. activate makes it live at once (the previous live version is switched off). Returns 409 if another version was saved at the same time.",
        "tags": [
          "AdminVoiceAgentPrompts"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/adminVoiceAgentPromptCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Saved prompt version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminVoiceAgentPromptApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/voice-agent-prompts/{id}": {
      "get": {
        "operationId": "get-admin-voice-agent-prompts-{id}",
        "summary": "GET /api/admin/voice-agent-prompts/[id]",
        "description": "Fetch one voice agent prompt version (SuperAdmin).",
        "tags": [
          "AdminVoiceAgentPrompts"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Voice agent prompt ID"
            },
            "description": "Voice agent prompt ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Voice agent prompt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminVoiceAgentPromptApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/admin/voice-agent-prompts/{id}/activate": {
      "post": {
        "operationId": "post-admin-voice-agent-prompts-{id}-activate",
        "summary": "POST /api/admin/voice-agent-prompts/[id]/activate",
        "description": "Make this version the live prompt for its channel, kind and language (SuperAdmin); the previous live version is switched off. Activating an older version rolls back. Calls dialled after this use it.",
        "tags": [
          "AdminVoiceAgentPrompts"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Voice agent prompt ID"
            },
            "description": "Voice agent prompt ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Activated prompt version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminVoiceAgentPromptApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/analytics-agent": {
      "post": {
        "operationId": "post-analytics-agent",
        "summary": "",
        "description": "",
        "tags": [
          "Analytics-agent"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "504": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/analytics-agent/stream": {
      "post": {
        "operationId": "post-analytics-agent-stream",
        "summary": "",
        "description": "",
        "tags": [
          "Analytics-agent"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "detail"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/applications/search": {
      "get": {
        "operationId": "get-applications-search",
        "summary": "",
        "description": "",
        "tags": [
          "Applications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "candidate_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "company_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "job_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "results"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/params": {
      "get": {
        "operationId": "get-assessment-params",
        "summary": "GET /api/assessment/params",
        "description": "List assessment parameters (competencies) for a company",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Zero-based page index (default 0)"
            },
            "description": "Zero-based page index (default 0)",
            "example": 1
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Page size (default 10)"
            },
            "description": "Page size (default 10)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter by competency name"
            },
            "description": "Filter by competency name",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"parameter\",\"sort\":\"asc\"}]; sortable fields: parameter, definition"
            },
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"parameter\",\"sort\":\"asc\"}]; sortable fields: parameter, definition",
            "example": "example"
          },
          {
            "in": "query",
            "name": "skipPagination",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", returns all parameters without pagination"
            },
            "description": "When \"true\", returns all parameters without pagination",
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated assessment parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentParamsListResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-assessment-params",
        "summary": "POST /api/assessment/params",
        "description": "Create an assessment parameter (competency) with optional per-channel questions (template-save rules apply)",
        "tags": [
          "Assessment"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAssessmentParamBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created assessment parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentParamResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/templates": {
      "get": {
        "operationId": "get-assessment-templates",
        "summary": "GET /api/assessment/templates",
        "description": "List assessment templates for a company",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Zero-based page index (default 0)"
            },
            "description": "Zero-based page index (default 0)",
            "example": 1
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Page size (default 10)"
            },
            "description": "Page size (default 10)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter by template name"
            },
            "description": "Filter by template name",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]; sortable fields: name, createdAt, updatedAt"
            },
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]; sortable fields: name, createdAt, updatedAt",
            "example": "example"
          },
          {
            "in": "query",
            "name": "skipPagination",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", returns all templates without pagination"
            },
            "description": "When \"true\", returns all templates without pagination",
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated assessment templates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentTemplatesListResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-assessment-templates",
        "summary": "POST /api/assessment/templates",
        "description": "Create a new assessment template for a company",
        "tags": [
          "Assessment"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAssessmentTemplateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created assessment template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentTemplateResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/params/{id}": {
      "get": {
        "operationId": "get-assessment-params-{id}",
        "summary": "GET /api/assessment/params/{id}",
        "description": "Fetch a single assessment parameter (competency) with its linked template/job usage",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment parameter id"
            },
            "description": "Assessment parameter id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Assessment parameter detail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentParamDetailResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-assessment-params-{id}",
        "summary": "PUT /api/assessment/params/{id}",
        "description": "Update an assessment parameter (competency). Scoped to the company in the body — cross-company ids return 404. Per-channel Q&A follows the template-save rules (400 on a missing or too-short question).",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment parameter id"
            },
            "description": "Assessment parameter id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAssessmentParamBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated assessment parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentParamResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-assessment-params-{id}",
        "summary": "DELETE /api/assessment/params/{id}",
        "description": "Delete an assessment parameter (409 when linked to an assessment template)",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment parameter id"
            },
            "description": "Assessment parameter id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted assessment parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentParamDeleteResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/templates/{id}": {
      "get": {
        "operationId": "get-assessment-templates-{id}",
        "summary": "GET /api/assessment/templates/{id}",
        "description": "Fetch a single assessment template including linked job count",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment template id"
            },
            "description": "Assessment template id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Assessment template detail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentTemplateResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-assessment-templates-{id}",
        "summary": "PUT /api/assessment/templates/{id}",
        "description": "Update an assessment template. When `AssessmentParameters` is omitted, every existing link is removed — the frontend always sends the full list.",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment template id"
            },
            "description": "Assessment template id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAssessmentTemplateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated assessment template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentTemplateResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-assessment-templates-{id}",
        "summary": "DELETE /api/assessment/templates/{id}",
        "description": "Delete an assessment template (409 when linked to job postings)",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment template id"
            },
            "description": "Assessment template id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted assessment template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentTemplateDeleteResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/templates/generate": {
      "post": {
        "operationId": "post-assessment-templates-generate",
        "summary": "POST /api/assessment/templates/generate",
        "description": "Start suggesting new competencies (none the company already has), each with an AI interview and a phone screening question, from one of the company's job descriptions (INT-1153). It runs in the background: poll GET /api/assessment/templates/generate/{workflowId}. Nothing is saved; the editor fills its rows and the template is saved as usual.",
        "tags": [
          "Assessment"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAssessmentTemplateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Generation started",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateAssessmentTemplateResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/templates/generate-question": {
      "post": {
        "operationId": "post-assessment-templates-generate-question",
        "summary": "POST /api/assessment/templates/generate-question",
        "description": "Write one AI interview or phone screening question for a competency from one of the company's job descriptions (INT-1153), different from the template's other questions for it. Nothing is saved.",
        "tags": [
          "Assessment"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAssessmentQuestionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Generated question",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateAssessmentQuestionResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/params/{id}/copy": {
      "post": {
        "operationId": "post-assessment-params-{id}-copy",
        "summary": "POST /api/assessment/params/{id}/copy",
        "description": "Copy a competency under a new name — its definition, every channel's Q&A and question sources (template links are not copied). 409 when the name is taken.",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Assessment parameter id"
            },
            "description": "Assessment parameter id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyAssessmentParamBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created copy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssessmentParamResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/assessment/templates/generate/{workflowId}": {
      "get": {
        "operationId": "get-assessment-templates-generate-{workflowId}",
        "summary": "GET /api/assessment/templates/generate/{workflowId}",
        "description": "Status of a template generation started with POST /api/assessment/templates/generate (INT-1153): `processing`, `ready` with the suggested template name and competencies, or `failed` with the message to show. Only the company that started it can read it.",
        "tags": [
          "Assessment"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workflowId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Generation status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateAssessmentTemplateStatusResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/auth/logout-callback": {
      "get": {
        "operationId": "get-auth-logout-callback",
        "summary": "Public logout callback endpoint.",
        "description": "",
        "tags": [
          "Auth"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/auth/my-companies": {
      "get": {
        "operationId": "get-auth-my-companies",
        "summary": "GET /api/auth/my-companies — organizations the signed-in user belongs to.",
        "description": "Lists the user's active memberships on non-archived companies, for the company picker.",
        "tags": [
          "Auth"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "User's companies",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyCompaniesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/auth/profile": {
      "get": {
        "operationId": "get-auth-profile",
        "summary": "GET /api/auth/profile?companySlug=… — current user name, email, picture (session + Auth0).",
        "description": "",
        "tags": [
          "Auth"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthProfileApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-auth-profile",
        "summary": "PUT /api/auth/profile?companySlug=… — multipart: optional `name`, optional `avatar` file.",
        "description": "",
        "tags": [
          "Auth"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/PutAuthProfileMultipartSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthProfileApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/auth/set-company": {
      "post": {
        "operationId": "post-auth-set-company",
        "summary": "POST /api/auth/set-company — set the active company on the user's session.",
        "description": "Verifies the user belongs to the company, then injects companyId and roles into the Auth0 session cookie.",
        "tags": [
          "Auth"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCompanyBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Company context set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetCompanyApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/auth/switch-company": {
      "get": {
        "operationId": "get-auth-switch-company",
        "summary": "",
        "description": "",
        "tags": [
          "Auth"
        ],
        "parameters": [],
        "responses": {
          "307": {
            "description": "Redirect response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/activity": {
      "get": {
        "operationId": "get-automations-activity",
        "summary": "GET /api/automations/activity — what the company's automations did in a period.",
        "description": "Counts per rule and per stage, the approval queue size, and each applicant an automation moved (with whether the move can be undone). The period is at most 31 days.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "since",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "Start of the period (ISO 8601), e.g. the viewer’s local midnight"
            },
            "description": "Start of the period (ISO 8601), e.g. the viewer’s local midnight",
            "example": "example"
          },
          {
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "End of the period (ISO 8601); defaults to now"
            },
            "description": "End of the period (ISO 8601); defaults to now",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationActivityApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/approvals": {
      "get": {
        "operationId": "get-automations-approvals",
        "summary": "GET /api/automations/approvals — the \"Needs your approval\" queue.",
        "description": "Automation actions waiting for a recruiter, oldest first: soft rejects (\"Suggested reject\") and actions whose rule asks for approval.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationApprovalsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/options": {
      "get": {
        "operationId": "get-automations-options",
        "summary": "GET /api/automations/options — what you can build automation rules from.",
        "description": "Your effective set as rule vocabulary: triggers with their condition fields, condition operators, and actions with their parameter JSON Schemas and presets. Marlee drafts rules from this.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRuleOptionsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/personal-rules": {
      "get": {
        "operationId": "get-automations-personal-rules",
        "summary": "GET /api/automations/personal-rules — the signed-in user's personal automation rules.",
        "description": "Personal rules are visible only to their owner.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalAutomationRuleListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-automations-personal-rules",
        "summary": "POST /api/automations/personal-rules — create a personal automation rule.",
        "description": "Creates a rule owned by the signed-in user, from a full rule or from a system template (`templateKey`, e.g. the \"Daily recruiter summary\": weekdays at 9am in `timeZone`). Scheduled rules get a Temporal Schedule; jobs must be ones the user works on.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PersonalAutomationRuleCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/preview-facts": {
      "post": {
        "operationId": "post-automations-preview-facts",
        "summary": "POST /api/automations/preview-facts — rule facts for a job's newest applications.",
        "description": "For rule previews (\"who would this match right now?\"): talent-ai evaluates conditions against these facts exactly as the engine does. Needs read access to the job.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationPreviewFactsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationPreviewFactsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/rule-checks": {
      "post": {
        "operationId": "post-automations-rule-checks",
        "summary": "POST /api/automations/rule-checks — would this rule save? (dry run)",
        "description": "Runs every check POST /api/automations/rules runs and returns the problems instead of failing, plus whether the rule needs approval or costs credits. Nothing is saved.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationRuleDraftBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRuleCheckApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/rules": {
      "get": {
        "operationId": "get-automations-rules",
        "summary": "GET /api/automations/rules — your personal rules and the job rules you can see.",
        "description": "Session users, or Marlee acting for one (verified M2M token + actor headers). Job rules are listed only for jobs you can read; `jobPostingId` narrows them to one job.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobPostingId",
            "required": false,
            "schema": {
              "description": "Only this job's rules (plus your personal rules)",
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Only this job's rules (plus your personal rules)",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthoredAutomationRuleListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-automations-rules",
        "summary": "POST /api/automations/rules — create a job or personal rule.",
        "description": "Same save path for the rule builder and Marlee. The rule must use only your effective set (catalog ∧ plan ∧ company ∧ role); job rules need edit access to the job. The rule is stamped with current catalog versions and starts off unless `enabled: true`.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationRuleDraftBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthoredAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/runs": {
      "get": {
        "operationId": "get-automations-runs",
        "summary": "GET /api/automations/runs — why automations did (or didn't) act, newest first.",
        "description": "Runs for an application, a rule or one run, each with a plain-language summary, the condition trace and action results. Only runs of rules you can see (your personal rules, job rules on jobs you can read).",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "applicationId",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "query",
            "name": "ruleId",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "query",
            "name": "runId",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRunExplanationListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/summaries": {
      "get": {
        "operationId": "get-automations-summaries",
        "summary": "GET /api/automations/summaries — the signed-in user's recruiter summaries, newest first.",
        "description": "What the dashboard card shows; automations write them (e.g. the \"Daily recruiter summary\").",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": true,
            "schema": {
              "default": 5,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "example": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationSummariesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/templates": {
      "get": {
        "operationId": "get-automations-templates",
        "summary": "GET /api/automations/templates — ready-made personal rules (the daily and weekly recruiter summaries).",
        "description": "",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationTemplatesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/approvals/decisions": {
      "post": {
        "operationId": "post-automations-approvals-decisions",
        "summary": "POST /api/automations/approvals/decisions — approve or reject queued automation actions in bulk.",
        "description": "Each pending approval is sent to the automation run waiting on it, which applies the decision within seconds. Approving a suggested reject rejects the applicant and sends the rejection email; rejecting it puts the applicant back.",
        "tags": [
          "Automations"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationApprovalDecisionsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationApprovalDecisionsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/personal-rules/{id}": {
      "patch": {
        "operationId": "patch-automations-personal-rules-{id}",
        "summary": "PATCH /api/automations/personal-rules/[id] — edit one of your personal rules.",
        "description": "Owner only (others get 404). Turning a scheduled rule off pauses its Temporal Schedule; a new cron or time zone moves it; leaving the schedule trigger deletes it. A changed threshold restarts its count.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PersonalAutomationRulePatchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-automations-personal-rules-{id}",
        "summary": "DELETE /api/automations/personal-rules/[id] — delete one of your personal rules and its schedule.",
        "description": "",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalAutomationRuleDeleteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/rules/{id}": {
      "get": {
        "operationId": "get-automations-rules-{id}",
        "summary": "GET /api/automations/rules/[id] — one of your personal rules or a job rule you can see.",
        "description": "",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthoredAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-automations-rules-{id}",
        "summary": "PATCH /api/automations/rules/[id] — turn a rule on or off.",
        "description": "Same rules as the job builder: your role must be allowed that kind of rule, and rules managed by the job settings (409) are changed there. Turning a rule on re-checks it against today's catalog for your roles (403/400 with the reasons), re-stamps its catalog versions and resumes it if the system had paused it. Job rules need edit access to the job; personal rules must be yours.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationRulePatchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthoredAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/summaries/{id}": {
      "patch": {
        "operationId": "patch-automations-summaries-{id}",
        "summary": "PATCH /api/automations/summaries/[id] — mark one of your summaries read.",
        "description": "",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationSummaryReadApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/automations/runs/{id}/undo": {
      "post": {
        "operationId": "post-automations-runs-{id}-undo",
        "summary": "POST /api/automations/runs/[id]/undo — put an automatically moved applicant back.",
        "description": "Restores the stage the run found the application in and records the undo on the run and in the application's activity history. 409 when the application has moved since, the run was already undone, or an action of the run still waits for approval.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRunUndoApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/effective": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-effective",
        "summary": "GET /api/company/[companySlug]/automations/effective — what the signed-in user can automate.",
        "description": "Any member. The automation catalog items the user may use: published ∧ on the company's plan ∧ switched on for the company ∧ allowed for the user's roles, with limits already narrowed, plus whether they may create job or personal rules. The rule builder and Marlee read this; the engine applies the same check at run time. Admins may pass `role` to preview another role's set.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "role",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Admins only: preview the set for this role instead of their own"
            },
            "description": "Admins only: preview the set for this role instead of their own",
            "example": "admin"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Effective automation set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EffectiveAutomationSetApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/settings": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-settings",
        "summary": "GET /api/company/[companySlug]/automations/settings — Company settings → Automations.",
        "description": "Company admin. Every catalog item Intalent publishes on the company's plan with the company's state (on/off, tightened limits, forced approval), auto-reject, calling hours and each role's automation permissions.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Automation settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAutomationSettingsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-automations-settings",
        "summary": "PATCH /api/company/[companySlug]/automations/settings — change automation settings.",
        "description": "Company admin. Only the keys sent change; `null` removes an override so the default applies again. Settings can only tighten what Intalent allows (narrower limits, forced approval, shorter calling hours). Role permissions are stored in accessControlConfig.automations.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAutomationSettingsPatchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated automation settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAutomationSettingsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/starter-templates": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-starter-templates",
        "summary": "GET /api/company/[companySlug]/automations/starter-templates — templates to start a job rule from.",
        "description": "The company's templates and Intalent's system templates that your role could use right now. Empty when your role can't create job rules.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationStarterTemplatesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/system-templates": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-system-templates",
        "summary": "GET /api/company/[companySlug]/automations/system-templates — Intalent templates the company can start from.",
        "description": "Company admin. Published (beta or live) system templates on the company's plan, at their current version, to add to the company template library.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "System templates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferedSystemTemplateListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/templates": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-templates",
        "summary": "GET /api/company/[companySlug]/automations/templates — the company template library.",
        "description": "Any member. Admins see every template with whether it can be used now (`usable`, `problems`); everyone else sees only the templates their roles can use, and nothing when they may not create rules.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Company templates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyTemplateListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-automations-templates",
        "summary": "POST /api/company/[companySlug]/automations/templates — add a company template.",
        "description": "Company admin. From a system template (`source: system`), one of the company's job rules or the admin's own personal rule (`source: rule`), or a full definition. It must be usable by the company now; it is stamped with current catalog versions.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyTemplateCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/templates/{id}": {
      "patch": {
        "operationId": "patch-company-{companySlug}-automations-templates-{id}",
        "summary": "PATCH /api/company/[companySlug]/automations/templates/[id] — edit a company template.",
        "description": "Company admin. Rules already copied from it are not changed. Send the `expectedVersion` you loaded; 409 when someone else saved first.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyTemplateUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-company-{companySlug}-automations-templates-{id}",
        "summary": "DELETE /api/company/[companySlug]/automations/templates/[id] — remove a company template.",
        "description": "Company admin. Rules copied from it keep working.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/applications/{applicationId}/runs": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-applications-{applicationId}-runs",
        "summary": "GET /api/company/[companySlug]/automations/applications/[applicationId]/runs — an application's automation history.",
        "description": "The latest 50 rule runs for the application, newest first: which rule, whether its conditions matched (with the evaluator trace), why it was skipped and what each action did. Needs read access to the application's job.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "applicationId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRunHistoryApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/preview": {
      "post": {
        "operationId": "post-company-{companySlug}-automations-jobs-{jobId}-preview",
        "summary": "POST /api/company/[companySlug]/automations/jobs/[jobId]/preview — which current applicants a rule would match.",
        "description": "Evaluates the conditions against the job's newest 200 applicants exactly as the engine would (talent-ai) and returns the count and the matches. Nothing is changed.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationRulePreviewBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRulePreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/rules": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-jobs-{jobId}-rules",
        "summary": "GET /api/company/[companySlug]/automations/jobs/[jobId]/rules — the job's automation rules.",
        "description": "Every rule on the job (yours and the platform's), each with `problems`: why it would not run right now. Needs read access to the job.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRuleListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-automations-jobs-{jobId}-rules",
        "summary": "POST /api/company/[companySlug]/automations/jobs/[jobId]/rules — add an automation rule to the job.",
        "description": "Your role must be allowed to create job rules and use every trigger, field and action in it; the job must be one you can edit. Starts off unless `enabled: true`.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobAutomationRuleCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/runs": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-jobs-{jobId}-runs",
        "summary": "GET /api/company/[companySlug]/automations/jobs/[jobId]/runs — what the job's automations did.",
        "description": "A page of the runs of the job's own rules (or one rule with `ruleId`), newest first, with the total: which rule, which applicant, whether its conditions matched (with the evaluator trace) and what each action did. Only runs that acted unless `includeSkipped=true`. Needs read access to the job.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "ruleId",
            "required": false,
            "schema": {
              "description": "Only this rule's runs (default: all the job's rules)",
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Only this rule's runs (default: all the job's rules)",
            "example": 123
          },
          {
            "in": "query",
            "name": "includeSkipped",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Also list runs whose conditions didn't match (default: only runs that acted)"
            },
            "description": "Also list runs whose conditions didn't match (default: only runs that acted)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "page",
            "required": true,
            "schema": {
              "default": 0,
              "description": "0-based page",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "0-based page",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": true,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 1
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRunsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/templates/{id}/copies": {
      "post": {
        "operationId": "post-company-{companySlug}-automations-templates-{id}-copies",
        "summary": "POST /api/company/[companySlug]/automations/templates/[id]/copies — \"Use template\".",
        "description": "Copies the template into a new job rule (`target: job`, a job you can edit) or a personal rule you own (`target: personal`). The copy is not linked to the template. Your role must be allowed to create that kind of rule and use every action in it. The rule starts off unless `enabled: true`.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyTemplateCopyBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopiedAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/rules/{ruleId}": {
      "patch": {
        "operationId": "patch-company-{companySlug}-automations-jobs-{jobId}-rules-{ruleId}",
        "summary": "PATCH /api/company/[companySlug]/automations/jobs/[jobId]/rules/[ruleId] — edit, turn on or turn off a job rule.",
        "description": "Send the version you loaded as `expectedVersion` (409 if someone saved since). A new definition, or turning a rule on, is checked against your role and the company settings; turning it off is not. Platform rules (`systemManaged`) are edited in the job settings instead.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "path",
            "name": "ruleId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobAutomationRuleUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-company-{companySlug}-automations-jobs-{jobId}-rules-{ruleId}",
        "summary": "DELETE /api/company/[companySlug]/automations/jobs/[jobId]/rules/[ruleId] — delete a job rule.",
        "description": "Its run history goes with it. Platform rules (`systemManaged`) can't be deleted here.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "path",
            "name": "ruleId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRuleDeletedApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/rules/order": {
      "put": {
        "operationId": "put-company-{companySlug}-automations-jobs-{jobId}-rules-order",
        "summary": "PUT /api/company/[companySlug]/automations/jobs/[jobId]/rules/order — reorder the job's automation cards.",
        "description": "Send every rule of the job once, first card first. The order of the interview cards (rules that schedule an AI phone screen, AI interview or human interview) is the job's interview round order for every candidate. 409 when the list is stale.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobAutomationRuleOrderBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRuleOrderApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/runs/summary": {
      "get": {
        "operationId": "get-company-{companySlug}-automations-jobs-{jobId}-runs-summary",
        "summary": "GET /api/company/[companySlug]/automations/jobs/[jobId]/runs/summary — how often each of the job's automations ran.",
        "description": "The job's enabled rules in card order, each with its run counts (ran, acted, skipped, failed, in progress) and when it last ran. Needs read access to the job.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRunSummaryApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/automations/jobs/{jobId}/rules/{ruleId}/duplicates": {
      "post": {
        "operationId": "post-company-{companySlug}-automations-jobs-{jobId}-rules-{ruleId}-duplicates",
        "summary": "POST /api/company/[companySlug]/automations/jobs/[jobId]/rules/[ruleId]/duplicates — duplicate a job rule.",
        "description": "Creates \"Copy of …\" on the same job, turned off, checked against your role like a new rule.",
        "tags": [
          "Automations"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "path",
            "name": "ruleId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "201": {
            "description": "Created copy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobAutomationRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/change-plan": {
      "post": {
        "operationId": "post-billing-change-plan",
        "summary": "POST /api/billing/change-plan",
        "description": "Upgrade the company plan via Checkout (freemium) or subscription update (paid).",
        "tags": [
          "Billing"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingChangePlanBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout URL or updated subscription",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingChangePlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/complete-checkout": {
      "post": {
        "operationId": "post-billing-complete-checkout",
        "summary": "POST /api/billing/complete-checkout",
        "description": "Apply upgrade or credit-pack Checkout session to the company billing state.",
        "tags": [
          "Billing"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingCompleteCheckoutBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Checkout applied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCompleteCheckoutApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/credit-packs": {
      "post": {
        "operationId": "post-billing-credit-packs",
        "summary": "POST /api/billing/credit-packs",
        "description": "",
        "tags": [
          "Billing"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/plans": {
      "get": {
        "operationId": "get-billing-plans",
        "summary": "GET /api/billing/plans?companySlug=…",
        "description": "List public billing plans relative to the company's current plan.",
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Company slug; falls back to session company when omitted"
            },
            "description": "Company slug; falls back to session company when omitted",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Public plans with change flags",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPublicPlansApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/portal": {
      "post": {
        "operationId": "post-billing-portal",
        "summary": "POST /api/billing/portal",
        "description": "Create a Stripe Billing Portal session for the company.",
        "tags": [
          "Billing"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billingPortalBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Portal session URL",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/subscription": {
      "get": {
        "operationId": "get-billing-subscription",
        "summary": "GET /api/billing/subscription?companySlug=…",
        "description": "Fetch the current company's billing subscription and plan summary.",
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Company slug; falls back to session company when omitted"
            },
            "description": "Company slug; falls back to session company when omitted",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Subscription summary or null",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSubscriptionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/billing/usage": {
      "get": {
        "operationId": "get-billing-usage",
        "summary": "GET /api/billing/usage?companySlug=…",
        "description": "Fetch current plan limits and usage counters for the company.",
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Company slug; falls back to session company when omitted"
            },
            "description": "Company slug; falls back to session company when omitted",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Usage summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingUsageApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar": {
      "post": {
        "operationId": "post-calendar",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-calendar",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar/availability": {
      "post": {
        "operationId": "post-calendar-availability",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar/generate-transcript": {
      "post": {
        "operationId": "post-calendar-generate-transcript",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-calendar-generate-transcript",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar/panelist-slots": {
      "post": {
        "operationId": "post-calendar-panelist-slots",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar/scheduling-slots": {
      "post": {
        "operationId": "post-calendar-scheduling-slots",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar/panelist-slots/comments": {
      "post": {
        "operationId": "post-calendar-panelist-slots-comments",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/calendar/panelist-slots/generate": {
      "post": {
        "operationId": "post-calendar-panelist-slots-generate",
        "summary": "",
        "description": "",
        "tags": [
          "Calendar"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates": {
      "get": {
        "operationId": "get-candidates",
        "summary": "GET /api/candidates",
        "description": "List candidates for the session company (talent pool). Free text goes in `filterModel.quickFilterValues`; the legacy vector search is the default unless `useLegacySearch=false` selects the new search.",
        "tags": [
          "Candidates"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "1-based page index (default 1) — unlike the grid endpoints, this one is 1-based"
            },
            "description": "1-based page index (default 1) — unlike the grid endpoints, this one is 1-based",
            "example": 1
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Page size (default 10)"
            },
            "description": "Page size (default 10)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "includeTotal",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Defaults to true when omitted; \"false\" skips the count and returns total: null"
            },
            "description": "Defaults to true when omitted; \"false\" skips the count and returns total: null",
            "example": "true"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]"
            },
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]",
            "example": "example"
          },
          {
            "in": "query",
            "name": "filterModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]). logicOperator is normalized to and/or"
            },
            "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]). logicOperator is normalized to and/or",
            "example": "example"
          },
          {
            "in": "query",
            "name": "externalCandidateId",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter to a single external candidate id"
            },
            "description": "Filter to a single external candidate id",
            "example": "123"
          },
          {
            "in": "query",
            "name": "useLegacySearch",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "The legacy (vector) search path is ON unless explicitly \"false\" — only relevant when quickFilterValues are present"
            },
            "description": "The legacy (vector) search path is ON unless explicitly \"false\" — only relevant when quickFilterValues are present",
            "example": "true"
          },
          {
            "in": "query",
            "name": "useReranker",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", re-ranks the top new-search results through the reranker service"
            },
            "description": "When \"true\", re-ranks the top new-search results through the reranker service",
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated candidates (ApiResponse envelope)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidatesListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-candidates",
        "summary": "TODO: Make it generic so other integrations can also use it.",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/{id}": {
      "get": {
        "operationId": "get-candidates-{id}",
        "summary": "GET API for fetching Candidates by id",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-candidates-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-candidates-{id}",
        "summary": "Deletes a candidate and their associated job application candidate details.",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/bulk-delete": {
      "post": {
        "operationId": "post-candidates-bulk-delete",
        "summary": "",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/bulkDeleteCandidatesSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "message",
                    "count"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/parse-query": {
      "post": {
        "operationId": "post-candidates-parse-query",
        "summary": "",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/uploads": {
      "get": {
        "operationId": "get-candidates-uploads",
        "summary": "GET /api/candidates/uploads — the session company's talent pool resume uploads (\"Add Candidates\" tab).",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "description": "1-based page (default 1)"
            },
            "description": "1-based page (default 1)",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Rows per page, 1-100 (default 25)"
            },
            "description": "Rows per page, 1-100 (default 25)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Matches file name, candidate name or email"
            },
            "description": "Matches file name, candidate name or email",
            "example": "example"
          },
          {
            "in": "query",
            "name": "statuses",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma-separated processing statuses to filter by"
            },
            "description": "Comma-separated processing statuses to filter by",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateUploadsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-candidates-uploads",
        "summary": "POST /api/candidates/uploads — add stored resumes to the talent pool and start processing them.",
        "description": "A resume that matches an existing profile (or another upload) stops as DUPLICATE until the uploader updates or skips it.",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateUploadsCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateUploadsCreateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/uploads/bulk-delete": {
      "post": {
        "operationId": "post-candidates-uploads-bulk-delete",
        "summary": "POST /api/candidates/uploads/bulk-delete — remove finished rows from the talent pool \"Add Candidates\" tab.",
        "description": "Profiles already added to the talent pool are not touched; rows still processing are kept.",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateUploadBulkDeleteBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateUploadBulkDeleteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/uploads/decision": {
      "post": {
        "operationId": "post-candidates-uploads-decision",
        "summary": "POST /api/candidates/uploads/decision — update the matched profiles from, or skip, duplicate talent pool uploads.",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateUploadDecisionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateUploadDecisionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidates/uploads/reprocess": {
      "post": {
        "operationId": "post-candidates-uploads-reprocess",
        "summary": "POST /api/candidates/uploads/reprocess — run failed talent pool uploads through processing again.",
        "description": "",
        "tags": [
          "Candidates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateUploadReprocessBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateUploadReprocessApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidate-sharing/{sharingSlug}": {
      "get": {
        "operationId": "get-candidate-sharing-{sharingSlug}",
        "summary": "GET /api/candidate-sharing/[sharingSlug] — public review page data for a shared link (no sign-in).",
        "description": "Job-application links return the job and its applications; talent pool links return live candidate profiles, their notes, the jobs this link already added them to, and whether they already had an application in the link's job (`job` is null when shared from the Talent Pool page). Expired links answer 410 with the sharing and job only.",
        "tags": [
          "CandidateSharing"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "sharingSlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Public sharing slug"
            },
            "description": "Public sharing slug",
            "example": "example"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/candidate-sharing/talent-pool": {
      "post": {
        "operationId": "post-{companySlug}-candidate-sharing-talent-pool",
        "summary": "POST /api/[companySlug]/candidate-sharing/talent-pool — share talent pool candidates by a public, 30-day review link.",
        "description": "Creates the link for the Talent Pool page or a job's Talent Pool tab; in email mode also mails it. Reviewers can comment and add the candidates to jobs.",
        "tags": [
          "CandidateSharing"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTalentPoolSharingBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Link created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TalentPoolSharingApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidate-sharing/{sharingSlug}/applications": {
      "post": {
        "operationId": "post-candidate-sharing-{sharingSlug}-applications",
        "summary": "POST /api/candidate-sharing/[sharingSlug]/applications — a talent pool link's reviewer adds shared candidates to a job (no sign-in).",
        "description": "Creates applications like a recruiter's add-to-job, credited to the link's reviewer. Only candidates in the link; a link shared from a job adds to that job only, a link from the Talent Pool page to the company's externally posted open jobs; candidates already in the job or without a resume are skipped and reported.",
        "tags": [
          "CandidateSharing"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "sharingSlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Public sharing slug"
            },
            "description": "Public sharing slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SharedLinkAddToJobBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Add-to-job result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedLinkAddToJobApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidate-sharing/{sharingSlug}/feedback": {
      "put": {
        "operationId": "put-candidate-sharing-{sharingSlug}-feedback",
        "summary": "PUT /api/candidate-sharing/[sharingSlug]/feedback — a shared link's reviewer saves status changes and remarks (no sign-in).",
        "description": "Talent pool links take remarks only (saved as notes on the candidate, tagged with the link, all or nothing); status changes need a job application and are rejected.",
        "tags": [
          "CandidateSharing"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "sharingSlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Public sharing slug"
            },
            "description": "Public sharing slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SharingFeedbackBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved updates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharingFeedbackApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/candidate-sharing/{sharingSlug}/jobs": {
      "get": {
        "operationId": "get-candidate-sharing-{sharingSlug}-jobs",
        "summary": "GET /api/candidate-sharing/[sharingSlug]/jobs — job picker for a talent pool link's reviewer (no sign-in).",
        "description": "The sharing company's jobs that take applications (approved, external or internal-only, processed, not deleted). 410 once the link expires; 400 for job-application links.",
        "tags": [
          "CandidateSharing"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "sharingSlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Public sharing slug"
            },
            "description": "Public sharing slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Open jobs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedLinkJobsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/chatbot/config": {
      "get": {
        "operationId": "get-chatbot-config",
        "summary": "",
        "description": "",
        "tags": [
          "Chatbot"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackendChatbotConfig"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/communication-status/email/{clientId}": {
      "get": {
        "operationId": "get-communication-status-email-{clientId}",
        "summary": "GET /api/communication-status/email/[clientId]?clientType=screening_interview",
        "description": "",
        "tags": [
          "Communication-status"
        ],
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: clientId"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/settings/communication-templates": {
      "get": {
        "operationId": "get-settings-communication-templates",
        "summary": "GET /api/settings/communication-templates — the company's email templates and the package defaults it can customise.",
        "description": "The company's own versions (`isCustom`, newest first), then one `isDefault` row per customisable email. `isActive` marks the version being sent.",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/companySlugSchema"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Templates and defaults",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplatesListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-settings-communication-templates",
        "summary": "POST /api/settings/communication-templates — create the company's own version of an email (needs company settings access).",
        "description": "Unless `isActive` is false, the new version is sent and the purpose's other versions are turned off. Auth emails can't be customised.",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationTemplateCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/settings/communication-templates/{id}": {
      "get": {
        "operationId": "get-settings-communication-templates-{id}",
        "summary": "GET /api/settings/communication-templates/{id} — one of the company's templates.",
        "description": "",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/companySlugSchema"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Communication template ID"
            },
            "description": "Communication template ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-settings-communication-templates-{id}",
        "summary": "PUT /api/settings/communication-templates/{id} — edit a template or switch to sending it (needs company settings access).",
        "description": "Only the fields sent change. `isActive: true` turns off the purpose's other versions. Editing the content (not just switching versions) makes the caller its creator.",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Communication template ID"
            },
            "description": "Communication template ID",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationTemplateUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-settings-communication-templates-{id}",
        "summary": "DELETE /api/settings/communication-templates/{id} — delete one of the company's templates (needs company settings access).",
        "description": "",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/companySlugSchema"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Communication template ID"
            },
            "description": "Communication template ID",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplateEmptyApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/settings/communication-templates/activate-default": {
      "post": {
        "operationId": "post-settings-communication-templates-activate-default",
        "summary": "POST /api/settings/communication-templates/activate-default — send the package default again (needs company settings access).",
        "description": "Turns off every custom version of the purpose; they stay saved.",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationTemplateActivateDefaultBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default is sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplateEmptyApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/settings/communication-templates/preview": {
      "post": {
        "operationId": "post-settings-communication-templates-preview",
        "summary": "POST /api/settings/communication-templates/preview — render an email body in the email layout, for the template editor.",
        "description": "Pure rendering: nothing is stored or sent. The HTML is unsanitised; show it only in a sandboxed iframe.",
        "tags": [
          "CommunicationTemplates"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunicationTemplatePreviewBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Rendered email HTML",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunicationTemplatePreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company": {
      "get": {
        "operationId": "get-company",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/config": {
      "get": {
        "operationId": "get-company-config",
        "summary": "GET /api/company/config — fetch a company's full config row. SuperAdmin only (returns sensitive fields like twilioDetails).",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-config",
        "summary": "POST /api/company/config — create a CompanyConfig with autoApprove. SuperAdmin only.",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "companyId": {
                      "type": "number"
                    },
                    "autoApprove": {
                      "type": "boolean"
                    },
                    "autoApproveReplacementJobs": {
                      "type": "boolean"
                    },
                    "autoApproveOffers": {
                      "type": "boolean"
                    },
                    "autoApproveApplications": {
                      "type": "boolean"
                    },
                    "autoPostToNaukri": {
                      "type": "boolean"
                    },
                    "autoPostToLinkedIn": {
                      "type": "boolean"
                    },
                    "offerTemplateDocument": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "naukriAPIKey": {
                      "type": "object"
                    },
                    "naukriTestAccount": {
                      "type": "boolean"
                    },
                    "graph_tenant_id": {
                      "type": "object"
                    },
                    "graph_client_id": {
                      "type": "object"
                    },
                    "graph_client_secret": {
                      "type": "object"
                    },
                    "graph_refresh_token": {
                      "type": "object"
                    },
                    "domain": {
                      "type": "object"
                    },
                    "careerPageSettingEnabled": {
                      "type": "boolean"
                    },
                    "twilioDetails": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "toString": {
                              "type": "object"
                            },
                            "toLocaleString": {
                              "type": "object"
                            },
                            "pop": {
                              "type": "object"
                            },
                            "push": {
                              "type": "object"
                            },
                            "concat": {
                              "type": "object"
                            },
                            "join": {
                              "type": "object"
                            },
                            "reverse": {
                              "type": "object"
                            },
                            "shift": {
                              "type": "object"
                            },
                            "slice": {
                              "type": "object"
                            },
                            "sort": {
                              "type": "object"
                            },
                            "splice": {
                              "type": "object"
                            },
                            "unshift": {
                              "type": "object"
                            },
                            "indexOf": {
                              "type": "object"
                            },
                            "lastIndexOf": {
                              "type": "object"
                            },
                            "every": {
                              "type": "object"
                            },
                            "some": {
                              "type": "object"
                            },
                            "forEach": {
                              "type": "object"
                            },
                            "map": {
                              "type": "object"
                            },
                            "filter": {
                              "type": "object"
                            },
                            "reduce": {
                              "type": "object"
                            },
                            "reduceRight": {
                              "type": "object"
                            },
                            "find": {
                              "type": "object"
                            },
                            "findIndex": {
                              "type": "object"
                            },
                            "fill": {
                              "type": "object"
                            },
                            "copyWithin": {
                              "type": "object"
                            },
                            "__@iterator@209": {
                              "type": "object"
                            },
                            "entries": {
                              "type": "object"
                            },
                            "keys": {
                              "type": "object"
                            },
                            "values": {
                              "type": "object"
                            },
                            "__@unscopables@210": {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "oneOf": [
                                    {
                                      "type": "object"
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        false
                                      ]
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        true
                                      ]
                                    }
                                  ]
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object"
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              }
                            },
                            "includes": {
                              "type": "object"
                            },
                            "flatMap": {
                              "type": "object"
                            },
                            "flat": {
                              "type": "object"
                            },
                            "at": {
                              "type": "object"
                            },
                            "findLast": {
                              "type": "object"
                            },
                            "findLastIndex": {
                              "type": "object"
                            },
                            "toReversed": {
                              "type": "object"
                            },
                            "toSorted": {
                              "type": "object"
                            },
                            "toSpliced": {
                              "type": "object"
                            },
                            "with": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "length",
                            "toString",
                            "toLocaleString",
                            "pop",
                            "push",
                            "concat",
                            "join",
                            "reverse",
                            "shift",
                            "slice",
                            "sort",
                            "splice",
                            "unshift",
                            "indexOf",
                            "lastIndexOf",
                            "every",
                            "some",
                            "forEach",
                            "map",
                            "filter",
                            "reduce",
                            "reduceRight",
                            "find",
                            "findIndex",
                            "fill",
                            "copyWithin",
                            "__@iterator@209",
                            "entries",
                            "keys",
                            "values",
                            "__@unscopables@210",
                            "includes",
                            "flatMap",
                            "flat",
                            "at",
                            "findLast",
                            "findLastIndex",
                            "toReversed",
                            "toSorted",
                            "toSpliced",
                            "with"
                          ]
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "oneOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              {
                                "type": "object"
                              },
                              {
                                "type": "object"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "customFieldsConfig": {
                      "type": "object"
                    },
                    "enableSendingEmail": {
                      "type": "boolean"
                    },
                    "allowAutomationAutoReject": {
                      "type": "boolean"
                    },
                    "notificationConfig": {
                      "type": "object"
                    },
                    "isReachOutEnabled": {
                      "type": "boolean"
                    },
                    "accessControlConfig": {
                      "type": "object"
                    },
                    "reportConfig": {
                      "type": "object"
                    },
                    "showCompanyLogo": {
                      "type": "boolean"
                    },
                    "companyLogoUrl": {
                      "type": "object"
                    },
                    "careerTheme": {
                      "type": "object"
                    },
                    "ogImageUrl": {
                      "type": "object"
                    },
                    "ogImageSourceHash": {
                      "type": "object"
                    },
                    "featureFlags": {
                      "type": "object"
                    },
                    "automationSettings": {
                      "type": "object"
                    },
                    "offerFieldConfig": {
                      "type": "object"
                    },
                    "extraConfig": {
                      "type": "object"
                    },
                    "searchConfig": {
                      "type": "object"
                    },
                    "jdConfig": {
                      "type": "object"
                    },
                    "companyProfile": {
                      "type": "object"
                    },
                    "linkedInCompanyIds": {
                      "type": "object"
                    },
                    "industryTaxonomy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "BLS",
                        "LINKEDIN_V2",
                        "NAICS"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "companyId",
                    "autoApprove",
                    "autoApproveReplacementJobs",
                    "autoApproveOffers",
                    "autoApproveApplications",
                    "autoPostToNaukri",
                    "autoPostToLinkedIn",
                    "offerTemplateDocument",
                    "naukriAPIKey",
                    "naukriTestAccount",
                    "graph_tenant_id",
                    "graph_client_id",
                    "graph_client_secret",
                    "graph_refresh_token",
                    "domain",
                    "careerPageSettingEnabled",
                    "twilioDetails",
                    "customFieldsConfig",
                    "enableSendingEmail",
                    "allowAutomationAutoReject",
                    "notificationConfig",
                    "isReachOutEnabled",
                    "accessControlConfig",
                    "reportConfig",
                    "showCompanyLogo",
                    "companyLogoUrl",
                    "careerTheme",
                    "ogImageUrl",
                    "ogImageSourceHash",
                    "featureFlags",
                    "automationSettings",
                    "offerFieldConfig",
                    "extraConfig",
                    "searchConfig",
                    "jdConfig",
                    "companyProfile",
                    "linkedInCompanyIds",
                    "industryTaxonomy"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-config",
        "summary": "PUT /api/company/config — update autoApprove, or store Twilio subaccount details. SuperAdmin only.",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "companyId": {
                      "type": "number"
                    },
                    "autoApprove": {
                      "type": "boolean"
                    },
                    "autoApproveReplacementJobs": {
                      "type": "boolean"
                    },
                    "autoApproveOffers": {
                      "type": "boolean"
                    },
                    "autoApproveApplications": {
                      "type": "boolean"
                    },
                    "autoPostToNaukri": {
                      "type": "boolean"
                    },
                    "autoPostToLinkedIn": {
                      "type": "boolean"
                    },
                    "offerTemplateDocument": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "naukriAPIKey": {
                      "type": "object"
                    },
                    "naukriTestAccount": {
                      "type": "boolean"
                    },
                    "graph_tenant_id": {
                      "type": "object"
                    },
                    "graph_client_id": {
                      "type": "object"
                    },
                    "graph_client_secret": {
                      "type": "object"
                    },
                    "graph_refresh_token": {
                      "type": "object"
                    },
                    "domain": {
                      "type": "object"
                    },
                    "careerPageSettingEnabled": {
                      "type": "boolean"
                    },
                    "twilioDetails": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "toString": {
                              "type": "object"
                            },
                            "toLocaleString": {
                              "type": "object"
                            },
                            "pop": {
                              "type": "object"
                            },
                            "push": {
                              "type": "object"
                            },
                            "concat": {
                              "type": "object"
                            },
                            "join": {
                              "type": "object"
                            },
                            "reverse": {
                              "type": "object"
                            },
                            "shift": {
                              "type": "object"
                            },
                            "slice": {
                              "type": "object"
                            },
                            "sort": {
                              "type": "object"
                            },
                            "splice": {
                              "type": "object"
                            },
                            "unshift": {
                              "type": "object"
                            },
                            "indexOf": {
                              "type": "object"
                            },
                            "lastIndexOf": {
                              "type": "object"
                            },
                            "every": {
                              "type": "object"
                            },
                            "some": {
                              "type": "object"
                            },
                            "forEach": {
                              "type": "object"
                            },
                            "map": {
                              "type": "object"
                            },
                            "filter": {
                              "type": "object"
                            },
                            "reduce": {
                              "type": "object"
                            },
                            "reduceRight": {
                              "type": "object"
                            },
                            "find": {
                              "type": "object"
                            },
                            "findIndex": {
                              "type": "object"
                            },
                            "fill": {
                              "type": "object"
                            },
                            "copyWithin": {
                              "type": "object"
                            },
                            "__@iterator@209": {
                              "type": "object"
                            },
                            "entries": {
                              "type": "object"
                            },
                            "keys": {
                              "type": "object"
                            },
                            "values": {
                              "type": "object"
                            },
                            "__@unscopables@210": {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "oneOf": [
                                    {
                                      "type": "object"
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        false
                                      ]
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        true
                                      ]
                                    }
                                  ]
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object"
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              }
                            },
                            "includes": {
                              "type": "object"
                            },
                            "flatMap": {
                              "type": "object"
                            },
                            "flat": {
                              "type": "object"
                            },
                            "at": {
                              "type": "object"
                            },
                            "findLast": {
                              "type": "object"
                            },
                            "findLastIndex": {
                              "type": "object"
                            },
                            "toReversed": {
                              "type": "object"
                            },
                            "toSorted": {
                              "type": "object"
                            },
                            "toSpliced": {
                              "type": "object"
                            },
                            "with": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "length",
                            "toString",
                            "toLocaleString",
                            "pop",
                            "push",
                            "concat",
                            "join",
                            "reverse",
                            "shift",
                            "slice",
                            "sort",
                            "splice",
                            "unshift",
                            "indexOf",
                            "lastIndexOf",
                            "every",
                            "some",
                            "forEach",
                            "map",
                            "filter",
                            "reduce",
                            "reduceRight",
                            "find",
                            "findIndex",
                            "fill",
                            "copyWithin",
                            "__@iterator@209",
                            "entries",
                            "keys",
                            "values",
                            "__@unscopables@210",
                            "includes",
                            "flatMap",
                            "flat",
                            "at",
                            "findLast",
                            "findLastIndex",
                            "toReversed",
                            "toSorted",
                            "toSpliced",
                            "with"
                          ]
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "oneOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              {
                                "type": "object"
                              },
                              {
                                "type": "object"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "customFieldsConfig": {
                      "type": "object"
                    },
                    "enableSendingEmail": {
                      "type": "boolean"
                    },
                    "allowAutomationAutoReject": {
                      "type": "boolean"
                    },
                    "notificationConfig": {
                      "type": "object"
                    },
                    "isReachOutEnabled": {
                      "type": "boolean"
                    },
                    "accessControlConfig": {
                      "type": "object"
                    },
                    "reportConfig": {
                      "type": "object"
                    },
                    "showCompanyLogo": {
                      "type": "boolean"
                    },
                    "companyLogoUrl": {
                      "type": "object"
                    },
                    "careerTheme": {
                      "type": "object"
                    },
                    "ogImageUrl": {
                      "type": "object"
                    },
                    "ogImageSourceHash": {
                      "type": "object"
                    },
                    "featureFlags": {
                      "type": "object"
                    },
                    "automationSettings": {
                      "type": "object"
                    },
                    "offerFieldConfig": {
                      "type": "object"
                    },
                    "extraConfig": {
                      "type": "object"
                    },
                    "searchConfig": {
                      "type": "object"
                    },
                    "jdConfig": {
                      "type": "object"
                    },
                    "companyProfile": {
                      "type": "object"
                    },
                    "linkedInCompanyIds": {
                      "type": "object"
                    },
                    "industryTaxonomy": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "BLS",
                        "LINKEDIN_V2",
                        "NAICS"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "companyId",
                    "autoApprove",
                    "autoApproveReplacementJobs",
                    "autoApproveOffers",
                    "autoApproveApplications",
                    "autoPostToNaukri",
                    "autoPostToLinkedIn",
                    "offerTemplateDocument",
                    "naukriAPIKey",
                    "naukriTestAccount",
                    "graph_tenant_id",
                    "graph_client_id",
                    "graph_client_secret",
                    "graph_refresh_token",
                    "domain",
                    "careerPageSettingEnabled",
                    "twilioDetails",
                    "customFieldsConfig",
                    "enableSendingEmail",
                    "allowAutomationAutoReject",
                    "notificationConfig",
                    "isReachOutEnabled",
                    "accessControlConfig",
                    "reportConfig",
                    "showCompanyLogo",
                    "companyLogoUrl",
                    "careerTheme",
                    "ogImageUrl",
                    "ogImageSourceHash",
                    "featureFlags",
                    "automationSettings",
                    "offerFieldConfig",
                    "extraConfig",
                    "searchConfig",
                    "jdConfig",
                    "companyProfile",
                    "linkedInCompanyIds",
                    "industryTaxonomy"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/departments": {
      "get": {
        "operationId": "get-company-departments",
        "summary": "GET /api/company/departments — departments of the company that the signed-in user belongs to",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Company slug (or companyId)"
            },
            "description": "Company slug (or companyId)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Company id (or companySlug)"
            },
            "description": "Company id (or companySlug)",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Departments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyDepartmentsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/employment-types": {
      "get": {
        "operationId": "get-company-employment-types",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/grade": {
      "post": {
        "operationId": "post-company-grade",
        "summary": "POST /api/company/grade",
        "description": "Add a grade to the session company's available grades.",
        "tags": [
          "Company"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddGradeBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Grade added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddGradeApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/title-grade": {
      "post": {
        "operationId": "post-company-title-grade",
        "summary": "POST /api/company/title-grade",
        "description": "Add a job title and its grades to the session company's job posting config.",
        "tags": [
          "Company"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTitleGradeBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Title and grades added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddTitleGradeApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/access-control-config": {
      "get": {
        "operationId": "get-company-{companySlug}-access-control-config",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-access-control-config",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/approval-flow": {
      "get": {
        "operationId": "get-company-{companySlug}-approval-flow",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-approval-flow",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createRoutingRuleSchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-approval-flow",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchAutoApproveSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/candidate-statuses-config": {
      "get": {
        "operationId": "get-company-{companySlug}-candidate-statuses-config",
        "summary": "GET: Read candidate statuses configuration (CRUD: Read)",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-candidate-statuses-config",
        "summary": "POST: Create a new custom status (CRUD: Create)",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-candidate-statuses-config",
        "summary": "PUT: Bulk Update / Reorder status configuration (CRUD: Bulk Update)",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/career-theme": {
      "get": {
        "operationId": "get-company-{companySlug}-career-theme",
        "summary": "GET /api/company/[companySlug]/career-theme",
        "description": "The company's saved career page theme (layout, brand colour, corners). Company admins; needs the CAREER_THEMING flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Career page theme",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CareerThemeApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-career-theme",
        "summary": "PUT /api/company/[companySlug]/career-theme",
        "description": "Save the company's career page theme. Company admins; needs the CAREER_THEMING flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CareerThemeBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved career page theme",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CareerThemeApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/departments": {
      "get": {
        "operationId": "get-company-{companySlug}-departments",
        "summary": "GET /api/company/[companySlug]/departments",
        "description": "List the company's departments (seeding the defaults when it has none).",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Departments (raw array)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyDepartmentListSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-departments",
        "summary": "POST /api/company/[companySlug]/departments",
        "description": "Create a department. Admins always can; other members only when the JOB_TITLE_QUICK_ADD_ANY_ROLE",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDepartmentBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created department",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepartmentApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-departments",
        "summary": "PATCH /api/company/[companySlug]/departments",
        "description": "Rename a department. Admin or SuperAdmin only.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDepartmentBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Renamed department",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepartmentApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-company-{companySlug}-departments",
        "summary": "DELETE /api/company/[companySlug]/departments",
        "description": "Delete a department that has no blocking relations. Admin or SuperAdmin only.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "example": 123
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted department id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepartmentDeleteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/integrations": {
      "get": {
        "operationId": "get-company-{companySlug}-integrations",
        "summary": "GET /api/company/[companySlug]/integrations",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-integrations",
        "summary": "PATCH /api/company/[companySlug]/integrations",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/jd-header-footer": {
      "get": {
        "operationId": "get-company-{companySlug}-jd-header-footer",
        "summary": "GET /api/company/{companySlug}/jd-header-footer",
        "description": "The company-wide header and footer shown around every job description, for the settings page. Company admins only; candidates get them inside the public job description responses.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Header and footer (empty strings when not set)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JdHeaderFooterApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-jd-header-footer",
        "summary": "PUT /api/company/{companySlug}/jd-header-footer",
        "description": "Save the company-wide header and footer shown around every job description. Company admins only. Images and videos must be this company's uploads or supported video links.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JdHeaderFooterSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved header and footer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JdHeaderFooterApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/jd-template": {
      "get": {
        "operationId": "get-company-{companySlug}-jd-template",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-jd-template",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putJdTemplateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/job-posting-config": {
      "get": {
        "operationId": "get-company-{companySlug}-job-posting-config",
        "summary": "GET /api/company/[companySlug]/job-posting-config",
        "description": "The company's job posting field config: location/title modes and options, currency and country options, defaults for new jobs, and which fields are hidden. Needs the JOB_POSTING_CONFIG flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Job posting config",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPostingConfigApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-job-posting-config",
        "summary": "PUT /api/company/[companySlug]/job-posting-config",
        "description": "Save the company's job posting field config. Optional `defaults` and `noOfOpeningsVisible` are applied when sent; only what changed is written. A dropdown field's default must be one of its options (checked for every field this save changes), and hiding a required field needs a default. Rejected with 409 when the job form changed since `version` was read. Needs the JOB_POSTING_CONFIG flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobPostingConfigBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved job posting config",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPostingConfigApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/job-posting-form": {
      "get": {
        "operationId": "get-company-{companySlug}-job-posting-form",
        "summary": "GET /api/company/[companySlug]/job-posting-form",
        "description": "The job creation form as editable sections and fields, with a version token for saving. Needs the JOB_POSTING_CONFIG flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Job form",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPostingFormApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-job-posting-form",
        "summary": "PUT /api/company/[companySlug]/job-posting-form",
        "description": "Save the edited job creation form. Rejected with 409 when the form changed since `version` was read, and with 400 when it breaks a rule (removed fields or saved options, locked settings, defaults outside their options, empty sections…). Needs the JOB_POSTING_CONFIG flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobPostingFormBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved job form",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobPostingFormApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/logo": {
      "post": {
        "operationId": "post-company-{companySlug}-logo",
        "summary": "POST /api/company/[companySlug]/logo",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "url"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/notification-settings": {
      "get": {
        "operationId": "get-company-{companySlug}-notification-settings",
        "summary": "GET /api/company/[companySlug]/notification-settings",
        "description": "The company's email settings (Settings > Notifications), the status chips, and the switches above them. Readable by any member — the status-change prompt uses it to know whether an email would go out.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Notification settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSettingsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-notification-settings",
        "summary": "PATCH /api/company/[companySlug]/notification-settings",
        "description": "Change some email settings. Send only the keys that changed; they're merged into the stored settings so admins editing at once don't undo each other. Locked emails and unknown keys or statuses are rejected. Admins only.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationSettingsPatchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved notification settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSettingsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/panellists": {
      "get": {
        "operationId": "get-company-{companySlug}-panellists",
        "summary": "GET /api/company/{companySlug}/panellists",
        "description": "Page through the company's active Manager/Panellist members for panelist pickers, optionally searched, narrowed to a department, and sorted A–Z.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "1-based page index (default 1)"
            },
            "description": "1-based page index (default 1)",
            "example": 1
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Page size (default 100)"
            },
            "description": "Page size (default 100)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Matches name or email (case-insensitive)"
            },
            "description": "Matches name or email (case-insensitive)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "managerName",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Matches name (case-insensitive); OR-ed with the other searches"
            },
            "description": "Matches name (case-insensitive); OR-ed with the other searches",
            "example": "example"
          },
          {
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Matches email (case-insensitive); OR-ed with the other searches"
            },
            "description": "Matches email (case-insensitive); OR-ed with the other searches",
            "example": "user@example.com"
          },
          {
            "in": "query",
            "name": "departmentId",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Restricts to the department's graph-tenant email domains, when it has any"
            },
            "description": "Restricts to the department's graph-tenant email domains, when it has any",
            "example": "123"
          },
          {
            "in": "query",
            "name": "emails",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma-separated exact emails; ignored when departmentId is given"
            },
            "description": "Comma-separated exact emails; ignored when departmentId is given",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "name"
              ],
              "description": "`newest` (default) or `name` for A–Z by name, then email"
            },
            "description": "`newest` (default) or `name` for A–Z by name, then email",
            "example": "newest"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of panellists (ApiResponse envelope)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanellistsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/screening-webrtc-config": {
      "get": {
        "operationId": "get-company-{companySlug}-screening-webrtc-config",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-screening-webrtc-config",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/users": {
      "get": {
        "operationId": "get-company-{companySlug}-users",
        "summary": "Get list of users under a company",
        "description": "Fetches list of users under a company",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyUsersResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-users",
        "summary": "Add a user to the company. Caller must be Admin or SuperAdmin.",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/addUserBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCompanyUser201Response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/approval-flow/{ruleId}": {
      "patch": {
        "operationId": "patch-company-{companySlug}-approval-flow-{ruleId}",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/updateRoutingRuleSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-company-{companySlug}-approval-flow-{ruleId}",
        "summary": "",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/candidate-statuses-config/{statusId}": {
      "patch": {
        "operationId": "patch-company-{companySlug}-candidate-statuses-config-{statusId}",
        "summary": "PATCH: Update an individual status definition by statusId (CRUD: Update Single Item)",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchStatusSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-company-{companySlug}-candidate-statuses-config-{statusId}",
        "summary": "DELETE: Delete a custom status by statusId (CRUD: Delete Single Item)",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "replacementStatusValue",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/career-theme/logo-color": {
      "get": {
        "operationId": "get-company-{companySlug}-career-theme-logo-color",
        "summary": "GET /api/company/[companySlug]/career-theme/logo-color",
        "description": "The strongest colour in the company's logo, to offer as a career page brand colour. Null when there is no logo or it has no clear colour. Company admins; needs the CAREER_THEMING flag.",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Suggested brand colour",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CareerThemeLogoColorApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/integrations/disconnect": {
      "post": {
        "operationId": "post-company-{companySlug}-integrations-disconnect",
        "summary": "POST /api/company/[companySlug]/integrations/disconnect",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/integrations/test": {
      "post": {
        "operationId": "post-company-{companySlug}-integrations-test",
        "summary": "POST /api/company/[companySlug]/integrations/test",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/job-posting-config/title-options": {
      "post": {
        "operationId": "post-company-{companySlug}-job-posting-config-title-options",
        "summary": "POST /api/company/[companySlug]/job-posting-config/title-options",
        "description": "Add one job title to the job form's title options. Admins always can; other members only when the",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddJobTitleOptionBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Title added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddJobTitleOptionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/users/{userId}": {
      "patch": {
        "operationId": "patch-company-{companySlug}-users-{userId}",
        "summary": "PATCH /api/company/[companySlug]/users/[userId]",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/editUserBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditCompanyUser200Response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/users/disable": {
      "post": {
        "operationId": "post-company-{companySlug}-users-disable",
        "summary": "Disable one or more users. Blocks them in Auth0 and sets disabled=true in DB.",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/disableBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "502": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "503": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          }
        }
      }
    },
    "/company/{companySlug}/users/enable": {
      "post": {
        "operationId": "post-company-{companySlug}-users-enable",
        "summary": "Enable (unblock) one or more users. Unblocks them in Auth0 and sets disabled=false in DB.",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/enableBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "502": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "503": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          }
        }
      }
    },
    "/company/{companySlug}/integrations/linkedin/verify": {
      "post": {
        "operationId": "post-company-{companySlug}-integrations-linkedin-verify",
        "summary": "POST /api/company/[companySlug]/integrations/linkedin/verify",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/users/{userId}/reset-password": {
      "post": {
        "operationId": "post-company-{companySlug}-users-{userId}-reset-password",
        "summary": "POST /api/company/[companySlug]/users/[userId]/reset-password",
        "description": "",
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/resetPasswordBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "502": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "503": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          }
        }
      }
    },
    "/company-assets/embed-preview": {
      "get": {
        "operationId": "get-company-assets-embed-preview",
        "summary": "GET /api/company-assets/embed-preview?url=…",
        "description": "Title, author, duration and thumbnail for a YouTube, Vimeo or Loom link (oEmbed). Other hosts are rejected without a request. The thumbnail is copied into our storage once per video.",
        "tags": [
          "CompanyAssets"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "url",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "description": "YouTube, Vimeo or Loom link"
            },
            "description": "YouTube, Vimeo or Loom link",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Video details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAssetEmbedPreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company-assets/uploads": {
      "post": {
        "operationId": "post-company-assets-uploads",
        "summary": "POST /api/company-assets/uploads",
        "description": "Start a company asset upload (JD image, video or poster frame). Checks type and size, then returns a 15-minute signed PUT URL to the temp area. The browser uploads straight to storage, then calls finalize.",
        "tags": [
          "CompanyAssets"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyAssetUploadBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed upload URL",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateCompanyAssetUploadApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company-assets/uploads/{uploadId}/finalize": {
      "post": {
        "operationId": "post-company-assets-uploads-{uploadId}-finalize",
        "summary": "POST /api/company-assets/uploads/{uploadId}/finalize",
        "description": "Finish an upload. Images and posters are re-encoded to WebP (max 2000px / 1280px, metadata stripped); videos are size- and type-checked and moved out of staging. Only the session company's own uploads can be finished.",
        "tags": [
          "CompanyAssets"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "description": "Upload id returned when the upload started"
            },
            "description": "Upload id returned when the upload started",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FinalizeCompanyAssetUploadBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stored asset",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinalizeCompanyAssetUploadApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/company-profile": {
      "get": {
        "operationId": "get-company-{companySlug}-company-profile",
        "summary": "GET /api/company/{companySlug}/company-profile — the candidate-facing company profile.",
        "description": "Saved profile markdown, its extraction status and the extracted profile JSON (with summary), or the sample template when none is saved. The AI interviewer answers candidate questions about the company from the extracted profile.",
        "tags": [
          "CompanySettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyProfileApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-company-{companySlug}-company-profile",
        "summary": "PUT /api/company/{companySlug}/company-profile — save the company profile.",
        "description": "Stores the markdown as processing and starts talent-ai's P2 CompanyProfileWorkflow, which extracts the profile JSON with a summary. Poll GET for the result. An empty markdown clears the profile.",
        "tags": [
          "CompanySettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyProfileBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyProfileApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/sending-domain": {
      "get": {
        "operationId": "get-company-{companySlug}-sending-domain",
        "summary": "GET /api/company/[companySlug]/sending-domain — the company's own email sending domain.",
        "description": "The domain the company sends email from, its verification status and the DNS records to add. With refresh=true the status is read from Resend first; the first time the domain is verified, the company's email switches to it. Company admins only, with COMPANY_SENDING_DOMAIN on.",
        "tags": [
          "CompanySettings"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "true reads the latest status and DNS records from Resend"
            },
            "description": "true reads the latest status and DNS records from Resend",
            "example": "true"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "The domain, or null when none is set up",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySendingDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-company-{companySlug}-sending-domain",
        "summary": "POST /api/company/[companySlug]/sending-domain — add the company's own email sending domain.",
        "description": "Adds the domain and returns the DNS records to add at the company's DNS provider. Email keeps going from the default sender until the domain is verified. Company admins only, with COMPANY_SENDING_DOMAIN on.",
        "tags": [
          "CompanySettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanySendingDomainCreateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The domain, with its DNS records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySendingDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-company-{companySlug}-sending-domain",
        "summary": "DELETE /api/company/[companySlug]/sending-domain — remove the company's own email sending domain.",
        "description": "Removes the domain; email goes back to the default sender, and recruiters can no longer send reach-outs from their own address. Company admins only, with COMPANY_SENDING_DOMAIN on.",
        "tags": [
          "CompanySettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Removed (data is null)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySendingDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/sending-domain/verify": {
      "post": {
        "operationId": "post-company-{companySlug}-sending-domain-verify",
        "summary": "POST /api/company/[companySlug]/sending-domain/verify — check the sending domain's DNS records.",
        "description": "Asks for the domain's DNS records to be checked now and returns the current status. Checking finishes asynchronously, so refresh the status after a while. Once verified, the company's email switches to the domain. Company admins only, with COMPANY_SENDING_DOMAIN on.",
        "tags": [
          "CompanySettings"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "The domain with its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySendingDomainApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors": {
      "get": {
        "operationId": "get-connectors",
        "summary": "GET /api/connectors?companySlug=… — signed-in user's individual calendar connector status (no secrets).",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorsStatusApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors/disconnect": {
      "post": {
        "operationId": "post-connectors-disconnect",
        "summary": "POST /api/connectors/disconnect — disconnects the signed-in user's own calendar connector.",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectorDisconnectBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorDisconnectApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors/test": {
      "post": {
        "operationId": "post-connectors-test",
        "summary": "POST /api/connectors/test — probes the signed-in user's connector.",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectorTestBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectorTestApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors/google/authorize": {
      "get": {
        "operationId": "get-connectors-google-authorize",
        "summary": "GET /api/connectors/google/authorize?companySlug=xxx",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors/google/callback": {
      "get": {
        "operationId": "get-connectors-google-callback",
        "summary": "GET /api/connectors/google/callback?code=xxx&state=xxx",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error_description",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors/microsoft/authorize": {
      "get": {
        "operationId": "get-connectors-microsoft-authorize",
        "summary": "GET /api/connectors/microsoft/authorize?companySlug=xxx",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/connectors/microsoft/callback": {
      "get": {
        "operationId": "get-connectors-microsoft-callback",
        "summary": "GET /api/connectors/microsoft/callback?code=xxx&state=xxx",
        "description": "",
        "tags": [
          "Connectors"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error_description",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "admin_consent",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "tenant",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/ai-interview-reminders": {
      "get": {
        "operationId": "get-cron-ai-interview-reminders",
        "summary": "GET API for checking pending AI interviews (for monitoring)",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-cron-ai-interview-reminders",
        "summary": "POST API for sending AI interview reminder emails",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/analytics-refresh": {
      "post": {
        "operationId": "post-cron-analytics-refresh",
        "summary": "POST /api/cron/analytics-refresh",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/automation-digests": {
      "post": {
        "operationId": "post-cron-automation-digests",
        "summary": "POST /api/cron/automation-digests",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/automation-events": {
      "post": {
        "operationId": "post-cron-automation-events",
        "summary": "POST /api/cron/automation-events",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/automation-time-triggers": {
      "post": {
        "operationId": "post-cron-automation-time-triggers",
        "summary": "POST /api/cron/automation-time-triggers",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/billing-capacity-rebill": {
      "post": {
        "operationId": "post-cron-billing-capacity-rebill",
        "summary": "POST /api/cron/billing-capacity-rebill",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/candidates": {
      "patch": {
        "operationId": "patch-cron-candidates",
        "summary": "This is a Next.js API route that runs a cron job to update Candidates in the database.",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/feedback-reminders": {
      "get": {
        "operationId": "get-cron-feedback-reminders",
        "summary": "GET API for checking pending feedbacks (for monitoring)",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-cron-feedback-reminders",
        "summary": "POST API for sending feedback reminder emails",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/job-application-processing": {
      "post": {
        "operationId": "post-cron-job-application-processing",
        "summary": "POST /api/cron/job-application-processing",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/renew-calendar-subscriptions": {
      "get": {
        "operationId": "get-cron-renew-calendar-subscriptions",
        "summary": "GET API for checking calendar subscription status (for monitoring)",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-cron-renew-calendar-subscriptions",
        "summary": "POST API for renewing calendar subscriptions",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/screening-webrtc-lifecycle-sweeper": {
      "get": {
        "operationId": "get-cron-screening-webrtc-lifecycle-sweeper",
        "summary": "",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-cron-screening-webrtc-lifecycle-sweeper",
        "summary": "POST /api/cron/screening-webrtc-lifecycle-sweeper",
        "description": "",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/cron/whatsapp-threads": {
      "post": {
        "operationId": "post-cron-whatsapp-threads",
        "summary": "POST /api/cron/whatsapp-threads — every minute: re-run stuck WhatsApp assistant turns and close idle threads.",
        "description": "Auth0 M2M Bearer (the k8s CronJob) or CRON_SECRET Bearer. A thread is closed after 24 h without activity, unless its call is still ahead or ringing.",
        "tags": [
          "Cron"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppThreadsCronApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics": {
      "get": {
        "operationId": "get-custom-analytics",
        "summary": "GET endpoint for getting available schema information",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-custom-analytics",
        "summary": "Main API endpoint",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/{id}": {
      "delete": {
        "operationId": "delete-custom-analytics-{id}",
        "summary": "DELETE endpoint for deleting a custom chart by id",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/assign-dashboard": {
      "post": {
        "operationId": "post-custom-analytics-assign-dashboard",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/dashboard": {
      "post": {
        "operationId": "post-custom-analytics-dashboard",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-custom-analytics-dashboard",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-custom-analytics-dashboard",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/order": {
      "post": {
        "operationId": "post-custom-analytics-order",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/paginate": {
      "post": {
        "operationId": "post-custom-analytics-paginate",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/preview": {
      "post": {
        "operationId": "post-custom-analytics-preview",
        "summary": "Main API endpoint",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/custom-analytics/remove-dashboard": {
      "post": {
        "operationId": "post-custom-analytics-remove-dashboard",
        "summary": "",
        "description": "",
        "tags": [
          "Custom-analytics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/embeddings": {
      "get": {
        "operationId": "get-embeddings",
        "summary": "",
        "description": "",
        "tags": [
          "Embeddings"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "client_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "company_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "entity_type",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-embeddings",
        "summary": "",
        "description": "",
        "tags": [
          "Embeddings"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/generateQuestions": {
      "post": {
        "operationId": "post-generateQuestions",
        "summary": "POST: Creates new interview questions for a screening round.",
        "description": "",
        "tags": [
          "GenerateQuestions"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/generateQuestions/{id}": {
      "put": {
        "operationId": "put-generateQuestions-{id}",
        "summary": "PUT: Updates/regenerates existing interview questions using interview ID from path.",
        "description": "",
        "tags": [
          "GenerateQuestions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/hiring-managers": {
      "get": {
        "operationId": "get-hiring-managers",
        "summary": "",
        "description": "",
        "tags": [
          "Hiring-managers"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-hiring-managers",
        "summary": "",
        "description": "",
        "tags": [
          "Hiring-managers"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/hiring-managers/{id}": {
      "put": {
        "operationId": "put-hiring-managers-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Hiring-managers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-hiring-managers-{id}",
        "summary": "delete manager - removes Manager role from user",
        "description": "",
        "tags": [
          "Hiring-managers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/ai-charts": {
      "post": {
        "operationId": "post-insights-ai-charts",
        "summary": "POST /api/insights/ai-charts — save an AI Analytics answer to My Charts.",
        "description": "Saves the answer's query on the signed-in user's My Charts dashboard; the chart re-runs it on every load.",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiChartPinBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Chart saved (or already saved)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiChartPinApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/benetton-applicants-report": {
      "post": {
        "operationId": "post-insights-benetton-applicants-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/candidates-by-roles-report": {
      "post": {
        "operationId": "post-insights-candidates-by-roles-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/candidates-by-status-report": {
      "post": {
        "operationId": "post-insights-candidates-by-status-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/custom-charts": {
      "post": {
        "operationId": "post-insights-custom-charts",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/monthly-dashboard": {
      "post": {
        "operationId": "post-insights-monthly-dashboard",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/offer-joined-report": {
      "post": {
        "operationId": "post-insights-offer-joined-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/open-positions-report": {
      "post": {
        "operationId": "post-insights-open-positions-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/positions-closed-report": {
      "post": {
        "operationId": "post-insights-positions-closed-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/positions-created-report": {
      "post": {
        "operationId": "post-insights-positions-created-report",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/predefined-graphs": {
      "post": {
        "operationId": "post-insights-predefined-graphs",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/insights/predefined-graphs/save": {
      "post": {
        "operationId": "post-insights-predefined-graphs-save",
        "summary": "",
        "description": "",
        "tags": [
          "Insights"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/integrations/google/authorize": {
      "get": {
        "operationId": "get-integrations-google-authorize",
        "summary": "GET /api/integrations/google/authorize?companySlug=xxx",
        "description": "",
        "tags": [
          "Integrations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/integrations/google/callback": {
      "get": {
        "operationId": "get-integrations-google-callback",
        "summary": "GET /api/integrations/google/callback?code=xxx&state=xxx",
        "description": "",
        "tags": [
          "Integrations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error_description",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/integrations/microsoft/authorize": {
      "get": {
        "operationId": "get-integrations-microsoft-authorize",
        "summary": "GET /api/integrations/microsoft/authorize?companySlug=xxx",
        "description": "",
        "tags": [
          "Integrations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/integrations/microsoft/callback": {
      "get": {
        "operationId": "get-integrations-microsoft-callback",
        "summary": "GET /api/integrations/microsoft/callback?code=xxx&state=xxx",
        "description": "",
        "tags": [
          "Integrations"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "error_description",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/internal/stt": {
      "post": {
        "operationId": "post-internal-stt",
        "summary": "",
        "description": "",
        "tags": [
          "Internal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "token",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "text": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "success",
                    "text"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/internal/analytics/query": {
      "post": {
        "operationId": "post-internal-analytics-query",
        "summary": "",
        "description": "",
        "tags": [
          "Internal"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "rows": {
                      "type": "object"
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "success",
                    "rows",
                    "columns"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/internal/stt/token": {
      "get": {
        "operationId": "get-internal-stt-token",
        "summary": "",
        "description": "",
        "tags": [
          "Internal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "token",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "token"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/internal/candidate-conversations/{id}/actions": {
      "post": {
        "operationId": "post-internal-candidate-conversations-{id}-actions",
        "summary": "POST /api/internal/candidate-conversations/{id}/actions — the interview-scheduling assistant runs one tool.",
        "description": "M2M (Bearer), called by talent-ai during a Marley turn (INT-982). talent-web checks every rule: only offered slots; a slot must be proposed (and repeated back) before `book_slot`; cancelling needs `ask_cancel_confirmation` first; changing a booked interview needs the candidate's emailed code; a closed conversation refuses everything except `get_context` and `get_job_description` (the JD's extracted text only, fetched on demand). A refused tool returns 200 with `ok: false` and a `reason`. 404 when the conversation doesn't exist.",
        "tags": [
          "Internal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "CandidateConversation id"
            },
            "description": "CandidateConversation id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateConversationActionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateConversationActionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/internal/whatsapp-threads/{id}/actions": {
      "post": {
        "operationId": "post-internal-whatsapp-threads-{id}-actions",
        "summary": "POST /api/internal/whatsapp-threads/{id}/actions — the WhatsApp scheduling assistant runs one tool on a thread.",
        "description": "M2M (Bearer), called by talent-ai during an assistant turn (INT-978). talent-web checks every rule: a slot must be proposed (and repeated back) before `book_call`, `decline_interview` needs `ask_decline_confirmation` on the turn before, and a closed thread refuses everything except `get_context`. A refused tool returns 200 with `ok: false` and a `reason` for the assistant. 404 when the thread doesn't exist.",
        "tags": [
          "Internal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "WhatsAppThread id"
            },
            "description": "WhatsAppThread id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WhatsAppThreadActionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppThreadActionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/interview-chat": {
      "get": {
        "operationId": "get-{companySlug}-public-interview-chat",
        "summary": "GET /api/{companySlug}/public/interview-chat — open the candidate's chat with Marley about their interview.",
        "description": "Anonymous; the chat link token is the only credential and decides the conversation and the round (INT-982). Marley's first line for the round is added once, without the LLM. Expired or finished chats open read-only.",
        "tags": [
          "InterviewChat"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "token",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/token"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "The conversation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Unknown link (or the feature is off)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-{companySlug}-public-interview-chat",
        "summary": "POST /api/{companySlug}/public/interview-chat — the candidate sends a message; Marley replies in the same request.",
        "description": "Anonymous, by chat link token. Up to 1000 characters; 10 messages per 5 minutes and 60 per round. Marley can only book an offered slot after repeating it back, and needs the emailed code, entered in this browser, before changing a booked interview — talent-web checks every action.",
        "tags": [
          "InterviewChat"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewChatMessageBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The conversation with Marley's reply",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "409": {
            "description": "Marley is still replying",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "410": {
            "description": "The conversation is closed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "429": {
            "description": "Too many messages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/interview-chat/code": {
      "post": {
        "operationId": "post-{companySlug}-public-interview-chat-code",
        "summary": "POST /api/{companySlug}/public/interview-chat/code — email the candidate a new code.",
        "description": "Anonymous, by chat link token. Only after Marley asked for a code; at most one per minute.",
        "tags": [
          "InterviewChat"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewChatCodeBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatCodeSentApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "429": {
            "description": "Asked too soon",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/interview-chat/timezone": {
      "post": {
        "operationId": "post-{companySlug}-public-interview-chat-timezone",
        "summary": "POST /api/{companySlug}/public/interview-chat/timezone — the timezone Marley shows times in.",
        "description": "Anonymous, by chat link token (INT-982). `detected: true` is the browser's zone on first open and never overrides a zone the candidate picked.",
        "tags": [
          "InterviewChat"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewChatTimezoneBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The conversation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Unknown timezone",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/interview-chat/verify": {
      "post": {
        "operationId": "post-{companySlug}-public-interview-chat-verify",
        "summary": "POST /api/{companySlug}/public/interview-chat/verify — the candidate enters the code emailed to them.",
        "description": "Anonymous, by chat link token. A valid code lets this browser (an httpOnly cookie) reschedule or cancel the booked interview for 30 minutes; anyone else with the link needs their own code. 5 wrong tries lock the code. The code never enters the transcript or reaches the AI.",
        "tags": [
          "InterviewChat"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewChatVerifyBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Wrong code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "410": {
            "description": "Code expired or conversation closed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "429": {
            "description": "Too many wrong tries",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewChatErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews": {
      "get": {
        "operationId": "get-interviews",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobApplicationId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "finalComments": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "finalStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "OFFERED",
                            "ON_HOLD",
                            "REJECTED"
                          ]
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "jobTitle": {
                          "type": "string"
                        },
                        "jobPostingId": {
                          "type": "number"
                        },
                        "jobPostingCountry": {
                          "type": "object"
                        },
                        "humanInterviewAiSummaryDefault": {
                          "type": "boolean"
                        },
                        "assessmentTemplateId": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "hasAIScreeningInterview": {
                          "type": "boolean"
                        },
                        "hasAiPhoneScreeningCall": {
                          "type": "boolean"
                        },
                        "departmentId": {
                          "type": "number"
                        },
                        "email": {
                          "type": "object"
                        },
                        "ScreeningInterview": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "object"
                            }
                          ]
                        },
                        "assessmentTemplate": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "departmentId": {
                                  "type": "object"
                                },
                                "level": {
                                  "type": "string",
                                  "enum": [
                                    "ENTRY",
                                    "MID",
                                    "SENIOR"
                                  ]
                                },
                                "parameterOrder": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  }
                                },
                                "companyId": {
                                  "type": "number"
                                },
                                "AssessmentParameters": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "createdAt",
                                "updatedAt",
                                "name",
                                "departmentId",
                                "level",
                                "parameterOrder",
                                "companyId",
                                "AssessmentParameters"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "finalComments",
                        "finalStatus",
                        "firstName",
                        "lastName",
                        "jobTitle",
                        "jobPostingId",
                        "jobPostingCountry",
                        "humanInterviewAiSummaryDefault",
                        "assessmentTemplateId",
                        "hasAIScreeningInterview",
                        "hasAiPhoneScreeningCall",
                        "departmentId",
                        "email",
                        "ScreeningInterview",
                        "assessmentTemplate"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-interviews",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createInterviewSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "createdAt": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "string",
                              "format": "date-time"
                            }
                          ]
                        },
                        "updatedAt": {
                          "type": "object"
                        },
                        "jobApplicationId": {
                          "type": "object"
                        },
                        "finalComments": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "finalStatus": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "string",
                              "enum": [
                                "OFFERED"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "ON_HOLD"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "REJECTED"
                              ]
                            }
                          ]
                        },
                        "assessmentTemplate": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "departmentId": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "level": {
                                  "type": "string",
                                  "enum": [
                                    "ENTRY",
                                    "MID",
                                    "SENIOR"
                                  ]
                                },
                                "parameterOrder": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  }
                                },
                                "companyId": {
                                  "type": "number"
                                },
                                "AssessmentParameters": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "createdAt",
                                "updatedAt",
                                "name",
                                "departmentId",
                                "level",
                                "parameterOrder",
                                "companyId",
                                "AssessmentParameters"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "assessmentTemplate"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/{id}": {
      "get": {
        "operationId": "get-interviews-{id}",
        "summary": "GET API for fetching Interviews by id",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "finalComments": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "finalStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "OFFERED",
                            "ON_HOLD",
                            "REJECTED"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "finalComments",
                        "finalStatus"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-interviews-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "finalComments": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "finalStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "OFFERED",
                            "ON_HOLD",
                            "REJECTED"
                          ]
                        },
                        "jobPostingId": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "finalComments",
                        "finalStatus",
                        "jobPostingId"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-interviews-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "jobApplicationId": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "jobApplicationId"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/feedback": {
      "get": {
        "operationId": "get-interviews-feedback",
        "summary": "GET API for fetching Interview by panelist",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-interviews-feedback",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/humanInterviewQuestions": {
      "post": {
        "operationId": "post-interviews-humanInterviewQuestions",
        "summary": "POST handler for receiving AI-generated human interview questions from backend.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/pdf": {
      "get": {
        "operationId": "get-interviews-pdf",
        "summary": "GET /api/interviews/pdf?jobApplicationId=… — the Interviews tab's scorecard, panel feedback and AI summaries as a PDF.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobApplicationId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job application whose interview rounds to export"
            },
            "description": "Job application whose interview rounds to export",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewRoundsPdfResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call": {
      "post": {
        "operationId": "post-interviews-screening-call",
        "summary": "POST /api/interviews/screening-call — create (or with `override`, replace) the AI phone screening call of one application.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreeningCallBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "A different number than the one on file",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallErrorSchema"
                }
              }
            }
          },
          "409": {
            "description": "The existing call already started or finished",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "The number to call has no country code or the job's assessment template has no phone screening questions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "in production": {
            "$ref": "#/components/responses/in production"
          },
          "so it can't be replaced": {
            "$ref": "#/components/responses/so it can't be replaced"
          }
        }
      },
      "put": {
        "operationId": "put-interviews-screening-call",
        "summary": "PUT handler to update a ScreeningCall (e.g. status, callEvents, recordingUrl).",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-interviews-screening-call",
        "summary": "DELETE handler to delete/cancel a ScreeningCall.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview": {
      "get": {
        "operationId": "get-interviews-screeningInterview",
        "summary": "GET handler for fetching screening interview information.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-interviews-screeningInterview",
        "summary": "POST handler for bulk screening interview creation.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-interviews-screeningInterview",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interview-rounds/{id}/conversation": {
      "get": {
        "operationId": "get-interview-rounds-{id}-conversation",
        "summary": "GET /api/interview-rounds/{id}/conversation — the candidate's chat with Marley about this round (read-only).",
        "description": "Signed-in users of the round's company with read access to the job's interviews (INT-982). Returns the transcript and, while the chat is open, the link to share with the candidate (e.g. on WhatsApp). 404 when the round has no chat.",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "InterviewRound id"
            },
            "description": "InterviewRound id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "The conversation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewRoundConversationApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "No chat for this round",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewRoundConversationErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/{id}/interviewRound": {
      "post": {
        "operationId": "post-interviews-{id}-interviewRound",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "finalComments": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "finalStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "OFFERED",
                            "ON_HOLD",
                            "REJECTED"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "finalComments",
                        "finalStatus"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-interviews-{id}-interviewRound",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "finalComments": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "finalStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "OFFERED",
                            "ON_HOLD",
                            "REJECTED"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "finalComments",
                        "finalStatus"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/feedback/generate": {
      "post": {
        "operationId": "post-interviews-feedback-generate",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/feedback/transcript": {
      "get": {
        "operationId": "get-interviews-feedback-transcript",
        "summary": "Lightweight GET endpoint for polling transcript and summary availability.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/humanInterviewQuestions/trigger": {
      "post": {
        "operationId": "post-interviews-humanInterviewQuestions-trigger",
        "summary": "POST /api/interviews/humanInterviewQuestions/trigger",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call/bulk": {
      "post": {
        "operationId": "post-interviews-screening-call-bulk",
        "summary": "POST /api/interviews/screening-call/bulk — create and schedule AI phone screening calls for one or many applications.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkScreeningCallBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkScreeningCallApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call/endInterview": {
      "post": {
        "operationId": "post-interviews-screening-call-endInterview",
        "summary": "POST /api/interviews/screening-call/endInterview",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call/lifecycle": {
      "post": {
        "operationId": "post-interviews-screening-call-lifecycle",
        "summary": "POST /api/interviews/screening-call/lifecycle",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreeningCallLifecycleBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/abandon": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-abandon",
        "summary": "Browser hint closer (pagehide / Leave keepalive). Thin wrapper around shared finalize.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/bootstrap": {
      "get": {
        "operationId": "get-interviews-screening-webrtc-bootstrap",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/lifecycle": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-lifecycle",
        "summary": "POST /api/interviews/screening-webrtc/lifecycle",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/network-probe": {
      "get": {
        "operationId": "get-interviews-screening-webrtc-network-probe",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-interviews-screening-webrtc-network-probe",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "413": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "head": {
        "operationId": "head-interviews-screening-webrtc-network-probe",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/offer": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-offer",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/output": {
      "get": {
        "operationId": "get-interviews-screening-webrtc-output",
        "summary": "SSE proxy for the ScreenAI /output endpoint.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "webrtc_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/session": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-session",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/token": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-token",
        "summary": "Mint a short-lived candidate capability JWT for direct browser FastRTC",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "expires_in": {
                      "type": "number"
                    },
                    "expires_at": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "token",
                    "expires_in",
                    "expires_at"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "503": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/interviews/screeningInterview/candidate": {
      "get": {
        "operationId": "get-interviews-screeningInterview-candidate",
        "summary": "GET handler for fetching screening interview details needed for the candidate's browser",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/clientToken": {
      "get": {
        "operationId": "get-interviews-screeningInterview-clientToken",
        "summary": "GET /api/interviews/screeningInterview/clientToken",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "roomToken",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-interviews-screeningInterview-clientToken",
        "summary": "POST /api/interviews/screeningInterview/clientToken",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/dailyRecording": {
      "post": {
        "operationId": "post-interviews-screeningInterview-dailyRecording",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/endInterview": {
      "post": {
        "operationId": "post-interviews-screeningInterview-endInterview",
        "summary": "POST /api/interviews/screeningInterview/endInterview",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/events": {
      "post": {
        "operationId": "post-interviews-screeningInterview-events",
        "summary": "POST /api/interviews/screeningInterview/events",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/fastrtcRecording": {
      "post": {
        "operationId": "post-interviews-screeningInterview-fastrtcRecording",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/fetchDailyRecording": {
      "post": {
        "operationId": "post-interviews-screeningInterview-fetchDailyRecording",
        "summary": "POST /api/interviews/screeningInterview/fetchDailyRecording",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/fix-liveness-status": {
      "post": {
        "operationId": "post-interviews-screeningInterview-fix-liveness-status",
        "summary": "POST handler for fixing liveness verification status based on screening configuration.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/iceServers": {
      "get": {
        "operationId": "get-interviews-screeningInterview-iceServers",
        "summary": "GET /api/interviews/screeningInterview/iceServers",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "502": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/interviews/screeningInterview/proctoring": {
      "get": {
        "operationId": "get-interviews-screeningInterview-proctoring",
        "summary": "GET /api/interviews/screeningInterview/proctoring",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "screeningId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-interviews-screeningInterview-proctoring",
        "summary": "POST /api/interviews/screeningInterview/proctoring",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/remind": {
      "get": {
        "operationId": "get-interviews-screeningInterview-remind",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "interviewId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/speechToken": {
      "get": {
        "operationId": "get-interviews-screeningInterview-speechToken",
        "summary": "GET /api/interviews/screeningInterview/speechToken",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/start": {
      "post": {
        "operationId": "post-interviews-screeningInterview-start",
        "summary": "POST handler for starting a screening interview.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/transitionToStarted": {
      "post": {
        "operationId": "post-interviews-screeningInterview-transitionToStarted",
        "summary": "POST /api/interviews/screeningInterview/transitionToStarted",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/{id}/interviewRound/{interview_round_id}": {
      "put": {
        "operationId": "put-interviews-{id}-interviewRound-{interview_round_id}",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          },
          {
            "name": "interview_round_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: interview_round_id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-interviews-{id}-interviewRound-{interview_round_id}",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          },
          {
            "name": "interview_round_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: interview_round_id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "finalComments": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "finalStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "OFFERED",
                            "ON_HOLD",
                            "REJECTED"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "finalComments",
                        "finalStatus"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call/{id}/questions": {
      "put": {
        "operationId": "put-interviews-screening-call-{id}-questions",
        "summary": "PUT /api/interviews/screening-call/[id]/questions — save the recruiter's edited AI phone screening questions.",
        "description": "Replaces the whole list. Caller must belong to the call's company. 409 once the call has been dialled.",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Screening call id"
            },
            "description": "Screening call id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreeningCallQuestionsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallQuestionsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call/{id}/recording": {
      "get": {
        "operationId": "get-interviews-screening-call-{id}-recording",
        "summary": "GET /api/interviews/screening-call/[id]/recording — short-lived signed URLs for an AI phone screening call's recordings.",
        "description": "Caller must belong to the call's company. One recording per call: an interview a redial continued has",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Screening call id"
            },
            "description": "Screening call id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallRecordingApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/recording/chunk": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-recording-chunk",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/recording/finalize": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-recording-finalize",
        "summary": "Post-flush recording compose. ScreenAI lifecycle (interview_completed / client_end /",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/recording/init": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-recording-init",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/recording/part-url": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-recording-part-url",
        "summary": "Mint a signed PUT URL for one GCS compose part (or Azure unused path).",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/session-log/append": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-session-log-append",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/session-log/finalize": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-session-log-finalize",
        "summary": "Leave-path session-log finalize (Phase 1 dual-write). Prefer ScreenAI lifecycle.",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/clientToken/{id}": {
      "delete": {
        "operationId": "delete-interviews-screeningInterview-clientToken-{id}",
        "summary": "DELETE /api/interviews/screeningInterview/clientToken/[id]",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/identity-check/{id}": {
      "get": {
        "operationId": "get-interviews-screeningInterview-identity-check-{id}",
        "summary": "GET /api/interviews/screeningInterview/identity-check/[id]",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-interviews-screeningInterview-identity-check-{id}",
        "summary": "DELETE /api/interviews/screeningInterview/identity-check/[id]",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/speechToken/{id}": {
      "delete": {
        "operationId": "delete-interviews-screeningInterview-speechToken-{id}",
        "summary": "DELETE /api/interviews/screeningInterview/speechToken/[id]",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screeningInterview/tts/ensure": {
      "post": {
        "operationId": "post-interviews-screeningInterview-tts-ensure",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/{id}/interviewRound/{interview_round_id}/generate-summary": {
      "post": {
        "operationId": "post-interviews-{id}-interviewRound-{interview_round_id}-generate-summary",
        "summary": "POST /api/interviews/interviewRound/endInterview",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          },
          {
            "name": "interview_round_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: interview_round_id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-interviews-{id}-interviewRound-{interview_round_id}-generate-summary",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          },
          {
            "name": "interview_round_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: interview_round_id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "overallScore": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "overallSummary": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "interviewTranscription": {
                          "type": "object"
                        },
                        "aiSummaryStatus": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "FAILED",
                            "PROCESSING",
                            "READY"
                          ]
                        },
                        "interviewRoundId": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "overallScore",
                        "overallSummary",
                        "interviewTranscription",
                        "aiSummaryStatus",
                        "interviewRoundId"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/{id}/interviewRound/{interview_round_id}/panellist": {
      "delete": {
        "operationId": "delete-interviews-{id}-interviewRound-{interview_round_id}-panellist",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          },
          {
            "name": "interview_round_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: interview_round_id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/{id}/interviewRound/{interview_round_id}/ratings": {
      "post": {
        "operationId": "post-interviews-{id}-interviewRound-{interview_round_id}-ratings",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          },
          {
            "name": "interview_round_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: interview_round_id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-call/{id}/recording/fetch": {
      "post": {
        "operationId": "post-interviews-screening-call-{id}-recording-fetch",
        "summary": "POST /api/interviews/screening-call/[id]/recording/fetch — fetch a missing AI phone screening call recording from the provider.",
        "description": "Looks the call's recording up at its telephony provider (Plivo / Twilio) and stores it like the provider's",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Screening call id"
            },
            "description": "Screening call id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallRecordingFetchApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/interviews/screening-webrtc/session/{sessionId}/connect": {
      "post": {
        "operationId": "post-interviews-screening-webrtc-session-{sessionId}-connect",
        "summary": "",
        "description": "",
        "tags": [
          "Interviews"
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: sessionId"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jd-agent/speech-token": {
      "get": {
        "operationId": "get-jd-agent-speech-token",
        "summary": "",
        "description": "",
        "tags": [
          "Jd-agent"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "region": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "region"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jd-agent-backend/stream": {
      "post": {
        "operationId": "post-jd-agent-backend-stream",
        "summary": "",
        "description": "",
        "tags": [
          "Jd-agent-backend"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error",
                    "detail"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/job-application-report/pdf": {
      "get": {
        "operationId": "get-job-application-report-pdf",
        "summary": "GET /api/job-application-report/pdf?jobApplicationId=… — the full candidate report: Overview, AI Rating, Interviews,",
        "description": "",
        "tags": [
          "Job-application-report"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobApplicationId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job application to report on"
            },
            "description": "Job application to report on",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CandidateReportPdfResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications": {
      "get": {
        "operationId": "get-jobApplications",
        "summary": "TODO: Split this handler into smaller, well-named helper functions for maintainability",
        "description": "List job applications — powers the per-job Applications grid and the referrals list. Handles special filtering for AI interview score/status. Free text goes in `filterModel.quickFilterValues`.",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobPostingId",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id — scopes the list to one job and triggers the job-level permission check"
            },
            "description": "Job posting id — scopes the list to one job and triggers the job-level permission check",
            "example": "123"
          },
          {
            "in": "query",
            "name": "refereeEmail",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter to applications whose referral source is this email"
            },
            "description": "Filter to applications whose referral source is this email",
            "example": "example"
          },
          {
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter to a single applicant email"
            },
            "description": "Filter to a single applicant email",
            "example": "user@example.com"
          },
          {
            "in": "query",
            "name": "includeTotal",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Defaults to true when omitted; \"false\" skips the count and returns total: null"
            },
            "description": "Defaults to true when omitted; \"false\" skips the count and returns total: null",
            "example": "true"
          },
          {
            "in": "query",
            "name": "shortlistMode",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", restrict to shortlisted applications"
            },
            "description": "When \"true\", restrict to shortlisted applications",
            "example": "true"
          },
          {
            "in": "query",
            "name": "excludeShortlistedMode",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", exclude shortlisted applications"
            },
            "description": "When \"true\", exclude shortlisted applications",
            "example": "true"
          },
          {
            "in": "query",
            "name": "shortlistRule",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON ShortlistRule used to derive shortlist filter clauses"
            },
            "description": "JSON ShortlistRule used to derive shortlist filter clauses",
            "example": "example"
          },
          {
            "in": "query",
            "name": "paginationModel",
            "required": true,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridPaginationModel {\"page\",\"pageSize\"} — required in practice: the handler dereferences it unconditionally"
            },
            "description": "JSON MUI GridPaginationModel {\"page\",\"pageSize\"} — required in practice: the handler dereferences it unconditionally",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]"
            },
            "description": "JSON MUI GridSortModel array, e.g. [{\"field\":\"createdAt\",\"sort\":\"desc\"}]",
            "example": "example"
          },
          {
            "in": "query",
            "name": "filterModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]), pushed into the full-text search"
            },
            "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]), pushed into the full-text search",
            "example": "example"
          },
          {
            "in": "query",
            "name": "createdAt",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO date — return only applications created on/after this timestamp"
            },
            "description": "ISO date — return only applications created on/after this timestamp",
            "example": "example"
          },
          {
            "in": "query",
            "name": "updatedAt",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO date — return only applications updated on/after this timestamp"
            },
            "description": "ISO date — return only applications updated on/after this timestamp",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated applications (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationsListResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-jobApplications",
        "summary": "POST /api/jobApplications — add applications to a job (recruiter add/bulk upload, talent-pool add-to-job,",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "bulkMode",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "applications": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "totalApplications": {
                      "type": "number"
                    },
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "statusCode": {
                      "type": "number"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "applications",
                    "totalApplications",
                    "success",
                    "statusCode",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-jobApplications",
        "summary": "",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/bulkUpdateJobApplicationsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "message",
                    "count"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/{id}": {
      "get": {
        "operationId": "get-jobApplications-{id}",
        "summary": "GET /api/jobApplications/{id}",
        "description": "One job application with its job posting, candidate details, documents, offer, notes and applicant",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferSlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Approval slug: lets an approver open the application from an approval link"
            },
            "description": "Approval slug: lets an approver open the application from an approval link",
            "example": "example"
          },
          {
            "in": "query",
            "name": "includeParsedJD",
            "required": false,
            "schema": {
              "type": "string",
              "description": "'true' to include the job posting's parsed job description"
            },
            "description": "'true' to include the job posting's parsed job description",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job application id"
            },
            "description": "Job application id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "The application (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationDetailResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "Application or job posting not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationMessageResponseSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-jobApplications-{id}",
        "summary": "/ This is called for resubmitting the jobApplication for backend Processing again.",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "jacdId": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "statusChangeDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "companyId": {
                      "type": "number"
                    },
                    "jobPostingId": {
                      "type": "number"
                    },
                    "applicationType": {
                      "type": "string",
                      "enum": [
                        "CONSULTANT",
                        "DIRECT",
                        "INTERNAL",
                        "REFERRAL"
                      ]
                    },
                    "uploadSource": {
                      "type": "string"
                    },
                    "uploadFileName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "processingAttempts": {
                      "type": "number"
                    },
                    "processingClaimedAt": {
                      "type": "object"
                    },
                    "processingWorkflowId": {
                      "type": "object"
                    },
                    "queueEligible": {
                      "type": "boolean"
                    },
                    "processingQueuedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "currentCompensation": {
                      "type": "number"
                    },
                    "expectedCompensation": {
                      "type": "number"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "score": {
                      "type": "number"
                    },
                    "scoreSummary": {
                      "type": "object"
                    },
                    "isValidResume": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "enum": [
                        false,
                        true
                      ]
                    },
                    "deletedAt": {
                      "type": "object"
                    },
                    "isDeleted": {
                      "type": "boolean"
                    },
                    "appliedBy": {
                      "type": "object"
                    },
                    "sourceId": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "refereeEmployeeId": {
                      "type": "object"
                    },
                    "refereePhone": {
                      "type": "object"
                    },
                    "refereeFirstName": {
                      "type": "object"
                    },
                    "refereeLastName": {
                      "type": "object"
                    },
                    "relationshipToCandidate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "BATCH_MATE",
                        "CO_WORKER",
                        "DONT_KNOW_PERSONALLY",
                        "FAMILY_MEMBER",
                        "FRIEND",
                        "INDUSTRY_COLLEAGUE"
                      ]
                    },
                    "refereeEmail": {
                      "type": "object"
                    },
                    "referralStatus": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "APPROVED",
                        "PENDING_APPROVAL",
                        "REJECTED"
                      ]
                    },
                    "firstName": {
                      "type": "string"
                    },
                    "lastName": {
                      "type": "string"
                    },
                    "email": {
                      "type": "object"
                    },
                    "phone": {
                      "type": "object"
                    },
                    "linkedInUrl": {
                      "type": "object"
                    },
                    "resumeUrl": {
                      "type": "string"
                    },
                    "currentCompany": {
                      "type": "object"
                    },
                    "spokenLanguages": {
                      "type": "object"
                    },
                    "technicalTools": {
                      "type": "object"
                    },
                    "currentDesignation": {
                      "type": "object"
                    },
                    "previousCompaniesTop3": {
                      "type": "object"
                    },
                    "industryExperienceTop3": {
                      "type": "object"
                    },
                    "latestDegree": {
                      "type": "object"
                    },
                    "latestInstitution": {
                      "type": "object"
                    },
                    "yearOfGraduation": {
                      "type": "object"
                    },
                    "yearsOfExperience": {
                      "type": "object"
                    },
                    "location": {
                      "type": "object"
                    },
                    "peopleManagement": {
                      "type": "object"
                    },
                    "noticePeriodInDays": {
                      "type": "object"
                    },
                    "processingStatus": {
                      "type": "string",
                      "enum": [
                        "BASIC_PROFILE_EXTRACTED",
                        "DUPLICATE",
                        "ERROR",
                        "EXTRACT_ACTIVITY",
                        "INIT",
                        "PARSE_PROFILE",
                        "PROCESSED",
                        "QUEUED",
                        "SUBMITTED",
                        "UPDATED_FACTORS",
                        "WORKING"
                      ]
                    },
                    "processingStatusProgress": {
                      "type": "number"
                    },
                    "profileVerified": {
                      "type": "object"
                    },
                    "notes": {
                      "type": "object"
                    },
                    "parsedResume": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "toString": {
                              "type": "object"
                            },
                            "toLocaleString": {
                              "type": "object"
                            },
                            "pop": {
                              "type": "object"
                            },
                            "push": {
                              "type": "object"
                            },
                            "concat": {
                              "type": "object"
                            },
                            "join": {
                              "type": "object"
                            },
                            "reverse": {
                              "type": "object"
                            },
                            "shift": {
                              "type": "object"
                            },
                            "slice": {
                              "type": "object"
                            },
                            "sort": {
                              "type": "object"
                            },
                            "splice": {
                              "type": "object"
                            },
                            "unshift": {
                              "type": "object"
                            },
                            "indexOf": {
                              "type": "object"
                            },
                            "lastIndexOf": {
                              "type": "object"
                            },
                            "every": {
                              "type": "object"
                            },
                            "some": {
                              "type": "object"
                            },
                            "forEach": {
                              "type": "object"
                            },
                            "map": {
                              "type": "object"
                            },
                            "filter": {
                              "type": "object"
                            },
                            "reduce": {
                              "type": "object"
                            },
                            "reduceRight": {
                              "type": "object"
                            },
                            "find": {
                              "type": "object"
                            },
                            "findIndex": {
                              "type": "object"
                            },
                            "fill": {
                              "type": "object"
                            },
                            "copyWithin": {
                              "type": "object"
                            },
                            "__@iterator@209": {
                              "type": "object"
                            },
                            "entries": {
                              "type": "object"
                            },
                            "keys": {
                              "type": "object"
                            },
                            "values": {
                              "type": "object"
                            },
                            "__@unscopables@210": {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "oneOf": [
                                    {
                                      "type": "object"
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        false
                                      ]
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        true
                                      ]
                                    }
                                  ]
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object"
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              }
                            },
                            "includes": {
                              "type": "object"
                            },
                            "flatMap": {
                              "type": "object"
                            },
                            "flat": {
                              "type": "object"
                            },
                            "at": {
                              "type": "object"
                            },
                            "findLast": {
                              "type": "object"
                            },
                            "findLastIndex": {
                              "type": "object"
                            },
                            "toReversed": {
                              "type": "object"
                            },
                            "toSorted": {
                              "type": "object"
                            },
                            "toSpliced": {
                              "type": "object"
                            },
                            "with": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "length",
                            "toString",
                            "toLocaleString",
                            "pop",
                            "push",
                            "concat",
                            "join",
                            "reverse",
                            "shift",
                            "slice",
                            "sort",
                            "splice",
                            "unshift",
                            "indexOf",
                            "lastIndexOf",
                            "every",
                            "some",
                            "forEach",
                            "map",
                            "filter",
                            "reduce",
                            "reduceRight",
                            "find",
                            "findIndex",
                            "fill",
                            "copyWithin",
                            "__@iterator@209",
                            "entries",
                            "keys",
                            "values",
                            "__@unscopables@210",
                            "includes",
                            "flatMap",
                            "flat",
                            "at",
                            "findLast",
                            "findLastIndex",
                            "toReversed",
                            "toSorted",
                            "toSpliced",
                            "with"
                          ]
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "oneOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              {
                                "type": "object"
                              },
                              {
                                "type": "object"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "naukriJobApplicationId": {
                      "type": "object"
                    },
                    "customFields": {
                      "type": "object"
                    },
                    "workshortAssessments": {
                      "type": "object"
                    },
                    "activityHistory": {
                      "type": "object"
                    },
                    "searchableRoleTitles": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "searchableTechnicalSkills": {
                      "type": "object"
                    },
                    "searchableCompanies": {
                      "type": "object"
                    },
                    "searchableLanguages": {
                      "type": "object"
                    },
                    "searchableQualifications": {
                      "type": "object"
                    },
                    "isApproved": {
                      "type": "boolean"
                    },
                    "isShortlisted": {
                      "type": "boolean"
                    },
                    "extractedText": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "jacdId",
                    "createdAt",
                    "updatedAt",
                    "statusChangeDate",
                    "companyId",
                    "jobPostingId",
                    "applicationType",
                    "uploadSource",
                    "uploadFileName",
                    "processingAttempts",
                    "processingClaimedAt",
                    "processingWorkflowId",
                    "queueEligible",
                    "processingQueuedAt",
                    "currentCompensation",
                    "expectedCompensation",
                    "currency",
                    "status",
                    "score",
                    "scoreSummary",
                    "isValidResume",
                    "deletedAt",
                    "isDeleted",
                    "appliedBy",
                    "sourceId",
                    "refereeEmployeeId",
                    "refereePhone",
                    "refereeFirstName",
                    "refereeLastName",
                    "relationshipToCandidate",
                    "refereeEmail",
                    "referralStatus",
                    "firstName",
                    "lastName",
                    "email",
                    "phone",
                    "linkedInUrl",
                    "resumeUrl",
                    "currentCompany",
                    "spokenLanguages",
                    "technicalTools",
                    "currentDesignation",
                    "previousCompaniesTop3",
                    "industryExperienceTop3",
                    "latestDegree",
                    "latestInstitution",
                    "yearOfGraduation",
                    "yearsOfExperience",
                    "location",
                    "peopleManagement",
                    "noticePeriodInDays",
                    "processingStatus",
                    "processingStatusProgress",
                    "profileVerified",
                    "notes",
                    "parsedResume",
                    "naukriJobApplicationId",
                    "customFields",
                    "workshortAssessments",
                    "activityHistory",
                    "searchableRoleTitles",
                    "searchableTechnicalSkills",
                    "searchableCompanies",
                    "searchableLanguages",
                    "searchableQualifications",
                    "isApproved",
                    "isShortlisted",
                    "extractedText",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-jobApplications-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/updateJobApplicationSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "details": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message",
                    "details"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-jobApplications-{id}",
        "summary": "DELETE /api/jobApplications/{id}",
        "description": "Deletes one job application, its JACD candidate-details subtree, and the resume blob when no other application or document references it. Notifies the processing backend and re-dispatches queued applications afterwards.",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job application id"
            },
            "description": "Job application id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete confirmation (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationMessageResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "Application or job posting not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationMessageResponseSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/approve": {
      "put": {
        "operationId": "put-jobApplications-approve",
        "summary": "",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobApplicationSlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/bulk-delete": {
      "post": {
        "operationId": "post-jobApplications-bulk-delete",
        "summary": "",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/bulkDeleteJobApplicationsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "message",
                    "count"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/bulk-reprocess": {
      "post": {
        "operationId": "post-jobApplications-bulk-reprocess",
        "summary": "POST /api/jobApplications/bulk-reprocess",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/bulkReprocessJobApplicationsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/processing": {
      "get": {
        "operationId": "get-jobApplications-processing",
        "summary": "GET /api/jobApplications/processing",
        "description": "Resume-processing workspace rows for a job (unprocessed/failed subset) plus status counts across all its applications — powers the Add Candidates grid.",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobPostingId",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id (required)"
            },
            "description": "Job posting id (required)",
            "example": "123"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "0-based page index (default 0)"
            },
            "description": "0-based page index (default 0)",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Rows per page (default 10, max 100)"
            },
            "description": "Rows per page (default 10, max 100)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridSortModel array — only the first item is applied, and only for the allow-listed fields: fileName, processingStatus, uploadSource, remarks, fileType"
            },
            "description": "JSON MUI GridSortModel array — only the first item is applied, and only for the allow-listed fields: fileName, processingStatus, uploadSource, remarks, fileType",
            "example": "example"
          },
          {
            "in": "query",
            "name": "filterModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridFilterModel — items are matched in memory against the label fields (statusLabel, fileType, uploadSource, fileName)"
            },
            "description": "JSON MUI GridFilterModel — items are matched in memory against the label fields (statusLabel, fileType, uploadSource, fileName)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Case-insensitive substring match over fileName, name, email and statusLabel"
            },
            "description": "Case-insensitive substring match over fileName, name, email and statusLabel",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Workspace page plus counts (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationsProcessingResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/status": {
      "get": {
        "operationId": "get-jobApplications-status",
        "summary": "",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "user@example.com"
          },
          {
            "in": "query",
            "name": "phone",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "jobPostingId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {}
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-jobApplications-status",
        "summary": "",
        "description": "",
        "tags": [
          "JobApplications"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/{id}/applicantHistory": {
      "get": {
        "operationId": "get-jobApplications-{id}-applicantHistory",
        "summary": "GET /api/jobApplications/{id}/applicantHistory",
        "description": "The candidate's other applications and active interview rounds in the same company, matched by the application's email. Returns empty history (still 200) if computing it fails.",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job application id"
            },
            "description": "Job application id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Applicant history (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationApplicantHistoryResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "Job application not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationMessageResponseSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/{id}/conversation-history": {
      "get": {
        "operationId": "get-jobApplications-{id}-conversation-history",
        "summary": "GET /api/jobApplications/[id]/conversation-history — the assistant's WhatsApp conversations with the candidate.",
        "description": "For now, the WhatsApp threads about the application's AI phone screening call (INT-343). Caller must belong",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job application id"
            },
            "description": "Job application id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationConversationHistoryApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApplications/{id}/reprocess": {
      "post": {
        "operationId": "post-jobApplications-{id}-reprocess",
        "summary": "POST /api/jobApplications/{id}/reprocess",
        "description": "Re-queues one application for resume processing — holds resume credits (403 with an ApiError envelope when the plan limit is hit).",
        "tags": [
          "JobApplications"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job application id"
            },
            "description": "Job application id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Queued for processing (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationReprocessResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "Application or job posting not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobApplicationMessageResponseSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApprovers/approve": {
      "get": {
        "operationId": "get-jobApprovers-approve",
        "summary": "",
        "description": "",
        "tags": [
          "JobApprovers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobApprovalSlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jobDescriptionUrl": {
                      "type": "string"
                    },
                    "isApproved": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "jobDescriptionUrl",
                    "isApproved"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-jobApprovers-approve",
        "summary": "",
        "description": "",
        "tags": [
          "JobApprovers"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApprovers/bypass/{id}": {
      "post": {
        "operationId": "post-jobApprovers-bypass-{id}",
        "summary": "POST /api/jobApprovers/bypass/[id]",
        "description": "",
        "tags": [
          "JobApprovers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobApprovers/reminder/{id}": {
      "post": {
        "operationId": "post-jobApprovers-reminder-{id}",
        "summary": "POST /api/jobApprovers/reminder/[id]",
        "description": "",
        "tags": [
          "JobApprovers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jd": {
      "get": {
        "operationId": "get-jd",
        "summary": "GET /api/jd",
        "description": "List job descriptions for the session company. `companyId` in the query is accepted for compatibility but must match the session company.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Company id — when present it must match the session company"
            },
            "description": "Company id — when present it must match the session company",
            "example": "123"
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/JdStatusSchema"
                },
                {
                  "type": "string",
                  "enum": [
                    "all"
                  ]
                }
              ],
              "default": "all",
              "description": "Filter by status; \"all\" (default) excludes archived descriptions"
            },
            "description": "Filter by status; \"all\" (default) excludes archived descriptions",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter by title"
            },
            "description": "Filter by title",
            "example": "example"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "default": "1",
              "description": "One-based page index (default 1)"
            },
            "description": "One-based page index (default 1)",
            "example": 1
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "default": "10",
              "description": "Page size (default 10, max 1000)"
            },
            "description": "Page size (default 10, max 1000)",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated job descriptions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDescriptionsListApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-jd",
        "summary": "POST /api/jd",
        "description": "Create a job description for the session company. `companyId` in the body is accepted for compatibility but must match the session company.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJobDescriptionBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created job description",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDescriptionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jd/{id}": {
      "get": {
        "operationId": "get-jd-{id}",
        "summary": "GET /api/jd/{id}",
        "description": "Fetch a single job description. Public — powers guest create-jd links and the candidate-sharing page. The only company data included is the company-wide header and footer candidates see around the JD (`companyHeader`, `companyFooter`).",
        "tags": [
          "JobDescription"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Accepted for compatibility; ignored — the route is public"
            },
            "description": "Accepted for compatibility; ignored — the route is public",
            "example": "123"
          },
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Accepted for compatibility; ignored — the route is public"
            },
            "description": "Accepted for compatibility; ignored — the route is public",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^c[^\\s-]{8,}$",
              "description": "Job description id"
            },
            "description": "Job description id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Job description detail",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDescriptionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-jd-{id}",
        "summary": "PATCH /api/jd/{id}",
        "description": "Update a job description. Scoped to the session company; a changed `content` re-syncs JD agent state and reprocesses live linked job postings.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^c[^\\s-]{8,}$",
              "description": "Job description id"
            },
            "description": "Job description id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateJobDescriptionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated job description",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDescriptionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-jd-{id}",
        "summary": "DELETE /api/jd/{id}",
        "description": "Delete a job description. Scoped to the session company; 409 while live job postings still reference it.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^c[^\\s-]{8,}$",
              "description": "Job description id"
            },
            "description": "Job description id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted job description id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDescriptionDeleteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jd/extract-text": {
      "get": {
        "operationId": "get-jd-extract-text",
        "summary": "GET /api/jd/extract-text",
        "description": "Extract text from a JD document already in blob storage. `fileUrl` must be a storage object URL.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "fileUrl",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Storage object URL of the document to extract text from"
            },
            "description": "Storage object URL of the document to extract text from",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Extracted document text",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractTextApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-jd-extract-text",
        "summary": "POST /api/jd/extract-text",
        "description": "Extract text from an uploaded JD document (PDF, DOCX, or TXT up to 10 MB). The file signature must match the declared type.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ExtractTextMultipartSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Extracted document text",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractTextApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jd/{id}/linked-jobs": {
      "get": {
        "operationId": "get-jd-{id}-linked-jobs",
        "summary": "GET /api/jd/{id}/linked-jobs",
        "description": "List the live job postings that use a job description (id, title, created date), newest first. Signed-in only and scoped to the session company — the public JD endpoint only exposes the count.",
        "tags": [
          "JobDescription"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^c[^\\s-]{8,}$",
              "description": "Job description id"
            },
            "description": "Job description id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Job postings using the job description",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobDescriptionLinkedJobsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobOpenings/{id}": {
      "patch": {
        "operationId": "patch-jobOpenings-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "JobOpenings"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs": {
      "get": {
        "operationId": "get-jobs",
        "summary": "GET /api/jobs",
        "description": "List job postings for the session company — powers the My Jobs grid. Free-text search goes in `filterModel.searchTerms` and is tokenized server-side.",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "includeJobDetails",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", each row includes Department, Approvers/JobApprovers and a jobApplications subset"
            },
            "description": "When \"true\", each row includes Department, Approvers/JobApprovers and a jobApplications subset",
            "example": "true"
          },
          {
            "in": "query",
            "name": "paginationModel",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/paginationModelParam"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sortModelParam"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "filterModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridFilterModel. Free-text search goes in `searchTerms` (string[]) on the same object — tokenized server-side into title/location/department/email/status matches"
            },
            "description": "JSON MUI GridFilterModel. Free-text search goes in `searchTerms` (string[]) on the same object — tokenized server-side into title/location/department/email/status matches",
            "example": "example"
          },
          {
            "in": "query",
            "name": "externalJobId",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Exact-match filter on the external job id"
            },
            "description": "Exact-match filter on the external job id",
            "example": "123"
          },
          {
            "in": "query",
            "name": "showAnalytics",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", include application-count analytics metrics per job"
            },
            "description": "When \"true\", include application-count analytics metrics per job",
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated job list (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsListResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-jobs",
        "summary": "POST /api/jobs — create a job posting",
        "description": "Signed-in users, or verified backend callers (Marlee) acting for one. The body is validated against the company's JobPosting field config (required fields, options, JD selection, min/max pairs); a 400 lists every field issue in `errors`. Only parsed values are stored.",
        "tags": [
          "Jobs"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJobPostingBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJobPostingApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJobPostingErrorSchema"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "description": "No permission or plan limit reached",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateJobPostingErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}": {
      "get": {
        "operationId": "get-jobs-{id}",
        "summary": "GET /api/jobs/[id]",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Company slug of the signed-in user"
            },
            "description": "Company slug of the signed-in user",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": "123"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-jobs-{id}",
        "summary": "PUT /api/jobs/[id]",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "externalJobId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/updateJobSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-jobs-{id}",
        "summary": "DELETE /api/jobs/[id]",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/bulk-delete": {
      "post": {
        "operationId": "post-jobs-bulk-delete",
        "summary": "",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/bulkDeleteJobPostingsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "message",
                    "count"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/search": {
      "get": {
        "operationId": "get-jobs-search",
        "summary": "",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "departments",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "locations",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "jobType",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "yearsOfExperience",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "jobTitle",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "useNewSearch",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jobs": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "searchMeta": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "query": {
                              "type": "string"
                            },
                            "duration": {
                              "type": "number"
                            },
                            "resultCount": {
                              "type": "number"
                            },
                            "total": {
                              "type": "number"
                            },
                            "searchType": {
                              "type": "string",
                              "enum": [
                                "boolean",
                                "exact",
                                "hybrid",
                                "stemmed"
                              ]
                            },
                            "rerankingApplied": {
                              "type": "boolean"
                            },
                            "error": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "query",
                            "duration",
                            "resultCount",
                            "total",
                            "searchType",
                            "rerankingApplied"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "total": {
                              "type": "object"
                            },
                            "query": {
                              "type": "string"
                            },
                            "duration": {
                              "type": "number"
                            },
                            "resultCount": {
                              "type": "number"
                            },
                            "searchType": {
                              "type": "string"
                            },
                            "rerankingApplied": {
                              "type": "boolean"
                            },
                            "error": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "query",
                            "duration",
                            "resultCount",
                            "searchType",
                            "rerankingApplied",
                            "error"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "jobs",
                    "searchMeta"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/activity": {
      "get": {
        "operationId": "get-jobs-{id}-activity",
        "summary": "GET /api/jobs/[id]/activity — the job's activity log, newest first.",
        "description": "Merged at read time from posting, position and application activity history and the posting's approvals. Cursor-paginated (`cursor` / `nextCursor`, not page/pageSize — the feed has no stable offsets). Requires the JOB_ACTIVITY_TAB feature flag. Session callers need read access to the job; M2M callers are checked for tenancy only, like GET /api/jobs/[id].",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Opaque `nextCursor` from the previous page; omit for the newest page"
            },
            "description": "Opaque `nextCursor` from the previous page; omit for the newest page",
            "example": "example"
          },
          {
            "in": "query",
            "name": "limit",
            "required": true,
            "schema": {
              "default": 50,
              "description": "Events per page (max 100)",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Events per page (max 100)",
            "example": 1
          },
          {
            "in": "query",
            "name": "categories",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma-separated categories to include (JOB, APPROVAL, POSITION, CANDIDATE); omit for all"
            },
            "description": "Comma-separated categories to include (JOB, APPROVAL, POSITION, CANDIDATE); omit for all",
            "example": "example"
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Matches candidate name, person name or email, and comments"
            },
            "description": "Matches candidate name, person name or email, and comments",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobActivityApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/candidate-matching": {
      "get": {
        "operationId": "get-jobs-{id}-candidate-matching",
        "summary": "GET /api/jobs/[id]/candidate-matching",
        "description": "Hybrid vector + filter search of the talent pool for a job — powers the Talent Matching grid. Free text goes in `filterModel.quickFilterValues`.",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Max rows to return, 1–1000 (default 50)"
            },
            "description": "Max rows to return, 1–1000 (default 50)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Row offset, ≥ 0 — superseded by paginationModel (default 0)"
            },
            "description": "Row offset, ≥ 0 — superseded by paginationModel (default 0)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "maxCandidates",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Candidate pool size scanned by the vector search, 1–1000 (default 50)"
            },
            "description": "Candidate pool size scanned by the vector search, 1–1000 (default 50)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "experienceFilter",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Minimum years of experience, 0–20 (default 0)"
            },
            "description": "Minimum years of experience, 0–20 (default 0)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "roleSimilarityThreshold",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d*\\.?\\d+$",
              "description": "Role similarity threshold, 0–1 (default 0.5)"
            },
            "description": "Role similarity threshold, 0–1 (default 0.5)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "useStandardRolesOnly",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Restrict matching to standardized roles (default false)"
            },
            "description": "Restrict matching to standardized roles (default false)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "useExactWords",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Exact-word matching (default false)"
            },
            "description": "Exact-word matching (default false)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "useLocationFilter",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Apply location matching (default false)"
            },
            "description": "Apply location matching (default false)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "useSummaryMatch",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Include summary-match scoring (default false)"
            },
            "description": "Include summary-match scoring (default false)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "useDomainFilter",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "Apply domain filtering (default false)"
            },
            "description": "Apply domain filtering (default false)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "minStarRating",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d*\\.?\\d*$",
              "description": "Minimum displayed star rating, 0–5; empty/omitted means no floor"
            },
            "description": "Minimum displayed star rating, 0–5; empty/omitted means no floor",
            "example": "example"
          },
          {
            "in": "query",
            "name": "minCandidatePoolSize",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Lower bound for the adaptive candidate pool, 1–1000 (default 150)"
            },
            "description": "Lower bound for the adaptive candidate pool, 1–1000 (default 150)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "minRoleSimilarityThreshold",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d*\\.?\\d+$",
              "description": "Floor when the role threshold relaxes, 0–1 (default 0.65)"
            },
            "description": "Floor when the role threshold relaxes, 0–1 (default 0.65)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "thresholdRelaxationStep",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d*\\.?\\d+$",
              "description": "Step by which the role threshold relaxes per pass, 0–1 (default 0.1)"
            },
            "description": "Step by which the role threshold relaxes per pass, 0–1 (default 0.1)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "ivfflatProbes",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "pgvector ivfflat probes, 1–100 (default 10)"
            },
            "description": "pgvector ivfflat probes, 1–100 (default 10)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "refreshCache",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "description": "When \"true\", forces regeneration of the cached match list (one-shot — not part of the grid query key)"
            },
            "description": "When \"true\", forces regeneration of the cached match list (one-shot — not part of the grid query key)",
            "example": "true"
          },
          {
            "in": "query",
            "name": "shortlistRule",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON ShortlistRule applied to the talent pool. An empty string suppresses the job's default rule; omitted = job default"
            },
            "description": "JSON ShortlistRule applied to the talent pool. An empty string suppresses the job's default rule; omitted = job default",
            "example": "example"
          },
          {
            "in": "query",
            "name": "paginationModel",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/paginationModelParam"
                }
              ],
              "description": "JSON MUI GridPaginationModel {\"page\",\"pageSize\"} — drives limit/offset"
            },
            "description": "JSON MUI GridPaginationModel {\"page\",\"pageSize\"} — drives limit/offset",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sortModelParam"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "filterModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]), joined into the FTS predicate"
            },
            "description": "JSON MUI GridFilterModel; free text goes in `quickFilterValues` (string[]), joined into the FTS predicate",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked candidate matches (raw body, not ApiResponse)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobCandidateMatchingResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "Job or company not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/locations": {
      "get": {
        "operationId": "get-jobs-{id}-locations",
        "summary": "GET /api/jobs/[id]/locations",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "locations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "locations"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/status": {
      "patch": {
        "operationId": "patch-jobs-{id}-status",
        "summary": "PATCH /api/jobs/[id]/status",
        "description": "",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/updateStatusSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/shortlist-rule/affected-candidates": {
      "get": {
        "operationId": "get-jobs-{id}-shortlist-rule-affected-candidates",
        "summary": "GET /api/jobs/[id]/shortlist-rule/affected-candidates — shortlisted candidates a new rule would demote",
        "description": "Used by the job edit form to confirm before saving stricter auto-shortlist criteria.",
        "tags": [
          "Jobs"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "newRule",
            "required": true,
            "schema": {
              "type": "string",
              "description": "JSON ShortlistRule"
            },
            "description": "JSON ShortlistRule",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Count of candidates that would be demoted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffectedCandidatesResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid job id or rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AffectedCandidatesResponseSchema"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/marlee/command": {
      "post": {
        "operationId": "post-marlee-command",
        "summary": "",
        "description": "",
        "tags": [
          "Marlee"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "504": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/marlee/session": {
      "post": {
        "operationId": "post-marlee-session",
        "summary": "",
        "description": "",
        "tags": [
          "Marlee"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "object"
                    },
                    "companyId": {
                      "type": "object"
                    },
                    "userId": {
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "sessionId",
                    "companyId",
                    "userId",
                    "createdAt"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/marlee/session/{sessionId}": {
      "delete": {
        "operationId": "delete-marlee-session-{sessionId}",
        "summary": "",
        "description": "",
        "tags": [
          "Marlee"
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: sessionId"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/metrics": {
      "get": {
        "operationId": "get-metrics",
        "summary": "",
        "description": "",
        "tags": [
          "Metrics"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/metrics/statusChange": {
      "get": {
        "operationId": "get-metrics-statusChange",
        "summary": "",
        "description": "",
        "tags": [
          "Metrics"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/naukriJob": {
      "post": {
        "operationId": "post-naukriJob",
        "summary": "",
        "description": "",
        "tags": [
          "NaukriJob"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/notes": {
      "get": {
        "operationId": "get-notes",
        "summary": "",
        "description": "",
        "tags": [
          "Notes"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-notes",
        "summary": "",
        "description": "",
        "tags": [
          "Notes"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/notes/{id}": {
      "put": {
        "operationId": "put-notes-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Notes"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-notes-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Notes"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/notes/by-email": {
      "get": {
        "operationId": "get-notes-by-email",
        "summary": "",
        "description": "",
        "tags": [
          "Notes"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/notifications": {
      "get": {
        "operationId": "get-notifications",
        "summary": "GET /api/notifications — the signed-in user's notifications, or (with `unreadCount=true`) the unread count and",
        "description": "",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "unreadCount",
            "required": false,
            "schema": {
              "type": "string",
              "description": "`true` returns only the unread count and the latest unread notification, not the list"
            },
            "description": "`true` returns only the unread count and the latest unread notification, not the list",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "No email on the session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-notifications",
        "summary": "PUT /api/notifications — marks one notification (`notificationId`) or all of the user's notifications read.",
        "description": "",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "notificationId",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Marks just this notification read; omitted marks all of them read"
            },
            "description": "Marks just this notification read; omitted marks all of them read",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsMessageResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "No email on the session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "404": {
            "description": "Notification not found for this user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/notifications/{id}": {
      "delete": {
        "operationId": "delete-notifications-{id}",
        "summary": "DELETE /api/notifications/{id} — deletes one of the signed-in user's notifications.",
        "description": "",
        "tags": [
          "Notifications"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Notification id"
            },
            "description": "Notification id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsMessageResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "No email on the session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "403": {
            "description": "Not the recipient",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "404": {
            "description": "Notification not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationsErrorResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/offers": {
      "get": {
        "operationId": "get-offers",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobApplicationId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "jobOfferId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "token",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "jobApplicationId": {
                      "type": "number"
                    },
                    "jobOpeningId": {
                      "type": "number"
                    },
                    "startDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "isAccepted": {
                      "type": "boolean"
                    },
                    "jobOfferSlug": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "travelAllowance": {
                      "type": "string"
                    },
                    "totalCompensation": {
                      "type": "string"
                    },
                    "isApproved": {
                      "type": "boolean"
                    },
                    "isValidated": {
                      "type": "boolean"
                    },
                    "offerDocumentUrl": {
                      "type": "object"
                    },
                    "activityLog": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "toString": {
                              "type": "object"
                            },
                            "toLocaleString": {
                              "type": "object"
                            },
                            "pop": {
                              "type": "object"
                            },
                            "push": {
                              "type": "object"
                            },
                            "concat": {
                              "type": "object"
                            },
                            "join": {
                              "type": "object"
                            },
                            "reverse": {
                              "type": "object"
                            },
                            "shift": {
                              "type": "object"
                            },
                            "slice": {
                              "type": "object"
                            },
                            "sort": {
                              "type": "object"
                            },
                            "splice": {
                              "type": "object"
                            },
                            "unshift": {
                              "type": "object"
                            },
                            "indexOf": {
                              "type": "object"
                            },
                            "lastIndexOf": {
                              "type": "object"
                            },
                            "every": {
                              "type": "object"
                            },
                            "some": {
                              "type": "object"
                            },
                            "forEach": {
                              "type": "object"
                            },
                            "map": {
                              "type": "object"
                            },
                            "filter": {
                              "type": "object"
                            },
                            "reduce": {
                              "type": "object"
                            },
                            "reduceRight": {
                              "type": "object"
                            },
                            "find": {
                              "type": "object"
                            },
                            "findIndex": {
                              "type": "object"
                            },
                            "fill": {
                              "type": "object"
                            },
                            "copyWithin": {
                              "type": "object"
                            },
                            "__@iterator@209": {
                              "type": "object"
                            },
                            "entries": {
                              "type": "object"
                            },
                            "keys": {
                              "type": "object"
                            },
                            "values": {
                              "type": "object"
                            },
                            "__@unscopables@210": {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "oneOf": [
                                    {
                                      "type": "object"
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        false
                                      ]
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        true
                                      ]
                                    }
                                  ]
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object"
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              }
                            },
                            "includes": {
                              "type": "object"
                            },
                            "flatMap": {
                              "type": "object"
                            },
                            "flat": {
                              "type": "object"
                            },
                            "at": {
                              "type": "object"
                            },
                            "findLast": {
                              "type": "object"
                            },
                            "findLastIndex": {
                              "type": "object"
                            },
                            "toReversed": {
                              "type": "object"
                            },
                            "toSorted": {
                              "type": "object"
                            },
                            "toSpliced": {
                              "type": "object"
                            },
                            "with": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "length",
                            "toString",
                            "toLocaleString",
                            "pop",
                            "push",
                            "concat",
                            "join",
                            "reverse",
                            "shift",
                            "slice",
                            "sort",
                            "splice",
                            "unshift",
                            "indexOf",
                            "lastIndexOf",
                            "every",
                            "some",
                            "forEach",
                            "map",
                            "filter",
                            "reduce",
                            "reduceRight",
                            "find",
                            "findIndex",
                            "fill",
                            "copyWithin",
                            "__@iterator@209",
                            "entries",
                            "keys",
                            "values",
                            "__@unscopables@210",
                            "includes",
                            "flatMap",
                            "flat",
                            "at",
                            "findLast",
                            "findLastIndex",
                            "toReversed",
                            "toSorted",
                            "toSpliced",
                            "with"
                          ]
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "oneOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              {
                                "type": "object"
                              },
                              {
                                "type": "object"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "comments": {
                      "type": "object"
                    },
                    "customFields": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "jobApplicationId",
                    "jobOpeningId",
                    "startDate",
                    "isAccepted",
                    "jobOfferSlug",
                    "travelAllowance",
                    "totalCompensation",
                    "isApproved",
                    "isValidated",
                    "offerDocumentUrl",
                    "activityLog",
                    "comments",
                    "customFields"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-offers",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createJobOfferSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-offers",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createJobOfferSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "jobApplicationId": {
                      "type": "number"
                    },
                    "jobOpeningId": {
                      "type": "number"
                    },
                    "startDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "isAccepted": {
                      "type": "boolean"
                    },
                    "jobOfferSlug": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "travelAllowance": {
                      "type": "string"
                    },
                    "totalCompensation": {
                      "type": "string"
                    },
                    "isApproved": {
                      "type": "boolean"
                    },
                    "isValidated": {
                      "type": "boolean"
                    },
                    "offerDocumentUrl": {
                      "type": "object"
                    },
                    "activityLog": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "toString": {
                              "type": "object"
                            },
                            "toLocaleString": {
                              "type": "object"
                            },
                            "pop": {
                              "type": "object"
                            },
                            "push": {
                              "type": "object"
                            },
                            "concat": {
                              "type": "object"
                            },
                            "join": {
                              "type": "object"
                            },
                            "reverse": {
                              "type": "object"
                            },
                            "shift": {
                              "type": "object"
                            },
                            "slice": {
                              "type": "object"
                            },
                            "sort": {
                              "type": "object"
                            },
                            "splice": {
                              "type": "object"
                            },
                            "unshift": {
                              "type": "object"
                            },
                            "indexOf": {
                              "type": "object"
                            },
                            "lastIndexOf": {
                              "type": "object"
                            },
                            "every": {
                              "type": "object"
                            },
                            "some": {
                              "type": "object"
                            },
                            "forEach": {
                              "type": "object"
                            },
                            "map": {
                              "type": "object"
                            },
                            "filter": {
                              "type": "object"
                            },
                            "reduce": {
                              "type": "object"
                            },
                            "reduceRight": {
                              "type": "object"
                            },
                            "find": {
                              "type": "object"
                            },
                            "findIndex": {
                              "type": "object"
                            },
                            "fill": {
                              "type": "object"
                            },
                            "copyWithin": {
                              "type": "object"
                            },
                            "__@iterator@209": {
                              "type": "object"
                            },
                            "entries": {
                              "type": "object"
                            },
                            "keys": {
                              "type": "object"
                            },
                            "values": {
                              "type": "object"
                            },
                            "__@unscopables@210": {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "oneOf": [
                                    {
                                      "type": "object"
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        false
                                      ]
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        true
                                      ]
                                    }
                                  ]
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object"
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              }
                            },
                            "includes": {
                              "type": "object"
                            },
                            "flatMap": {
                              "type": "object"
                            },
                            "flat": {
                              "type": "object"
                            },
                            "at": {
                              "type": "object"
                            },
                            "findLast": {
                              "type": "object"
                            },
                            "findLastIndex": {
                              "type": "object"
                            },
                            "toReversed": {
                              "type": "object"
                            },
                            "toSorted": {
                              "type": "object"
                            },
                            "toSpliced": {
                              "type": "object"
                            },
                            "with": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "length",
                            "toString",
                            "toLocaleString",
                            "pop",
                            "push",
                            "concat",
                            "join",
                            "reverse",
                            "shift",
                            "slice",
                            "sort",
                            "splice",
                            "unshift",
                            "indexOf",
                            "lastIndexOf",
                            "every",
                            "some",
                            "forEach",
                            "map",
                            "filter",
                            "reduce",
                            "reduceRight",
                            "find",
                            "findIndex",
                            "fill",
                            "copyWithin",
                            "__@iterator@209",
                            "entries",
                            "keys",
                            "values",
                            "__@unscopables@210",
                            "includes",
                            "flatMap",
                            "flat",
                            "at",
                            "findLast",
                            "findLastIndex",
                            "toReversed",
                            "toSorted",
                            "toSpliced",
                            "with"
                          ]
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "oneOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              {
                                "type": "object"
                              },
                              {
                                "type": "object"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "comments": {
                      "type": "object"
                    },
                    "customFields": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "jobApplicationId",
                    "jobOpeningId",
                    "startDate",
                    "isAccepted",
                    "jobOfferSlug",
                    "travelAllowance",
                    "totalCompensation",
                    "isApproved",
                    "isValidated",
                    "offerDocumentUrl",
                    "activityLog",
                    "comments",
                    "customFields"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/accept": {
      "put": {
        "operationId": "put-offers-accept",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "accepted",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/approve": {
      "get": {
        "operationId": "get-offers-approve",
        "summary": "GET: Fetch offer/application data by jobOfferSlug (public - for approval page)",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferSlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "JobOffer": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "isApproved": {
                          "type": "boolean"
                        },
                        "offerDocumentUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "JobOfferDocuments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "object"
                              },
                              "createdAt": {
                                "type": "object"
                              },
                              "updatedAt": {
                                "type": "object"
                              },
                              "jobOfferId": {
                                "type": "object"
                              },
                              "offerDocumentUrl": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "createdAt",
                              "updatedAt",
                              "jobOfferId",
                              "offerDocumentUrl"
                            ]
                          }
                        },
                        "customFields": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "id",
                        "isApproved",
                        "offerDocumentUrl",
                        "JobOfferDocuments",
                        "customFields"
                      ]
                    },
                    "JobApplication": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "email": {
                          "type": "object"
                        },
                        "phone": {
                          "type": "object"
                        },
                        "location": {
                          "type": "object"
                        },
                        "currentCompensation": {
                          "type": "number"
                        },
                        "expectedCompensation": {
                          "type": "number"
                        },
                        "noticePeriodInDays": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "yearsOfExperience": {
                          "type": "object"
                        },
                        "status": {
                          "type": "string"
                        },
                        "customFields": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                true
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "type": "number"
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object",
                                  "properties": {
                                    "length": {
                                      "oneOf": [
                                        {
                                          "type": "object"
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            false
                                          ]
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            true
                                          ]
                                        }
                                      ]
                                    },
                                    "toString": {
                                      "type": "object"
                                    },
                                    "toLocaleString": {
                                      "type": "object"
                                    },
                                    "pop": {
                                      "type": "object"
                                    },
                                    "push": {
                                      "type": "object"
                                    },
                                    "concat": {
                                      "type": "object"
                                    },
                                    "join": {
                                      "type": "object"
                                    },
                                    "reverse": {
                                      "type": "object"
                                    },
                                    "shift": {
                                      "type": "object"
                                    },
                                    "slice": {
                                      "type": "object"
                                    },
                                    "sort": {
                                      "type": "object"
                                    },
                                    "splice": {
                                      "type": "object"
                                    },
                                    "unshift": {
                                      "type": "object"
                                    },
                                    "indexOf": {
                                      "type": "object"
                                    },
                                    "lastIndexOf": {
                                      "type": "object"
                                    },
                                    "every": {
                                      "type": "object"
                                    },
                                    "some": {
                                      "type": "object"
                                    },
                                    "forEach": {
                                      "type": "object"
                                    },
                                    "map": {
                                      "type": "object"
                                    },
                                    "filter": {
                                      "type": "object"
                                    },
                                    "reduce": {
                                      "type": "object"
                                    },
                                    "reduceRight": {
                                      "type": "object"
                                    },
                                    "find": {
                                      "type": "object"
                                    },
                                    "findIndex": {
                                      "type": "object"
                                    },
                                    "fill": {
                                      "type": "object"
                                    },
                                    "copyWithin": {
                                      "type": "object"
                                    },
                                    "__@iterator@209": {
                                      "type": "object"
                                    },
                                    "entries": {
                                      "type": "object"
                                    },
                                    "keys": {
                                      "type": "object"
                                    },
                                    "values": {
                                      "type": "object"
                                    },
                                    "__@unscopables@210": {
                                      "type": "object"
                                    },
                                    "includes": {
                                      "type": "object"
                                    },
                                    "flatMap": {
                                      "type": "object"
                                    },
                                    "flat": {
                                      "type": "object"
                                    },
                                    "at": {
                                      "type": "object"
                                    },
                                    "findLast": {
                                      "type": "object"
                                    },
                                    "findLastIndex": {
                                      "type": "object"
                                    },
                                    "toReversed": {
                                      "type": "object"
                                    },
                                    "toSorted": {
                                      "type": "object"
                                    },
                                    "toSpliced": {
                                      "type": "object"
                                    },
                                    "with": {
                                      "type": "object"
                                    }
                                  }
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              },
                              "required": [
                                "length",
                                "toString",
                                "toLocaleString",
                                "pop",
                                "push",
                                "concat",
                                "join",
                                "reverse",
                                "shift",
                                "slice",
                                "sort",
                                "splice",
                                "unshift",
                                "indexOf",
                                "lastIndexOf",
                                "every",
                                "some",
                                "forEach",
                                "map",
                                "filter",
                                "reduce",
                                "reduceRight",
                                "find",
                                "findIndex",
                                "fill",
                                "copyWithin",
                                "__@iterator@209",
                                "entries",
                                "keys",
                                "values",
                                "__@unscopables@210",
                                "includes",
                                "flatMap",
                                "flat",
                                "at",
                                "findLast",
                                "findLastIndex",
                                "toReversed",
                                "toSorted",
                                "toSpliced",
                                "with"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      false
                                    ]
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      true
                                    ]
                                  },
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "object"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "firstName",
                        "lastName",
                        "email",
                        "phone",
                        "location",
                        "currentCompensation",
                        "expectedCompensation",
                        "noticePeriodInDays",
                        "yearsOfExperience",
                        "status",
                        "customFields"
                      ]
                    },
                    "JobPosting": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "companyId": {
                          "type": "number"
                        },
                        "deletedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "isDeleted": {
                          "type": "boolean"
                        },
                        "ownerUserId": {
                          "type": "object"
                        },
                        "hiringManagerUserId": {
                          "type": "object"
                        },
                        "hiringManagerEmail": {
                          "type": "string"
                        },
                        "recruiterEmail": {
                          "type": "string"
                        },
                        "jobDescriptionId": {
                          "type": "object"
                        },
                        "title": {
                          "type": "string"
                        },
                        "interviewerEmail": {
                          "type": "object"
                        },
                        "departmentId": {
                          "type": "number"
                        },
                        "level": {
                          "type": "string"
                        },
                        "location": {
                          "type": "string"
                        },
                        "ogImageUrl": {
                          "type": "object"
                        },
                        "ogImageSourceHash": {
                          "type": "object"
                        },
                        "country": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "internalOnly": {
                          "type": "boolean"
                        },
                        "relocationSupport": {
                          "type": "boolean"
                        },
                        "employmentType": {
                          "type": "string",
                          "enum": [
                            "FULL_TIME",
                            "INTERNSHIP",
                            "PART_TIME",
                            "TRAINEE"
                          ]
                        },
                        "educationalRequirements": {
                          "type": "object"
                        },
                        "minWorkExperience": {
                          "type": "number"
                        },
                        "minSalaryExpectation": {
                          "type": "object"
                        },
                        "maxSalaryExpectation": {
                          "type": "object"
                        },
                        "preferredTargetEducation": {
                          "type": "object"
                        },
                        "preferredTargetOrganizations": {
                          "type": "object"
                        },
                        "newOrReplacement": {
                          "type": "string"
                        },
                        "processingStatus": {
                          "type": "string",
                          "enum": [
                            "BASIC_PROFILE_EXTRACTED",
                            "DUPLICATE",
                            "ERROR",
                            "EXTRACT_ACTIVITY",
                            "INIT",
                            "PARSE_PROFILE",
                            "PROCESSED",
                            "QUEUED",
                            "SUBMITTED",
                            "UPDATED_FACTORS",
                            "WORKING"
                          ]
                        },
                        "processingStatusProgress": {
                          "type": "number"
                        },
                        "visibility": {
                          "type": "string",
                          "enum": [
                            "HIDDEN",
                            "INTERNAL_ONLY",
                            "VISIBLE_EXTERNALLY"
                          ]
                        },
                        "parsedJobDescription": {
                          "type": "object"
                        },
                        "candidateProfile": {
                          "type": "object"
                        },
                        "screeningInterviewFocusArea": {
                          "type": "object"
                        },
                        "externalJobId": {
                          "type": "object"
                        },
                        "integrationJobId": {
                          "type": "object"
                        },
                        "isApproved": {
                          "type": "boolean"
                        },
                        "naukriJobId": {
                          "type": "object"
                        },
                        "naukriJobUrl": {
                          "type": "object"
                        },
                        "assessmentTemplateId": {
                          "type": "object"
                        },
                        "phoneScreeningConfig": {
                          "type": "object"
                        },
                        "customFields": {
                          "type": "object"
                        },
                        "activityHistory": {
                          "type": "object"
                        },
                        "screeningConfig": {
                          "type": "object"
                        },
                        "extractedText": {
                          "type": "object"
                        },
                        "searchableContent": {
                          "type": "object"
                        },
                        "lastSearchIndexUpdate": {
                          "type": "object"
                        },
                        "positionHoldComments": {
                          "type": "object"
                        },
                        "positionClosedComments": {
                          "type": "object"
                        },
                        "searchableStandardizedRoles": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "functionalDomains": {
                          "type": "object"
                        },
                        "jobDescriptionUrl": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "companyId",
                        "deletedAt",
                        "isDeleted",
                        "ownerUserId",
                        "hiringManagerUserId",
                        "hiringManagerEmail",
                        "recruiterEmail",
                        "jobDescriptionId",
                        "title",
                        "interviewerEmail",
                        "departmentId",
                        "level",
                        "location",
                        "ogImageUrl",
                        "ogImageSourceHash",
                        "country",
                        "currency",
                        "internalOnly",
                        "relocationSupport",
                        "employmentType",
                        "educationalRequirements",
                        "minWorkExperience",
                        "minSalaryExpectation",
                        "maxSalaryExpectation",
                        "preferredTargetEducation",
                        "preferredTargetOrganizations",
                        "newOrReplacement",
                        "processingStatus",
                        "processingStatusProgress",
                        "visibility",
                        "parsedJobDescription",
                        "candidateProfile",
                        "screeningInterviewFocusArea",
                        "externalJobId",
                        "integrationJobId",
                        "isApproved",
                        "naukriJobId",
                        "naukriJobUrl",
                        "assessmentTemplateId",
                        "phoneScreeningConfig",
                        "customFields",
                        "activityHistory",
                        "screeningConfig",
                        "extractedText",
                        "searchableContent",
                        "lastSearchIndexUpdate",
                        "positionHoldComments",
                        "positionClosedComments",
                        "searchableStandardizedRoles",
                        "functionalDomains",
                        "jobDescriptionUrl"
                      ]
                    },
                    "location": {
                      "type": "string"
                    },
                    "CandidateDocuments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "object"
                          },
                          "documentUrl": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "object"
                          },
                          "updatedAt": {
                            "type": "object"
                          },
                          "documentType": {
                            "type": "object"
                          },
                          "fileName": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "id",
                          "documentUrl",
                          "createdAt",
                          "updatedAt",
                          "documentType",
                          "fileName"
                        ]
                      }
                    },
                    "resumeUrl": {
                      "type": "object"
                    },
                    "InterviewDetails": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "number"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "jobApplicationId": {
                            "type": "number"
                          },
                          "finalComments": {
                            "type": "object"
                          },
                          "finalStatus": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "OFFERED",
                              "ON_HOLD",
                              "REJECTED"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "jobApplicationId",
                          "finalComments",
                          "finalStatus"
                        ]
                      }
                    },
                    "Company": {
                      "type": "object",
                      "properties": {}
                    },
                    "Department": {
                      "type": "object",
                      "properties": {}
                    }
                  },
                  "required": [
                    "JobOffer",
                    "JobApplication",
                    "JobPosting",
                    "location",
                    "CandidateDocuments",
                    "resumeUrl",
                    "InterviewDetails",
                    "Company",
                    "Department"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-offers-approve",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferSlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/documents": {
      "put": {
        "operationId": "put-offers-documents",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "jobApplicationId": {
                          "type": "number"
                        },
                        "jobOpeningId": {
                          "type": "number"
                        },
                        "startDate": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "isAccepted": {
                          "type": "boolean"
                        },
                        "jobOfferSlug": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "travelAllowance": {
                          "type": "string"
                        },
                        "totalCompensation": {
                          "type": "string"
                        },
                        "isApproved": {
                          "type": "boolean"
                        },
                        "isValidated": {
                          "type": "boolean"
                        },
                        "offerDocumentUrl": {
                          "type": "object"
                        },
                        "activityLog": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                true
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "type": "number"
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object",
                                  "properties": {
                                    "length": {
                                      "oneOf": [
                                        {
                                          "type": "object"
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            false
                                          ]
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            true
                                          ]
                                        }
                                      ]
                                    },
                                    "toString": {
                                      "type": "object"
                                    },
                                    "toLocaleString": {
                                      "type": "object"
                                    },
                                    "pop": {
                                      "type": "object"
                                    },
                                    "push": {
                                      "type": "object"
                                    },
                                    "concat": {
                                      "type": "object"
                                    },
                                    "join": {
                                      "type": "object"
                                    },
                                    "reverse": {
                                      "type": "object"
                                    },
                                    "shift": {
                                      "type": "object"
                                    },
                                    "slice": {
                                      "type": "object"
                                    },
                                    "sort": {
                                      "type": "object"
                                    },
                                    "splice": {
                                      "type": "object"
                                    },
                                    "unshift": {
                                      "type": "object"
                                    },
                                    "indexOf": {
                                      "type": "object"
                                    },
                                    "lastIndexOf": {
                                      "type": "object"
                                    },
                                    "every": {
                                      "type": "object"
                                    },
                                    "some": {
                                      "type": "object"
                                    },
                                    "forEach": {
                                      "type": "object"
                                    },
                                    "map": {
                                      "type": "object"
                                    },
                                    "filter": {
                                      "type": "object"
                                    },
                                    "reduce": {
                                      "type": "object"
                                    },
                                    "reduceRight": {
                                      "type": "object"
                                    },
                                    "find": {
                                      "type": "object"
                                    },
                                    "findIndex": {
                                      "type": "object"
                                    },
                                    "fill": {
                                      "type": "object"
                                    },
                                    "copyWithin": {
                                      "type": "object"
                                    },
                                    "__@iterator@209": {
                                      "type": "object"
                                    },
                                    "entries": {
                                      "type": "object"
                                    },
                                    "keys": {
                                      "type": "object"
                                    },
                                    "values": {
                                      "type": "object"
                                    },
                                    "__@unscopables@210": {
                                      "type": "object"
                                    },
                                    "includes": {
                                      "type": "object"
                                    },
                                    "flatMap": {
                                      "type": "object"
                                    },
                                    "flat": {
                                      "type": "object"
                                    },
                                    "at": {
                                      "type": "object"
                                    },
                                    "findLast": {
                                      "type": "object"
                                    },
                                    "findLastIndex": {
                                      "type": "object"
                                    },
                                    "toReversed": {
                                      "type": "object"
                                    },
                                    "toSorted": {
                                      "type": "object"
                                    },
                                    "toSpliced": {
                                      "type": "object"
                                    },
                                    "with": {
                                      "type": "object"
                                    }
                                  }
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              },
                              "required": [
                                "length",
                                "toString",
                                "toLocaleString",
                                "pop",
                                "push",
                                "concat",
                                "join",
                                "reverse",
                                "shift",
                                "slice",
                                "sort",
                                "splice",
                                "unshift",
                                "indexOf",
                                "lastIndexOf",
                                "every",
                                "some",
                                "forEach",
                                "map",
                                "filter",
                                "reduce",
                                "reduceRight",
                                "find",
                                "findIndex",
                                "fill",
                                "copyWithin",
                                "__@iterator@209",
                                "entries",
                                "keys",
                                "values",
                                "__@unscopables@210",
                                "includes",
                                "flatMap",
                                "flat",
                                "at",
                                "findLast",
                                "findLastIndex",
                                "toReversed",
                                "toSorted",
                                "toSpliced",
                                "with"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      false
                                    ]
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      true
                                    ]
                                  },
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "object"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        "comments": {
                          "type": "object"
                        },
                        "customFields": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "jobApplicationId",
                        "jobOpeningId",
                        "startDate",
                        "isAccepted",
                        "jobOfferSlug",
                        "travelAllowance",
                        "totalCompensation",
                        "isApproved",
                        "isValidated",
                        "offerDocumentUrl",
                        "activityLog",
                        "comments",
                        "customFields"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/remind": {
      "post": {
        "operationId": "post-offers-remind",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/request-documents": {
      "post": {
        "operationId": "post-offers-request-documents",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/send": {
      "post": {
        "operationId": "post-offers-send",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/send-for-approval": {
      "post": {
        "operationId": "post-offers-send-for-approval",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobOfferId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/offers/upload-documents/{id}": {
      "get": {
        "operationId": "get-offers-upload-documents-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "success",
                    "documents"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-offers-upload-documents-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "success",
                    "documents"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-offers-upload-documents-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Offers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "documentType": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "documentType"
                        ]
                      }
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "documents"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/og/apply": {
      "get": {
        "operationId": "get-og-apply",
        "summary": "Job share image. Redirects to the pre-rendered PNG in the static bucket (rendering and storing it",
        "description": "",
        "tags": [
          "Og"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/og/company": {
      "get": {
        "operationId": "get-og-company",
        "summary": "Career-page share image. Redirects to the pre-rendered PNG in the static bucket (rendering and",
        "description": "",
        "tags": [
          "Og"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "307": {
            "description": "Redirect response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/og/default": {
      "get": {
        "operationId": "get-og-default",
        "summary": "",
        "description": "",
        "tags": [
          "Og"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/complete-checkout": {
      "post": {
        "operationId": "post-onboarding-complete-checkout",
        "summary": "POST /api/onboarding/complete-checkout",
        "description": "Complete paid signup provisioning from a Stripe Checkout session id.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/onboardingCompleteCheckoutBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Provisioned company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingCompleteCheckoutApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/complete-signup": {
      "post": {
        "operationId": "post-onboarding-complete-signup",
        "summary": "POST /api/onboarding/complete-signup",
        "description": "Verify OTP and create the Auth0 account for self-service signup.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/onboardingSignupCompleteSchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Account created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDraftApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/org": {
      "patch": {
        "operationId": "patch-onboarding-org",
        "summary": "PATCH /api/onboarding/org — set company name, slug, and logo on draft.",
        "description": "Save organization details on the active signup draft.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/onboardingOrgBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated draft",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDraftApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/plans": {
      "get": {
        "operationId": "get-onboarding-plans",
        "summary": "GET /api/onboarding/plans — public active + public billing plans.",
        "description": "List active public billing plans available for self-service signup.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Public plans",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingPlansApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/select-plan": {
      "post": {
        "operationId": "post-onboarding-select-plan",
        "summary": "POST /api/onboarding/select-plan",
        "description": "Select a public plan; freemium provisions immediately, paid starts Stripe Checkout.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/onboardingSelectPlanBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Provisioned draft or checkout session",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingSelectPlanApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/signup": {
      "post": {
        "operationId": "post-onboarding-signup",
        "summary": "POST /api/onboarding/signup",
        "description": "Start self-service signup and send an email verification code.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/onboardingSignupStartSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification code sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingSignupStartApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/status": {
      "get": {
        "operationId": "get-onboarding-status",
        "summary": "GET /api/onboarding/status — current draft for the logged-in Auth0 user.",
        "description": "Return the active signup draft for the authenticated user.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current draft",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDraftApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/upload-logo": {
      "post": {
        "operationId": "post-onboarding-upload-logo",
        "summary": "POST /api/onboarding/upload-logo",
        "description": "Upload a company logo during onboarding (multipart form).",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/onboardingUploadLogoMultipartSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Uploaded logo URL",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingUploadLogoApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/verify-code": {
      "post": {
        "operationId": "post-onboarding-verify-code",
        "summary": "POST /api/onboarding/verify-code",
        "description": "Verify the 6-digit signup email OTP for the active draft.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/onboardingVerifyCodeBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified draft",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDraftApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/onboarding/verify-status": {
      "get": {
        "operationId": "get-onboarding-verify-status",
        "summary": "GET /api/onboarding/verify-status — return draft verification status from DB.",
        "description": "Return email verification status for the active signup draft.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Verification status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingDraftApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-onboarding-verify-status",
        "summary": "POST /api/onboarding/verify-status — resend verification code email.",
        "description": "Resend the signup email verification code.",
        "tags": [
          "Onboarding"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Resend result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingVerifyStatusResendApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/permissions": {
      "post": {
        "operationId": "post-permissions",
        "summary": "",
        "description": "",
        "tags": [
          "Permissions"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "allowed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "allowed"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/config": {
      "get": {
        "operationId": "get-{companySlug}-public-career-config",
        "summary": "GET /api/{companySlug}/public/career/config — what the public career pages render about a company.",
        "description": "Anonymous; resolved by the slug only, never the session. Logo, career flags, theme, the JobApplication form config and job field labels for the career list, job apply and talent-pool apply pages.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Career page config",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerConfigApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Company not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerConfigErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/departments": {
      "get": {
        "operationId": "get-{companySlug}-public-career-departments",
        "summary": "GET /api/{companySlug}/public/career/departments",
        "description": "List all departments for a company's public career page filters.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Departments for company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerDepartmentsResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Company not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerDepartmentsNotFoundSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/jobs": {
      "get": {
        "operationId": "get-{companySlug}-public-career-jobs",
        "summary": "GET /api/{companySlug}/public/career/jobs",
        "description": "List externally visible jobs for a company's public career page. Supports pagination, filters, XML feed, and all=true for full export.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "paginationModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON pagination model, e.g. {\"page\":0,\"pageSize\":10}"
            },
            "description": "JSON pagination model, e.g. {\"page\":0,\"pageSize\":10}",
            "example": "example"
          },
          {
            "in": "query",
            "name": "sortModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON sort model array"
            },
            "description": "JSON sort model array",
            "example": "example"
          },
          {
            "in": "query",
            "name": "filterModel",
            "required": false,
            "schema": {
              "type": "string",
              "description": "JSON filter model with items and optional searchTerms"
            },
            "description": "JSON filter model with items and optional searchTerms",
            "example": "example"
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Set to application/xml for LinkedIn feed"
            },
            "description": "Set to application/xml for LinkedIn feed",
            "example": "example"
          },
          {
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string",
              "description": "When true, returns all jobs (career page feed consumers)"
            },
            "description": "When true, returns all jobs (career page feed consumers)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "description": "Zero-based page; with plain params the JSON models are ignored",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Zero-based page; with plain params the JSON models are ignored",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "description": "Page size (default 10)",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Page size (default 10)",
            "example": 1
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Free-text search (title, department, location, job id)"
            },
            "description": "Free-text search (title, department, location, job id)",
            "example": "example"
          },
          {
            "in": "query",
            "name": "departmentId",
            "required": false,
            "schema": {
              "description": "Filter by department id",
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Filter by department id",
            "example": 123
          },
          {
            "in": "query",
            "name": "location",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter by location (contains)"
            },
            "description": "Filter by location (contains)",
            "example": "example"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated job list",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobsListResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Career page or LinkedIn feed not enabled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/jobs/{id}": {
      "get": {
        "operationId": "get-{companySlug}-public-career-jobs-{id}",
        "summary": "GET /api/{companySlug}/public/career/jobs/{id}",
        "description": "Fetch a single public job for the apply flow. Job must belong to the company in the path. Includes the company-wide JD header and footer (`companyHeader`, `companyFooter`).",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Job posting",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobDetailSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Job or company not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobNotFoundSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/talent-pool/applications": {
      "post": {
        "operationId": "post-{companySlug}-public-career-talent-pool-applications",
        "summary": "POST /api/{companySlug}/public/career/talent-pool/applications — join the company's talent pool without a job.",
        "description": "Anonymous; a signed-in member of the company (or SuperAdmin) is recorded as the candidate's `appliedBy`. Only when the company's career page and the CAREER_TALENT_POOL_APPLY flag are on. Creates a talent-pool candidate (or updates the company's candidate with the same email, else phone) and queues resume processing. The response never says whether the candidate already existed. Rate-limited per IP.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCareerTalentPoolApplicationBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Application received",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolApplicationApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid body or resume",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolApplicationErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Talent-pool apply is not open for this company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolApplicationErrorSchema"
                }
              }
            }
          },
          "429": {
            "description": "Too many applications",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolApplicationErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/talent-pool/upload-url": {
      "get": {
        "operationId": "get-{companySlug}-public-career-talent-pool-upload-url",
        "summary": "GET /api/{companySlug}/public/career/talent-pool/upload-url — signed upload URL for the public talent-pool apply page.",
        "description": "Anonymous. Only when the company's career page and the CAREER_TALENT_POOL_APPLY flag are on; documents only (resume / attachment types), the server picks the object name under the company's folder, URLs expire in 10 minutes, and requests share the per-IP public upload rate limit.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "fileExtension",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "File extension, e.g. pdf, docx"
            },
            "description": "File extension, e.g. pdf, docx",
            "example": "example"
          },
          {
            "in": "query",
            "name": "contentType",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional Content-Type constraint for the signed upload credential"
            },
            "description": "Optional Content-Type constraint for the signed upload credential",
            "example": "example"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Signed upload credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolUploadUrlResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or file type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolUploadUrlErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Talent-pool apply is not open for this company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolUploadUrlErrorSchema"
                }
              }
            }
          },
          "429": {
            "description": "Too many upload requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerTalentPoolUploadUrlErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/{companySlug}/public/career/jobs/{id}/applications": {
      "post": {
        "operationId": "post-{companySlug}-public-career-jobs-{id}-applications",
        "summary": "POST /api/{companySlug}/public/career/jobs/{id}/applications — apply to a public job (signed out).",
        "description": "Anonymous; a signed-in member of the company (or SuperAdmin) is recorded as `appliedBy`. The posting must belong to the slug's company, be approved and visible (externally or internal-only, as on the public job page) and processed. The resume (and intro video, if any) must be files the public upload endpoint minted for this company. Rate-limited per IP.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Public job posting id"
            },
            "description": "Public job posting id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCareerJobApplicationBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Application received",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobApplicationApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobApplicationErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Job not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobApplicationErrorSchema"
                }
              }
            }
          },
          "409": {
            "description": "Duplicate application submitted concurrently",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobApplicationErrorSchema"
                }
              }
            }
          },
          "429": {
            "description": "Too many applications",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobApplicationErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "resume": {
            "$ref": "#/components/responses/resume"
          },
          "posting not open": {
            "$ref": "#/components/responses/posting not open"
          },
          "or already applied": {
            "$ref": "#/components/responses/or already applied"
          }
        }
      }
    },
    "/{companySlug}/public/career/jobs/{id}/upload-url": {
      "get": {
        "operationId": "get-{companySlug}-public-career-jobs-{id}-upload-url",
        "summary": "GET /api/{companySlug}/public/career/jobs/{id}/upload-url — signed upload URL for the public apply page.",
        "description": "Anonymous. Only for a job that is publicly open (same rules as the public job detail); the server picks the object name under the company's folder, only resume/attachment and intro-video file types are allowed, URLs expire in 10 minutes, and requests are rate-limited per IP.",
        "tags": [
          "PublicCareer"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "introVideo"
              ],
              "description": "document (resume / attachment, default) or introVideo"
            },
            "description": "document (resume / attachment, default) or introVideo",
            "example": "document"
          },
          {
            "in": "query",
            "name": "fileExtension",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "File extension, e.g. pdf, docx, mp4"
            },
            "description": "File extension, e.g. pdf, docx, mp4",
            "example": "example"
          },
          {
            "in": "query",
            "name": "contentType",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional Content-Type constraint for the signed upload credential"
            },
            "description": "Optional Content-Type constraint for the signed upload credential",
            "example": "example"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Public job posting id"
            },
            "description": "Public job posting id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Signed upload credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobUploadUrlResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or file type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobUploadUrlErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Job not found or not public",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobUploadUrlErrorSchema"
                }
              }
            }
          },
          "429": {
            "description": "Too many upload requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCareerJobUploadUrlErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reach-out": {
      "post": {
        "operationId": "post-reach-out",
        "summary": "",
        "description": "",
        "tags": [
          "Reach-out"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reach-out/slot-booking": {
      "post": {
        "operationId": "post-reach-out-slot-booking",
        "summary": "",
        "description": "",
        "tags": [
          "Reach-out"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reach-out/check": {
      "post": {
        "operationId": "post-reach-out-check",
        "summary": "POST /api/reach-out/check — check reach-out email content before sending.",
        "description": "Rule-based spam, phishing and scam checks on the recruiter's subject and body (INT-1127). The same check runs again when the reach-out is sent.",
        "tags": [
          "ReachOut"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReachOutCheckBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Check result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReachOutCheckApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid subject or body",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReachOutCheckErrorSchema"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReachOutCheckErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reach-out/preview": {
      "get": {
        "operationId": "get-reach-out-preview",
        "summary": "GET /api/reach-out/preview — defaults for the reach-out email step.",
        "description": "The sender choices, a prefilled subject, message and closing (plain text with {{placeholders}}; the rest of the reach-out template is fixed), and the job's values for them (INT-1127). The company comes from the session.",
        "tags": [
          "ReachOut"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobPostingId",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "description": "Job posting the reach-out is for"
            },
            "description": "Job posting the reach-out is for",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Reach-out email defaults",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReachOutPreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReachOutPreviewErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Job not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReachOutPreviewErrorSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/recordings/{recordingId}": {
      "get": {
        "operationId": "get-recordings-{recordingId}",
        "summary": "GET /api/recordings/[recordingId]",
        "description": "",
        "tags": [
          "Recordings"
        ],
        "parameters": [
          {
            "name": "recordingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: recordingId"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/rekognition/create-session": {
      "post": {
        "operationId": "post-rekognition-create-session",
        "summary": "POST handler for creating a Face Liveness Session (Phase 2).",
        "description": "",
        "tags": [
          "Rekognition"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/rekognition/get-results/{sessionId}": {
      "get": {
        "operationId": "get-rekognition-get-results-{sessionId}",
        "summary": "GET handler for retrieving Face Liveness Session Results (Phase 2).",
        "description": "",
        "tags": [
          "Rekognition"
        ],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: sessionId"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reports/execute": {
      "post": {
        "operationId": "post-reports-execute",
        "summary": "",
        "description": "",
        "tags": [
          "Reports"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reports/ta-tracker": {
      "get": {
        "operationId": "get-reports-ta-tracker",
        "summary": "",
        "description": "",
        "tags": [
          "Reports"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/reports/config/{companyId}": {
      "get": {
        "operationId": "get-reports-config-{companyId}",
        "summary": "",
        "description": "",
        "tags": [
          "Reports"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: companyId"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "companySlug": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "globalSettings": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "timezone": {
                              "type": "string"
                            },
                            "dateFormat": {
                              "type": "string"
                            },
                            "numberFormat": {
                              "oneOf": [
                                {
                                  "type": "object"
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "locale": {
                                      "type": "string"
                                    },
                                    "currency": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "locale",
                                    "currency"
                                  ]
                                }
                              ]
                            },
                            "theme": {
                              "oneOf": [
                                {
                                  "type": "object"
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "primaryColor": {
                                      "type": "string"
                                    },
                                    "secondaryColor": {
                                      "type": "string"
                                    },
                                    "chartColors": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "primaryColor",
                                    "secondaryColor",
                                    "chartColors"
                                  ]
                                }
                              ]
                            }
                          },
                          "required": [
                            "timezone",
                            "dateFormat"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "version",
                    "companySlug",
                    "enabled",
                    "pages"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-reports-config-{companyId}",
        "summary": "",
        "description": "",
        "tags": [
          "Reports"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: companyId"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reportConfigSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/screening-report/pdf": {
      "post": {
        "operationId": "post-screening-report-pdf",
        "summary": "POST /api/screening-report/pdf — generate the AI interview or AI phone screening report PDF.",
        "description": "",
        "tags": [
          "Screening-report"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreeningReportPdfRequestSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningReportPdfResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/send-email": {
      "post": {
        "operationId": "post-send-email",
        "summary": "",
        "description": "",
        "tags": [
          "Send-email"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates": {
      "get": {
        "operationId": "get-jobs-{id}-sourced-candidates",
        "summary": "GET /api/jobs/[id]/sourced-candidates — a job's Sourced list (the Sourced table).",
        "description": "People added from the sourcing extension, newest first. Same access as the job's Applications tab;",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": true,
            "schema": {
              "default": 0,
              "description": "0-based page",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "0-based page",
            "example": 1
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": true,
            "schema": {
              "default": 25,
              "description": "The Sourced tab loads up to 500 at once",
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            },
            "description": "The Sourced tab loads up to 500 at once",
            "example": 1
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Name, email, headline, company, role or location"
            },
            "description": "Name, email, headline, company, role or location",
            "example": "example"
          },
          {
            "in": "query",
            "name": "archived",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "false",
              "description": "true lists the archived people instead"
            },
            "description": "true lists the archived people instead",
            "example": "true"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidatesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}": {
      "patch": {
        "operationId": "patch-jobs-{id}-sourced-candidates-{sourcedCandidateId}",
        "summary": "PATCH /api/jobs/[id]/sourced-candidates/[sourcedCandidateId] — mark contacted, or archive / restore.",
        "description": "A later status (invited, applied, moved) is kept when marking contacted.",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobSourcedCandidateUpdateBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-jobs-{id}-sourced-candidates-{sourcedCandidateId}",
        "summary": "DELETE /api/jobs/[id]/sourced-candidates/[sourcedCandidateId] — remove the person from the job's Sourced list.",
        "description": "Permanent, with the comments that were only on their Sourced row. An application they already have",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidateDeleteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}/invite-drafts": {
      "post": {
        "operationId": "post-jobs-{id}-sourced-candidates-{sourcedCandidateId}-invite-drafts",
        "summary": "POST /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/invite-drafts — AI draft inviting this person to apply.",
        "description": "One message (email, LinkedIn connection note or InMail) from the stored profile and the job. Nothing is",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobSourcedCandidateInviteDraftBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidateInviteDraftApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}/invite-emails": {
      "post": {
        "operationId": "post-jobs-{id}-sourced-candidates-{sourcedCandidateId}-invite-emails",
        "summary": "POST /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/invite-emails — email this person an invite to apply.",
        "description": "intalent.ai sends the recruiter-approved message with the job ID and an apply button to the job's",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobSourcedCandidateInviteEmailBodySchema"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Email queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidateInviteEmailApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}/move": {
      "post": {
        "operationId": "post-jobs-{id}-sourced-candidates-{sourcedCandidateId}-move",
        "summary": "POST /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/move — move this person to the job's Applications.",
        "description": "intalent.ai builds a resume PDF from the stored profile and creates the application, queued for the",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "responses": {
          "201": {
            "description": "Application created and queued for processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidateMoveApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}/notes": {
      "get": {
        "operationId": "get-jobs-{id}-sourced-candidates-{sourcedCandidateId}-notes",
        "summary": "GET /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/notes — comments on a sourced person, newest first.",
        "description": "Same access as the job's Applications tab.",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcedCandidateNotesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-jobs-{id}-sourced-candidates-{sourcedCandidateId}-notes",
        "summary": "POST /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/notes — add a comment on a sourced person.",
        "description": "Signed with the session user. Once they are in Applications it shows on their application too.",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcedCandidateNoteBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Comment added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcedCandidateNoteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}/invite-emails/preview": {
      "post": {
        "operationId": "post-jobs-{id}-sourced-candidates-{sourcedCandidateId}-invite-emails-preview",
        "summary": "POST /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/invite-emails/preview — the invite email exactly as it would be sent.",
        "description": "Nothing is sent.",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobSourcedCandidateInviteEmailPreviewBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobSourcedCandidateInviteEmailPreviewApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/jobs/{id}/sourced-candidates/{sourcedCandidateId}/notes/{noteId}": {
      "patch": {
        "operationId": "patch-jobs-{id}-sourced-candidates-{sourcedCandidateId}-notes-{noteId}",
        "summary": "PATCH /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/notes/[noteId] — edit a comment's text.",
        "description": "Only comments on this person in this job; 404 otherwise.",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          },
          {
            "in": "path",
            "name": "noteId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcedCandidateNoteBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcedCandidateNoteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "delete": {
        "operationId": "delete-jobs-{id}-sourced-candidates-{sourcedCandidateId}-notes-{noteId}",
        "summary": "DELETE /api/jobs/[id]/sourced-candidates/[sourcedCandidateId]/notes/[noteId] — delete a comment.",
        "description": "Only comments on this person in this job; 404 otherwise.",
        "tags": [
          "SourcedCandidate"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Job posting id"
            },
            "description": "Job posting id",
            "example": 123
          },
          {
            "in": "path",
            "name": "sourcedCandidateId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "123"
          },
          {
            "in": "path",
            "name": "noteId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcedCandidateNoteDeleteApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/sourcing/extract": {
      "post": {
        "operationId": "post-sourcing-extract",
        "summary": "POST /api/sourcing/extract — candidate fields from a captured profile page.",
        "description": "Used by the inTalent Chrome extension. Runs one LLM extraction on the page text and returns the",
        "tags": [
          "Sourcing"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcingExtractBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Extracted profile and duplicate matches",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingExtractApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/sourcing/jobs": {
      "get": {
        "operationId": "get-sourcing-jobs",
        "summary": "GET /api/sourcing/jobs — open jobs the sourcing extension can add a candidate to.",
        "description": "Newest approved, visible, processed jobs in the signed-in recruiter's company, plus the company slug the",
        "tags": [
          "Sourcing"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Open jobs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingJobsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/sourcing/sourced-candidates": {
      "post": {
        "operationId": "post-sourcing-sourced-candidates",
        "summary": "POST /api/sourcing/sourced-candidates — add a person from the sourcing extension to a job's Sourced list.",
        "description": "Nothing is processed: no resume, no workflow, no credits. The recruiter invites them or moves them to",
        "tags": [
          "Sourcing"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcingSourcedCandidateBodySchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Added to Sourced",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingSourcedCandidateApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/sse-test": {
      "get": {
        "operationId": "get-sse-test",
        "summary": "Test API endpoint to send SSE_TEST_EVENT to all connected users",
        "description": "",
        "tags": [
          "Sse-test"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "testData": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "timestamp": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "timestamp"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "message",
                    "testData"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/sse-v2": {
      "get": {
        "operationId": "get-sse-v2",
        "summary": "SSE route handler for real-time notifications",
        "description": "",
        "tags": [
          "Sse-v2"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/storage/access": {
      "get": {
        "operationId": "get-storage-access",
        "summary": "GET /api/storage/access — signed read URL for a file the signed-in user may see.",
        "description": "Signed-in only. The file must be in one of our storage buckets and, when its path names a company (`{companySlug}/…`), the user must be a member of that company (SuperAdmins may read any). Public pages receive signed URLs from their own slug/token-scoped endpoints instead.",
        "tags": [
          "Storage"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "fileUrl",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Existing object URL to mint a short-lived signed read/access URL for"
            },
            "description": "Existing object URL to mint a short-lived signed read/access URL for",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Signed access URL",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageAccessResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Missing or unparsable fileUrl",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageAccessErrorMessageSchema"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageAccessErrorMessageSchema"
                }
              }
            }
          },
          "403": {
            "description": "File belongs to another company or bucket",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageAccessErrorMessageSchema"
                }
              }
            }
          },
          "404": {
            "description": "File URL not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageAccessErrorMessageSchema"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected storage or server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageAccessErrorMessageSchema"
                }
              }
            }
          }
        }
      }
    },
    "/storage/upload": {
      "get": {
        "operationId": "get-storage-upload",
        "summary": "GET /api/storage/upload — signed upload URL for a signed-in member of the company.",
        "description": "The server chooses the object (`demodocs/{companySlug}/…`); callers only pass the company, kind and file extension. Anonymous uploads (public apply page) use `/api/{companySlug}/public/career/jobs/{id}/upload-url`.",
        "tags": [
          "Storage"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company the file belongs to — the signed-in user must be a member"
            },
            "description": "Company the file belongs to — the signed-in user must be a member",
            "example": "example"
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "document",
                "introVideo"
              ],
              "description": "Upload kind (default document); intro videos go to the company temp folder"
            },
            "description": "Upload kind (default document); intro videos go to the company temp folder",
            "example": "document"
          },
          {
            "in": "query",
            "name": "fileExtension",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "File extension, e.g. pdf, docx, mp4 — the server picks the object name"
            },
            "description": "File extension, e.g. pdf, docx, mp4 — the server picks the object name",
            "example": "example"
          },
          {
            "in": "query",
            "name": "contentType",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional Content-Type constraint for the signed upload credential"
            },
            "description": "Optional Content-Type constraint for the signed upload credential",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Signed upload credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUploadCredentialResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters or file type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUploadErrorMessageSchema"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUploadErrorMessageSchema"
                }
              }
            }
          },
          "403": {
            "description": "Not a member of the company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUploadErrorMessageSchema"
                }
              }
            }
          },
          "404": {
            "description": "Company not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUploadErrorMessageSchema"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/candidate": {
      "post": {
        "operationId": "post-temporal-candidate",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/cheat-detection-config": {
      "get": {
        "operationId": "get-temporal-cheat-detection-config",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/communication-status": {
      "post": {
        "operationId": "post-temporal-communication-status",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/hi_questions": {
      "get": {
        "operationId": "get-temporal-hi_questions",
        "summary": "GET /api/temporal/hi_questions?job_application_id={id}",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "job_application_id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job_application": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "extracted_text": {
                          "type": "string"
                        },
                        "company_id": {
                          "type": "number"
                        },
                        "job_posting_id": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "extracted_text",
                        "company_id",
                        "job_posting_id"
                      ]
                    },
                    "job_posting": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "extracted_text": {
                          "type": "string"
                        },
                        "assessment_template_id": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "extracted_text",
                        "assessment_template_id"
                      ]
                    },
                    "assessment_parameters": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "prior_feedback": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "job_application",
                    "job_posting",
                    "assessment_parameters",
                    "prior_feedback"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/integrations": {
      "get": {
        "operationId": "get-temporal-integrations",
        "summary": "GET /api/temporal/integrations?companyId=123&type=whatsapp[&integrationId=…]",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "integrationId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "serviceName",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "companyId": {
                      "type": "number"
                    },
                    "requestedCompanyId": {
                      "type": "number"
                    },
                    "resolvedFromDefault": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": "string"
                    },
                    "providerName": {
                      "type": "string"
                    },
                    "serviceName": {
                      "type": "string"
                    },
                    "encryptedSecret": {
                      "type": "string"
                    },
                    "encryptionKeyVersion": {
                      "type": "number"
                    },
                    "metadata": {
                      "type": "object"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "lastVerifiedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "lastUsedAt": {
                      "type": "object"
                    },
                    "expiresAt": {
                      "type": "object"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "companyId",
                    "requestedCompanyId",
                    "resolvedFromDefault",
                    "type",
                    "providerName",
                    "serviceName",
                    "encryptedSecret",
                    "encryptionKeyVersion",
                    "metadata",
                    "isActive",
                    "lastVerifiedAt",
                    "lastUsedAt",
                    "expiresAt",
                    "createdAt",
                    "updatedAt"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "details": {
                      "type": "object",
                      "properties": {
                        "requestedCompanyId": {
                          "type": "number"
                        },
                        "resolvedCompanyId": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "type": {
                          "type": "string"
                        },
                        "providerName": {
                          "oneOf": [
                            {
                              "type": "object"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "integrationId": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "requestedCompanyId",
                        "resolvedCompanyId",
                        "type",
                        "providerName",
                        "integrationId"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "details"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/screening-call": {
      "get": {
        "operationId": "get-temporal-screening-call",
        "summary": "GET /api/temporal/screening-call?id={screening_call_id}",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "interviewId": {
                      "type": "number"
                    },
                    "jobApplicationId": {
                      "type": "number"
                    },
                    "candidatePhoneNumber": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "scheduledAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "candidateTimezone": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "AWAITING_CANDIDATE",
                        "COMPLETED",
                        "DECLINED",
                        "FAILED",
                        "INIT",
                        "IN_PROGRESS",
                        "RESCHEDULED",
                        "RESULT_COMPLETED",
                        "RESULT_IN_PROGRESS",
                        "SCHEDULED"
                      ]
                    },
                    "currentAttemptId": {
                      "type": "object"
                    },
                    "attemptNumber": {
                      "type": "number"
                    },
                    "rescheduleCount": {
                      "type": "number"
                    },
                    "voicemailRetryCount": {
                      "type": "number"
                    },
                    "voicemailAttemptsRemaining": {
                      "type": "number"
                    },
                    "previousAttempts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "outcome": {
                            "type": "object"
                          },
                          "reason": {
                            "type": "object"
                          },
                          "scheduledAt": {
                            "type": "object"
                          },
                          "at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "outcome",
                          "reason",
                          "scheduledAt",
                          "at"
                        ]
                      }
                    },
                    "isUserQuestionsGenerated": {
                      "type": "boolean"
                    },
                    "isAiQuestionsGenerated": {
                      "type": "boolean"
                    },
                    "questions": {
                      "type": "object"
                    },
                    "screeningConfig": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "length": {
                              "type": "number"
                            },
                            "toString": {
                              "type": "object"
                            },
                            "toLocaleString": {
                              "type": "object"
                            },
                            "pop": {
                              "type": "object"
                            },
                            "push": {
                              "type": "object"
                            },
                            "concat": {
                              "type": "object"
                            },
                            "join": {
                              "type": "object"
                            },
                            "reverse": {
                              "type": "object"
                            },
                            "shift": {
                              "type": "object"
                            },
                            "slice": {
                              "type": "object"
                            },
                            "sort": {
                              "type": "object"
                            },
                            "splice": {
                              "type": "object"
                            },
                            "unshift": {
                              "type": "object"
                            },
                            "indexOf": {
                              "type": "object"
                            },
                            "lastIndexOf": {
                              "type": "object"
                            },
                            "every": {
                              "type": "object"
                            },
                            "some": {
                              "type": "object"
                            },
                            "forEach": {
                              "type": "object"
                            },
                            "map": {
                              "type": "object"
                            },
                            "filter": {
                              "type": "object"
                            },
                            "reduce": {
                              "type": "object"
                            },
                            "reduceRight": {
                              "type": "object"
                            },
                            "find": {
                              "type": "object"
                            },
                            "findIndex": {
                              "type": "object"
                            },
                            "fill": {
                              "type": "object"
                            },
                            "copyWithin": {
                              "type": "object"
                            },
                            "__@iterator@209": {
                              "type": "object"
                            },
                            "entries": {
                              "type": "object"
                            },
                            "keys": {
                              "type": "object"
                            },
                            "values": {
                              "type": "object"
                            },
                            "__@unscopables@210": {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "oneOf": [
                                    {
                                      "type": "object"
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        false
                                      ]
                                    },
                                    {
                                      "type": "boolean",
                                      "enum": [
                                        true
                                      ]
                                    }
                                  ]
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object"
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              }
                            },
                            "includes": {
                              "type": "object"
                            },
                            "flatMap": {
                              "type": "object"
                            },
                            "flat": {
                              "type": "object"
                            },
                            "at": {
                              "type": "object"
                            },
                            "findLast": {
                              "type": "object"
                            },
                            "findLastIndex": {
                              "type": "object"
                            },
                            "toReversed": {
                              "type": "object"
                            },
                            "toSorted": {
                              "type": "object"
                            },
                            "toSpliced": {
                              "type": "object"
                            },
                            "with": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "length",
                            "toString",
                            "toLocaleString",
                            "pop",
                            "push",
                            "concat",
                            "join",
                            "reverse",
                            "shift",
                            "slice",
                            "sort",
                            "splice",
                            "unshift",
                            "indexOf",
                            "lastIndexOf",
                            "every",
                            "some",
                            "forEach",
                            "map",
                            "filter",
                            "reduce",
                            "reduceRight",
                            "find",
                            "findIndex",
                            "fill",
                            "copyWithin",
                            "__@iterator@209",
                            "entries",
                            "keys",
                            "values",
                            "__@unscopables@210",
                            "includes",
                            "flatMap",
                            "flat",
                            "at",
                            "findLast",
                            "findLastIndex",
                            "toReversed",
                            "toSorted",
                            "toSpliced",
                            "with"
                          ]
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "oneOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  false
                                ]
                              },
                              {
                                "type": "boolean",
                                "enum": [
                                  true
                                ]
                              },
                              {
                                "type": "object"
                              },
                              {
                                "type": "object"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "assessmentParameters": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "jobApplication": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "companyId": {
                          "type": "number"
                        },
                        "firstName": {
                          "type": "string"
                        },
                        "lastName": {
                          "type": "string"
                        },
                        "phone": {
                          "type": "object"
                        },
                        "extractedText": {
                          "type": "object"
                        },
                        "jobPosting": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "id": {
                              "type": "number"
                            },
                            "title": {
                              "type": "string"
                            },
                            "extractedText": {
                              "type": "object"
                            },
                            "companyName": {
                              "type": "string"
                            },
                            "company": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "required": [
                            "id",
                            "title",
                            "extractedText",
                            "companyName",
                            "company"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "companyId",
                        "firstName",
                        "lastName",
                        "phone",
                        "extractedText",
                        "jobPosting"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "interviewId",
                    "jobApplicationId",
                    "candidatePhoneNumber",
                    "scheduledAt",
                    "candidateTimezone",
                    "status",
                    "currentAttemptId",
                    "attemptNumber",
                    "rescheduleCount",
                    "voicemailRetryCount",
                    "voicemailAttemptsRemaining",
                    "previousAttempts",
                    "isUserQuestionsGenerated",
                    "isAiQuestionsGenerated",
                    "questions",
                    "screeningConfig",
                    "assessmentParameters",
                    "jobApplication"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-temporal-screening-call",
        "summary": "PUT /api/temporal/screening-call",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "written": {
                      "type": "boolean"
                    },
                    "screeningCall": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "interviewId": {
                          "type": "number"
                        },
                        "candidatePhoneNumber": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "scheduledAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "questions": {
                          "type": "object"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "AWAITING_CANDIDATE",
                            "COMPLETED",
                            "DECLINED",
                            "FAILED",
                            "INIT",
                            "IN_PROGRESS",
                            "RESCHEDULED",
                            "RESULT_COMPLETED",
                            "RESULT_IN_PROGRESS",
                            "SCHEDULED"
                          ]
                        },
                        "isUserQuestionsGenerated": {
                          "type": "boolean"
                        },
                        "isAiQuestionsGenerated": {
                          "type": "boolean"
                        },
                        "screeningConfig": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            {
                              "type": "boolean",
                              "enum": [
                                true
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "length": {
                                  "type": "number"
                                },
                                "toString": {
                                  "type": "object"
                                },
                                "toLocaleString": {
                                  "type": "object"
                                },
                                "pop": {
                                  "type": "object"
                                },
                                "push": {
                                  "type": "object"
                                },
                                "concat": {
                                  "type": "object"
                                },
                                "join": {
                                  "type": "object"
                                },
                                "reverse": {
                                  "type": "object"
                                },
                                "shift": {
                                  "type": "object"
                                },
                                "slice": {
                                  "type": "object"
                                },
                                "sort": {
                                  "type": "object"
                                },
                                "splice": {
                                  "type": "object"
                                },
                                "unshift": {
                                  "type": "object"
                                },
                                "indexOf": {
                                  "type": "object"
                                },
                                "lastIndexOf": {
                                  "type": "object"
                                },
                                "every": {
                                  "type": "object"
                                },
                                "some": {
                                  "type": "object"
                                },
                                "forEach": {
                                  "type": "object"
                                },
                                "map": {
                                  "type": "object"
                                },
                                "filter": {
                                  "type": "object"
                                },
                                "reduce": {
                                  "type": "object"
                                },
                                "reduceRight": {
                                  "type": "object"
                                },
                                "find": {
                                  "type": "object"
                                },
                                "findIndex": {
                                  "type": "object"
                                },
                                "fill": {
                                  "type": "object"
                                },
                                "copyWithin": {
                                  "type": "object"
                                },
                                "__@iterator@209": {
                                  "type": "object"
                                },
                                "entries": {
                                  "type": "object"
                                },
                                "keys": {
                                  "type": "object"
                                },
                                "values": {
                                  "type": "object"
                                },
                                "__@unscopables@210": {
                                  "type": "object",
                                  "properties": {
                                    "length": {
                                      "oneOf": [
                                        {
                                          "type": "object"
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            false
                                          ]
                                        },
                                        {
                                          "type": "boolean",
                                          "enum": [
                                            true
                                          ]
                                        }
                                      ]
                                    },
                                    "toString": {
                                      "type": "object"
                                    },
                                    "toLocaleString": {
                                      "type": "object"
                                    },
                                    "pop": {
                                      "type": "object"
                                    },
                                    "push": {
                                      "type": "object"
                                    },
                                    "concat": {
                                      "type": "object"
                                    },
                                    "join": {
                                      "type": "object"
                                    },
                                    "reverse": {
                                      "type": "object"
                                    },
                                    "shift": {
                                      "type": "object"
                                    },
                                    "slice": {
                                      "type": "object"
                                    },
                                    "sort": {
                                      "type": "object"
                                    },
                                    "splice": {
                                      "type": "object"
                                    },
                                    "unshift": {
                                      "type": "object"
                                    },
                                    "indexOf": {
                                      "type": "object"
                                    },
                                    "lastIndexOf": {
                                      "type": "object"
                                    },
                                    "every": {
                                      "type": "object"
                                    },
                                    "some": {
                                      "type": "object"
                                    },
                                    "forEach": {
                                      "type": "object"
                                    },
                                    "map": {
                                      "type": "object"
                                    },
                                    "filter": {
                                      "type": "object"
                                    },
                                    "reduce": {
                                      "type": "object"
                                    },
                                    "reduceRight": {
                                      "type": "object"
                                    },
                                    "find": {
                                      "type": "object"
                                    },
                                    "findIndex": {
                                      "type": "object"
                                    },
                                    "fill": {
                                      "type": "object"
                                    },
                                    "copyWithin": {
                                      "type": "object"
                                    },
                                    "__@iterator@209": {
                                      "type": "object"
                                    },
                                    "entries": {
                                      "type": "object"
                                    },
                                    "keys": {
                                      "type": "object"
                                    },
                                    "values": {
                                      "type": "object"
                                    },
                                    "__@unscopables@210": {
                                      "type": "object"
                                    },
                                    "includes": {
                                      "type": "object"
                                    },
                                    "flatMap": {
                                      "type": "object"
                                    },
                                    "flat": {
                                      "type": "object"
                                    },
                                    "at": {
                                      "type": "object"
                                    },
                                    "findLast": {
                                      "type": "object"
                                    },
                                    "findLastIndex": {
                                      "type": "object"
                                    },
                                    "toReversed": {
                                      "type": "object"
                                    },
                                    "toSorted": {
                                      "type": "object"
                                    },
                                    "toSpliced": {
                                      "type": "object"
                                    },
                                    "with": {
                                      "type": "object"
                                    }
                                  }
                                },
                                "includes": {
                                  "type": "object"
                                },
                                "flatMap": {
                                  "type": "object"
                                },
                                "flat": {
                                  "type": "object"
                                },
                                "at": {
                                  "type": "object"
                                },
                                "findLast": {
                                  "type": "object"
                                },
                                "findLastIndex": {
                                  "type": "object"
                                },
                                "toReversed": {
                                  "type": "object"
                                },
                                "toSorted": {
                                  "type": "object"
                                },
                                "toSpliced": {
                                  "type": "object"
                                },
                                "with": {
                                  "type": "object"
                                }
                              },
                              "required": [
                                "length",
                                "toString",
                                "toLocaleString",
                                "pop",
                                "push",
                                "concat",
                                "join",
                                "reverse",
                                "shift",
                                "slice",
                                "sort",
                                "splice",
                                "unshift",
                                "indexOf",
                                "lastIndexOf",
                                "every",
                                "some",
                                "forEach",
                                "map",
                                "filter",
                                "reduce",
                                "reduceRight",
                                "find",
                                "findIndex",
                                "fill",
                                "copyWithin",
                                "__@iterator@209",
                                "entries",
                                "keys",
                                "values",
                                "__@unscopables@210",
                                "includes",
                                "flatMap",
                                "flat",
                                "at",
                                "findLast",
                                "findLastIndex",
                                "toReversed",
                                "toSorted",
                                "toSpliced",
                                "with"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": {
                                "oneOf": [
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      false
                                    ]
                                  },
                                  {
                                    "type": "boolean",
                                    "enum": [
                                      true
                                    ]
                                  },
                                  {
                                    "type": "object"
                                  },
                                  {
                                    "type": "object"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        "callEvents": {
                          "type": "object"
                        },
                        "recordingUrl": {
                          "type": "object"
                        },
                        "transcriptUrl": {
                          "type": "object"
                        },
                        "interviewStateUrl": {
                          "type": "object"
                        },
                        "clientDecisionLogUrl": {
                          "type": "object"
                        },
                        "scoringTriggered": {
                          "type": "boolean"
                        },
                        "roundNum": {
                          "type": "number"
                        },
                        "currentAttemptId": {
                          "type": "object"
                        },
                        "attemptNumber": {
                          "type": "number"
                        },
                        "noAnswerRetryCount": {
                          "type": "number"
                        },
                        "rescheduleCount": {
                          "type": "number"
                        },
                        "voicemailRetryCount": {
                          "type": "number"
                        },
                        "candidateTimezone": {
                          "type": "object"
                        },
                        "objectiveEvaluations": {
                          "type": "object"
                        },
                        "callQuality": {
                          "type": "object"
                        },
                        "voicePrompt": {
                          "type": "object"
                        },
                        "cutOffAttempt": {
                          "type": "object"
                        },
                        "automationRuleId": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "interviewId",
                        "candidatePhoneNumber",
                        "scheduledAt",
                        "questions",
                        "status",
                        "isUserQuestionsGenerated",
                        "isAiQuestionsGenerated",
                        "screeningConfig",
                        "callEvents",
                        "recordingUrl",
                        "transcriptUrl",
                        "interviewStateUrl",
                        "clientDecisionLogUrl",
                        "scoringTriggered",
                        "roundNum",
                        "currentAttemptId",
                        "attemptNumber",
                        "noAnswerRetryCount",
                        "rescheduleCount",
                        "voicemailRetryCount",
                        "candidateTimezone",
                        "objectiveEvaluations",
                        "callQuality",
                        "voicePrompt",
                        "cutOffAttempt",
                        "automationRuleId"
                      ]
                    }
                  },
                  "required": [
                    "message",
                    "written",
                    "screeningCall"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/screening-interview": {
      "get": {
        "operationId": "get-temporal-screening-interview",
        "summary": "GET /api/temporal/screening-interview?id={screening_interview_id}",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "screening_id": {
                      "type": "string"
                    },
                    "questions": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "pipeline_config": {
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "pipeline_type": {
                              "type": "string",
                              "enum": [
                                "S2S",
                                "S2T2S"
                              ]
                            },
                            "realtime": {
                              "oneOf": [
                                {
                                  "type": "object"
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "google",
                                        "openai"
                                      ]
                                    },
                                    "service_type": {
                                      "oneOf": [
                                        {
                                          "type": "object"
                                        },
                                        {
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "config": {
                                      "type": "object",
                                      "properties": {
                                        "model": {
                                          "type": "string"
                                        },
                                        "voice": {
                                          "type": "object"
                                        },
                                        "language": {
                                          "type": "object"
                                        },
                                        "instructions": {
                                          "type": "object"
                                        },
                                        "silence_duration_ms": {
                                          "oneOf": [
                                            {
                                              "type": "object"
                                            },
                                            {
                                              "type": "number"
                                            }
                                          ]
                                        },
                                        "max_duration_seconds": {
                                          "type": "object"
                                        },
                                        "enable_session_resumption": {
                                          "oneOf": [
                                            {
                                              "type": "object"
                                            },
                                            {
                                              "type": "boolean",
                                              "enum": [
                                                false
                                              ]
                                            },
                                            {
                                              "type": "boolean",
                                              "enum": [
                                                true
                                              ]
                                            }
                                          ]
                                        },
                                        "enable_input_transcription": {
                                          "type": "object"
                                        },
                                        "enable_output_transcription": {
                                          "type": "object"
                                        },
                                        "turn_coverage": {
                                          "oneOf": [
                                            {
                                              "type": "object"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "activity_only"
                                              ]
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "all_input"
                                              ]
                                            }
                                          ]
                                        },
                                        "response_onset_hold_ms": {
                                          "type": "object"
                                        },
                                        "idle_engagement_delay_seconds": {
                                          "type": "object"
                                        },
                                        "context_compression_enabled": {
                                          "type": "object"
                                        },
                                        "context_compression_trigger_tokens": {
                                          "type": "object"
                                        },
                                        "context_compression_target_tokens": {
                                          "type": "object"
                                        },
                                        "input_energy_interrupt": {
                                          "type": "object"
                                        },
                                        "runtime": {
                                          "oneOf": [
                                            {
                                              "type": "object"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "direct"
                                              ]
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "pydantic"
                                              ]
                                            }
                                          ]
                                        },
                                        "emotional_expression": {
                                          "oneOf": [
                                            {
                                              "type": "object"
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "expressive"
                                              ]
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "off"
                                              ]
                                            },
                                            {
                                              "type": "string",
                                              "enum": [
                                                "subtle"
                                              ]
                                            }
                                          ]
                                        },
                                        "affective_dialog": {
                                          "type": "object"
                                        },
                                        "proactive_audio": {
                                          "type": "object"
                                        }
                                      },
                                      "required": [
                                        "model"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "config"
                                  ]
                                }
                              ]
                            },
                            "enable_recording": {
                              "oneOf": [
                                {
                                  "type": "object"
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "false"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "enum": [
                                    "true"
                                  ]
                                },
                                {
                                  "type": "boolean",
                                  "enum": [
                                    false
                                  ]
                                },
                                {
                                  "type": "boolean",
                                  "enum": [
                                    true
                                  ]
                                }
                              ]
                            },
                            "enable_mute_filter": {
                              "type": "object"
                            },
                            "allow_interruptions": {
                              "type": "object"
                            },
                            "tts_voice": {
                              "type": "object"
                            },
                            "tts_type": {
                              "type": "object"
                            },
                            "ttsType": {
                              "type": "object"
                            },
                            "engine": {
                              "type": "string",
                              "enum": [
                                "vapi"
                              ]
                            },
                            "stt": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "assembly-ai",
                                    "azure",
                                    "cartesia",
                                    "deepgram",
                                    "elevenlabs",
                                    "gladia",
                                    "google",
                                    "openai",
                                    "soniox",
                                    "speechmatics",
                                    "talkscriber"
                                  ]
                                },
                                "service_type": {
                                  "type": "object"
                                },
                                "config": {
                                  "type": "object",
                                  "properties": {
                                    "model": {
                                      "type": "object"
                                    },
                                    "location": {
                                      "type": "object"
                                    },
                                    "sample_rate": {
                                      "type": "object"
                                    },
                                    "enable_punctuation": {
                                      "type": "object"
                                    },
                                    "language": {
                                      "type": "object"
                                    }
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "config"
                              ]
                            },
                            "llm": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "anthropic",
                                    "cerebras",
                                    "custom-llm",
                                    "deep-infra",
                                    "deepseek",
                                    "google",
                                    "groq",
                                    "openai",
                                    "openrouter",
                                    "perplexity-ai",
                                    "together-ai",
                                    "xai"
                                  ]
                                },
                                "service_type": {
                                  "type": "object"
                                },
                                "config": {
                                  "type": "object",
                                  "properties": {
                                    "model": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "model"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "config"
                              ]
                            },
                            "tts": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "azure",
                                    "cartesia",
                                    "deepgram",
                                    "elevenlabs",
                                    "hume",
                                    "inworld",
                                    "lmnt",
                                    "minimax",
                                    "neuphonic",
                                    "openai",
                                    "playht",
                                    "rime-ai",
                                    "smallest-ai",
                                    "vapi"
                                  ]
                                },
                                "service_type": {
                                  "type": "object"
                                },
                                "config": {
                                  "type": "object",
                                  "properties": {
                                    "voice": {
                                      "type": "object"
                                    },
                                    "voice_id": {
                                      "type": "object"
                                    },
                                    "model": {
                                      "type": "object"
                                    },
                                    "sample_rate": {
                                      "type": "object"
                                    },
                                    "language": {
                                      "type": "object"
                                    }
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "config"
                              ]
                            }
                          },
                          "required": [
                            "pipeline_type",
                            "engine",
                            "stt",
                            "llm",
                            "tts"
                          ]
                        }
                      ]
                    },
                    "rawConfig": {
                      "type": "object"
                    },
                    "company_slug": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "company_id": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "candidate_name": {
                      "type": "object"
                    },
                    "job_title": {
                      "type": "object"
                    },
                    "company_name": {
                      "type": "object"
                    },
                    "cheat_detection_enabled": {
                      "type": "boolean"
                    },
                    "candidate_context": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "version": {
                          "type": "number"
                        },
                        "returning_candidate": {
                          "type": "boolean"
                        },
                        "confirm_facts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ]
                          }
                        },
                        "logistics": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "preferred_window": {
                              "type": "object"
                            },
                            "preferred_language": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "preferred_window",
                            "preferred_language"
                          ]
                        },
                        "topics_covered": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "memory_ids": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "card_hash": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "version",
                        "returning_candidate",
                        "confirm_facts",
                        "logistics",
                        "topics_covered",
                        "memory_ids",
                        "card_hash"
                      ]
                    },
                    "role_reference": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "job_title": {
                          "type": "object"
                        },
                        "company_name": {
                          "type": "object"
                        },
                        "location": {
                          "type": "object"
                        },
                        "employment_type": {
                          "type": "object"
                        },
                        "level": {
                          "type": "object"
                        },
                        "job_profile": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "summary": {
                              "type": "object"
                            },
                            "responsibilities": {
                              "type": "object"
                            },
                            "must_have_skills": {
                              "type": "object"
                            },
                            "nice_to_have_skills": {
                              "type": "object"
                            },
                            "experience": {
                              "type": "object"
                            },
                            "work_mode": {
                              "type": "object"
                            },
                            "location": {
                              "type": "object"
                            },
                            "working_hours": {
                              "type": "object"
                            },
                            "team": {
                              "type": "object"
                            },
                            "reports_to": {
                              "type": "object"
                            },
                            "travel": {
                              "type": "object"
                            },
                            "benefits": {
                              "type": "object"
                            },
                            "other_details": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "summary",
                            "responsibilities",
                            "must_have_skills",
                            "nice_to_have_skills",
                            "experience",
                            "work_mode",
                            "location",
                            "working_hours",
                            "team",
                            "reports_to",
                            "travel",
                            "benefits",
                            "other_details"
                          ]
                        },
                        "company_profile": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "summary": {
                              "type": "object"
                            },
                            "about": {
                              "type": "object"
                            },
                            "industry": {
                              "type": "object"
                            },
                            "size": {
                              "type": "object"
                            },
                            "headquarters": {
                              "type": "object"
                            },
                            "culture": {
                              "type": "object"
                            },
                            "other_details": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "summary",
                            "about",
                            "industry",
                            "size",
                            "headquarters",
                            "culture",
                            "other_details"
                          ]
                        },
                        "job_description": {
                          "type": "object"
                        },
                        "company_description": {
                          "type": "object"
                        }
                      },
                      "required": [
                        "job_title",
                        "company_name",
                        "location",
                        "employment_type",
                        "level",
                        "job_profile",
                        "company_profile",
                        "job_description",
                        "company_description"
                      ]
                    }
                  },
                  "required": [
                    "screening_id",
                    "questions",
                    "pipeline_config",
                    "rawConfig",
                    "company_slug",
                    "company_id",
                    "candidate_name",
                    "job_title",
                    "company_name",
                    "cheat_detection_enabled",
                    "candidate_context",
                    "role_reference"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/workshorts": {
      "post": {
        "operationId": "post-temporal-workshorts",
        "summary": "POST /api/temporal/workshorts",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "job_application_id": {
                      "type": "object"
                    },
                    "status": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "job_application_id",
                    "status",
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/preview-facts": {
      "post": {
        "operationId": "post-temporal-automations-preview-facts",
        "summary": "POST /api/temporal/automations/preview-facts — facts for a job's recent applications.",
        "description": "M2M. Called by talent-ai's rule preview to show which current applicants a rule would match. Newest applications first, deleted ones left out.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationPreviewFactsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationPreviewFactsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs": {
      "post": {
        "operationId": "post-temporal-automations-runs",
        "summary": "POST /api/temporal/automations/runs — create (or find) the run for a rule, entity and event.",
        "description": "M2M. Called by talent-ai's AutomationEventWorkflow before evaluating a rule. Idempotent: a replayed event gets the existing run back, so a rule never runs twice for the same event and entity.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunClaimBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunClaimApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/candidate-uploads/{id}": {
      "post": {
        "operationId": "post-temporal-candidate-uploads-{id}",
        "summary": "POST /api/temporal/candidate-uploads/[id] — talent-ai reports a talent pool upload's progress.",
        "description": "M2M (Bearer). On BASIC_PROFILE_EXTRACTED (unless `skipDuplicateCheck`) runs the duplicate check; `duplicate: true` means stop before parsing and wait for the uploader to update or skip. 404 when the upload is not in the company.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "CandidateUpload id (`upload_id` on the candidate workflow input)"
            },
            "description": "CandidateUpload id (`upload_id` on the candidate workflow input)",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalCandidateUploadProgressBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalCandidateUploadProgressApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/industry-taxonomy/mappings": {
      "post": {
        "operationId": "post-temporal-industry-taxonomy-mappings",
        "summary": "POST /api/temporal/industry-taxonomy/mappings — store a batch of links between two taxonomies (add-only).",
        "description": "M2M. Called by talent-ai's IndustryTaxonomySyncWorkflow after the nodes are stored. Pairs whose codes are not stored come back in `unresolved`.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalIndustryTaxonomyMappingsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalIndustryTaxonomyMappingsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/industry-taxonomy/nodes": {
      "get": {
        "operationId": "get-temporal-industry-taxonomy-nodes",
        "summary": "GET /api/temporal/industry-taxonomy/nodes — the nodes resume parsing may classify an experience into.",
        "description": "M2M. Active (not deprecated) nodes of one taxonomy version. talent-ai caches the list and links an experience to a node `id`; ids never change once created.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "taxonomy",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/industryTaxonomyEnum"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "taxonomyVersion",
            "required": true,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/taxonomyVersionSchema"
                }
              ],
              "description": "From GET /api/temporal/companies/{id}/industry-taxonomy"
            },
            "description": "From GET /api/temporal/companies/{id}/industry-taxonomy",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalIndustryTaxonomyClassificationNodesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-temporal-industry-taxonomy-nodes",
        "summary": "POST /api/temporal/industry-taxonomy/nodes — store a batch of taxonomy nodes (add-only).",
        "description": "M2M. Called by talent-ai's IndustryTaxonomySyncWorkflow. New codes are inserted with a new, permanent id. A stored code is never overwritten: fields the source now has differently are returned in `differs` for review.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalIndustryTaxonomyNodesBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalIndustryTaxonomyNodesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/interview-quality/check": {
      "get": {
        "operationId": "get-temporal-interview-quality-check",
        "summary": "GET /api/temporal/interview-quality/check — talent-ai asks whether to analyze a scored screening.",
        "description": "M2M (Bearer). Resolves the web screening (`screeningInterviewId`) or phone call (`screeningCallId`) to its interview and company, and reads the company's `INTERVIEW_QUALITY_ANALYSIS_ENABLED` flag (defaults ← plan ← company override). An unknown screening returns `enabled: false` with null ids.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "channel",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "WEB",
                "PHONE"
              ],
              "description": "WEB (needs screeningInterviewId) or PHONE (needs screeningCallId)"
            },
            "description": "WEB (needs screeningInterviewId) or PHONE (needs screeningCallId)",
            "example": "WEB"
          },
          {
            "in": "query",
            "name": "screeningInterviewId",
            "required": false,
            "schema": {
              "description": "ScreeningInterview id (WEB)",
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "description": "ScreeningInterview id (WEB)",
            "example": 123
          },
          {
            "in": "query",
            "name": "screeningCallId",
            "required": false,
            "schema": {
              "description": "ScreeningCall id (PHONE)",
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "description": "ScreeningCall id (PHONE)",
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalInterviewQualityCheckResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/interview-quality/context": {
      "get": {
        "operationId": "get-temporal-interview-quality-context",
        "summary": "GET /api/temporal/interview-quality/context — talent-ai loads what it needs to analyze an interview.",
        "description": "M2M (Bearer). Candidate / company / job, questions, screening config, artifact URLs and the channel's raw event logs. 404 when the interview has no AI screening (on the requested channel).",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "interviewId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "Interview id"
            },
            "description": "Interview id",
            "example": 123
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "WEB",
                "PHONE"
              ],
              "description": "Optional: which AI screening to describe when the interview has both (default: the newest one)"
            },
            "description": "Optional: which AI screening to describe when the interview has both (default: the newest one)",
            "example": "WEB"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalInterviewQualityContextResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/interview-quality/report": {
      "post": {
        "operationId": "post-temporal-interview-quality-report",
        "summary": "POST /api/temporal/interview-quality/report — talent-ai stores the result of an interview quality analysis.",
        "description": "M2M (Bearer). Idempotent on `workflowId`. A report (with its issues) is created only when `report.issues` is non-empty. With `runId`, the manual run is finished: COMPLETED_WITH_ISSUES / COMPLETED_NO_ISSUES / FAILED, plus reportId, error and completedAt.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalInterviewQualityReportBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalInterviewQualityReportResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/jobApplications/{id}": {
      "get": {
        "operationId": "get-temporal-jobApplications-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "includeParsedJD",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "JobPosting": {
                      "type": "object",
                      "properties": {
                        "ratingCriteria": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "criterion": {
                                "type": "string"
                              },
                              "points": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "criterion",
                              "points"
                            ]
                          }
                        }
                      },
                      "required": [
                        "ratingCriteria"
                      ]
                    }
                  },
                  "required": [
                    "JobPosting"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "put": {
        "operationId": "put-temporal-jobApplications-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "id": {
                      "type": "number"
                    },
                    "noop": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "id",
                    "noop"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/jobApplications/status": {
      "get": {
        "operationId": "get-temporal-jobApplications-status",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "currentJobApplicationId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "jobPostingId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "user@example.com"
          },
          {
            "in": "query",
            "name": "phone",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "phoneNumber",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/jobs/{id}": {
      "get": {
        "operationId": "get-temporal-jobs-{id}",
        "summary": "",
        "description": "",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "123",
            "description": "Path parameter: id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/screening-call/objective-evaluations": {
      "post": {
        "operationId": "post-temporal-screening-call-objective-evaluations",
        "summary": "POST /api/temporal/screening-call/objective-evaluations — talent-ai stores its verdicts on a phone screening's objective questions.",
        "description": "M2M (Bearer). Replaces `ScreeningCall.objectiveEvaluations` (idempotent, latest wins). A phone attempt id (`attempt-{callId}-{n}-…`) that is not the call's current attempt returns 200 with `ignored: true`; any other id (e.g. a scoring workflow id) is stored. 404 when the call doesn't exist.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreeningCallObjectiveEvaluationsBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScreeningCallObjectiveEvaluationsApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/screening-call/voice-config": {
      "post": {
        "operationId": "post-temporal-screening-call-voice-config",
        "summary": "POST /api/temporal/screening-call/voice-config — voice agent config for a phone call's dial attempt.",
        "description": "M2M. Called by talent-ai when it dials a phone call: the engine that places it (the company's engine integration, else screenai), the call's language on that engine and the engine's settings row for it, the active base prompt and language addendum (exact language, else its primary subtag), and the agent's tool definitions (talent-web answers them; schedule_callback only while a reschedule is left), and for a Vapi call the rendered script (system prompt, first line, voicemail, silence check-in). Prompt templates are also sent verbatim. With attemptId, the prompts' ids and versions are recorded on the screening call (voicePrompt). 422 when the call's language has no settings row on the company's engine, or a Vapi call has no stored base prompt; with attemptId the attempt is then recorded as FAILED (reason engine_settings_missing or voice_prompt_missing).",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalScreeningCallVoiceConfigBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalScreeningCallVoiceConfigResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/rules/for-event": {
      "post": {
        "operationId": "post-temporal-automations-rules-for-event",
        "summary": "POST /api/temporal/automations/rules/for-event — rules that listen to an automation event.",
        "description": "M2M. Called first by talent-ai's AutomationEventWorkflow. Returns the company's enabled rules on the event's trigger that cover the job (the job's own rules and personal rules of people on it; only `targetRuleId` for a time-based event), the application's facts to evaluate them against, the run that caused the event when an automation did (for loop and chain-depth checks), and the runs with pending delays or waits on the application that the event wakes or cancels.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRulesForEventBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRulesForEventApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/companies/{id}/agent-memory-flags": {
      "get": {
        "operationId": "get-temporal-companies-{id}-agent-memory-flags",
        "summary": "GET /api/temporal/companies/[id]/agent-memory-flags — talent-ai reads a company's agent memory flags.",
        "description": "M2M (Bearer). The company's effective flags (defaults ← plan ← company override). 404 for an unknown company; talent-ai treats any error as all off.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Company id"
            },
            "description": "Company id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalCompanyAgentMemoryFlagsResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/companies/{id}/company-profile": {
      "post": {
        "operationId": "post-temporal-companies-{id}-company-profile",
        "summary": "POST /api/temporal/companies/[id]/company-profile — store an extracted company profile.",
        "description": "M2M (Bearer). Called by talent-ai's CompanyProfileWorkflow with the profile JSON (including a summary) extracted from the saved company profile text. A stale result is acknowledged but not stored.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Company id"
            },
            "description": "Company id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalCompanyProfileBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalCompanyProfileApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/companies/{id}/industry-taxonomy": {
      "get": {
        "operationId": "get-temporal-companies-{id}-industry-taxonomy",
        "summary": "GET /api/temporal/companies/[id]/industry-taxonomy — the taxonomy resume parsing classifies this company's experiences into.",
        "description": "M2M. The company's chosen taxonomy (set by super admin) or the default, with its latest stored version. Fetch the nodes from GET /api/temporal/industry-taxonomy/nodes.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Company id"
            },
            "description": "Company id",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalCompanyIndustryTaxonomyApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/industry-taxonomy/runs/start": {
      "post": {
        "operationId": "post-temporal-industry-taxonomy-runs-start",
        "summary": "POST /api/temporal/industry-taxonomy/runs/start — open or claim a taxonomy sync run.",
        "description": "M2M. Called first by talent-ai's IndustryTaxonomySyncWorkflow. With a runId (manual sync) the run moves to RUNNING; 404 if unknown, 409 if already finished. Without one (scheduled sync) a new RUNNING run is created.",
        "tags": [
          "Temporal"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalIndustryTaxonomyRunStartBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalIndustryTaxonomyRunStartApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/interview-rounds/{id}/ai-summary": {
      "post": {
        "operationId": "post-temporal-interview-rounds-{id}-ai-summary",
        "summary": "POST /api/temporal/interview-rounds/[id]/ai-summary — store a human interview AI summary.",
        "description": "M2M (Bearer). Called by talent-ai's HumanInterviewSummaryWorkflow with the recruiter brief for an opted-in round. Saves it on the round's InterviewResult, sets aiSummaryStatus and notifies the recruiter UI over SSE.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Interview round id"
            },
            "description": "Interview round id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalInterviewRoundAiSummaryBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalInterviewRoundAiSummaryApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/rules/{id}/scheduled": {
      "post": {
        "operationId": "post-temporal-automations-rules-{id}-scheduled",
        "summary": "POST /api/temporal/automations/rules/[id]/scheduled — the rule a Temporal Schedule fired for.",
        "description": "M2M. Called first by talent-ai's AutomationScheduleWorkflow on every fire. Returns the rule as the engine runs it, or a skip reason when it was deleted, turned off or paused, or no longer has a schedule trigger (the schedule can be stale).",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "AutomationRule id"
            },
            "description": "AutomationRule id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationScheduledRuleBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationScheduledRuleApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/actions": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-actions",
        "summary": "POST /api/temporal/automations/runs/[id]/actions — carry out one action of a run.",
        "description": "M2M. Called by talent-ai's AutomationEventWorkflow (or the run's AutomationStepsWorkflow when the rule has delays or waits) for each action of a matched rule, including a wait step's reminder and exhaustion actions. Only actions in the run’s rule snapshot can run, and only while the run is open. Changes carry the run id, so the events they cause can't re-trigger the same rule. Repeating a succeeded action returns its recorded result. Actions that need approval (and soft rejects) go to the approval queue and come back `awaiting_approval` with the approval id and holding window.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunActionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunActionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/check": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-check",
        "summary": "POST /api/temporal/automations/runs/[id]/check — may a timed run that just woke carry on?",
        "description": "M2M. Called by talent-ai's AutomationStepsWorkflow after every delay, wait or quiet-hours pause, before its next step. Says no when the run was closed, its rule was disabled or paused, or the application is gone.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunCheckBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunCheckApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/finish": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-finish",
        "summary": "POST /api/temporal/automations/runs/[id]/finish — close a run with its outcome.",
        "description": "M2M. Called last by talent-ai's AutomationEventWorkflow for each rule: succeeded, skipped (with the reason, e.g. conditions_not_met, self_trigger, max_chain_depth, run_once) or failed. A run with delays or waits is closed by its step workflow, possibly as cancelled (application moved on, rule disabled or paused). A finished run can't be reopened; finishing a cancelled run again is a no-op.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunFinishBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunFinishApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/hand-off": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-hand-off",
        "summary": "POST /api/temporal/automations/runs/[id]/hand-off — a matched run continues in a step workflow.",
        "description": "M2M. Called by talent-ai's AutomationEventWorkflow when a matched rule has a delay, a wait for an event, or an action that respects quiet hours. Records the match and the step workflow; the run stays RUNNING until that workflow finishes it, and events on the application are routed to it.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunHandOffBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunHandOffApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/quiet-hours": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-quiet-hours",
        "summary": "POST /api/temporal/automations/runs/[id]/quiet-hours — when an action that contacts the candidate may go.",
        "description": "M2M. Called by talent-ai's AutomationStepsWorkflow before an action that reaches the candidate. Uses the AI phone-screening calling hours (09:00–18:00 candidate-local) and time zone rules.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunQuietHoursBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunQuietHoursApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/summary": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-summary",
        "summary": "POST /api/temporal/automations/runs/[id]/summary — store and deliver a written recruiter summary.",
        "description": "M2M. Called by talent-ai's generate_summary handler with the summary it wrote. Stores it for the owner's dashboard and sends it on the action's channels (dashboard notification, email, WhatsApp) with a link back. A retry resends only channels that failed; it fails only when every channel failed. Repeating a succeeded action returns its recorded result.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationSummaryBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunActionApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/summary-input": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-summary-input",
        "summary": "POST /api/temporal/automations/runs/[id]/summary-input — the figures for a recruiter summary.",
        "description": "M2M. Called by talent-ai's generate_summary handler. For the run's summary action at `index`: per job (the rule's jobs within the action's filter), new applicants, stage movements, top candidates with reasons, applications waiting on the recruiter and stale ones, plus what the owner's automations did (moves per rule, approvals waiting, failed runs with their reason), over the window (the action's, else since the rule's last summary).",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunActionBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationSummaryInputApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/threshold": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-threshold",
        "summary": "POST /api/temporal/automations/runs/[id]/threshold — count a threshold rule's match.",
        "description": "M2M. Called by talent-ai's AutomationEventWorkflow when a threshold rule's conditions match. Counts the match atomically (the count restarts once the threshold is reached) and stamps it on the run, so a retry returns the same answer.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunThresholdBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunThresholdApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/wait": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-wait",
        "summary": "POST /api/temporal/automations/runs/[id]/wait — record what a timed run is waiting for.",
        "description": "M2M. Called by talent-ai's AutomationStepsWorkflow when it starts a delay, a wait for an event or a quiet-hours pause, and again (with nulls) when it wakes. talent-web routes events of the awaited type on the application to the run.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationRunWaitBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationRunWaitApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/industry-taxonomy/runs/{id}/finish": {
      "post": {
        "operationId": "post-temporal-industry-taxonomy-runs-{id}-finish",
        "summary": "POST /api/temporal/industry-taxonomy/runs/[id]/finish — close a taxonomy sync run.",
        "description": "M2M. Called last by talent-ai's IndustryTaxonomySyncWorkflow with the outcome and stats. A completed run also records how many stored nodes per taxonomy the source no longer lists.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "description": "IndustryTaxonomySyncRun id"
            },
            "description": "IndustryTaxonomySyncRun id",
            "example": "123"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalIndustryTaxonomyRunFinishBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalIndustryTaxonomyRunFinishApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/interview-quality/runs/{runId}/status": {
      "post": {
        "operationId": "post-temporal-interview-quality-runs-{runId}-status",
        "summary": "POST /api/temporal/interview-quality/runs/[runId]/status — talent-ai marks a manual run as running.",
        "description": "M2M (Bearer). Called at workflow start for MANUAL triggers. Moves PENDING / RUNNING runs to RUNNING (and stores workflowId); a finished run is left as it is. 404 for an unknown run.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "InterviewQualityRun id"
            },
            "description": "InterviewQualityRun id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalInterviewQualityRunStatusBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalInterviewQualityRunStatusResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/automations/runs/{id}/approvals/{approvalId}": {
      "post": {
        "operationId": "post-temporal-automations-runs-{id}-approvals-{approvalId}",
        "summary": "POST /api/temporal/automations/runs/[id]/approvals/[approvalId] — apply a decision on a queued action.",
        "description": "M2M. Called by talent-ai's AutomationApprovalWorkflow once a recruiter decides (or the holding window ends). Approving runs the action (a confirmed soft reject moves the applicant to REJECTED and sends the rejection email); rejecting drops it (a dismissed soft reject restores the previous sub-status). Only the first decision counts.",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "AutomationRun id"
            },
            "description": "AutomationRun id",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          {
            "in": "path",
            "name": "approvalId",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "AutomationApproval id"
            },
            "description": "AutomationApproval id",
            "example": 123
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemporalAutomationApprovalBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalAutomationApprovalApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/screening-call/{id}/attempts/{attemptId}/scoring": {
      "get": {
        "operationId": "get-temporal-screening-call-{id}-attempts-{attemptId}-scoring",
        "summary": "GET /api/temporal/screening-call/[id]/attempts/[attemptId]/scoring — whether talent-ai scores a finished phone call now.",
        "description": "M2M. talent-ai asks this after copying and re-transcribing a call: `score` is false while the call is a",
        "tags": [
          "Temporal"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "description": "ScreeningCall id"
            },
            "description": "ScreeningCall id",
            "example": 123
          },
          {
            "in": "path",
            "name": "attemptId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "The finished call (attempt)"
            },
            "description": "The finished call (attempt)",
            "example": "123"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemporalPhoneCallScoringResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/mailbox/process": {
      "post": {
        "operationId": "post-temporal-mailbox-process",
        "summary": "POST /api/temporal/mailbox/process — create or reuse the Candidate / JobApplication for one mailbox resume.",
        "description": "Called by talent-ai's HyreboxInboundWorkflow (M2M token) after extraction. A live job of the",
        "tags": [
          "TemporalMailbox"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxProcessBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxProcessApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/temporal/mailbox/resolve": {
      "post": {
        "operationId": "post-temporal-mailbox-resolve",
        "summary": "POST /api/temporal/mailbox/resolve — company for an inbound hyrebox@ email, by sender domain.",
        "description": "Called by talent-ai's HyreboxInboundWorkflow (M2M token). 404 when no company uses the",
        "tags": [
          "TemporalMailbox"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxResolveBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxResolveApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/user-data": {
      "get": {
        "operationId": "get-user-data",
        "summary": "GET API for fetching user data and initializing user-department relationships",
        "description": "",
        "tags": [
          "User-data"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/company/{companySlug}/me/notification-preferences": {
      "get": {
        "operationId": "get-company-{companySlug}-me-notification-preferences",
        "summary": "GET /api/company/[companySlug]/me/notification-preferences",
        "description": "The team emails you've turned off for yourself in this company (Profile > Notifications). Missing key = on.",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Your notification preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyNotificationPreferencesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "patch": {
        "operationId": "patch-company-{companySlug}-me-notification-preferences",
        "summary": "PATCH /api/company/[companySlug]/me/notification-preferences",
        "description": "Turn team emails on or off for yourself. Send only the emails that changed. Emails that ask you to act, locked emails and candidate emails can't be turned off (400).",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MyNotificationPreferencesPatchBodySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved notification preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyNotificationPreferencesApiResponseSchema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/azure-email": {
      "get": {
        "operationId": "get-webhooks-azure-email",
        "summary": "Handles Azure Event Grid validation requests",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-webhooks-azure-email",
        "summary": "Handles Azure Communication Services email delivery events",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/daily": {
      "post": {
        "operationId": "post-webhooks-daily",
        "summary": "Handles webhook events from Daily.co",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/graph": {
      "get": {
        "operationId": "get-webhooks-graph",
        "summary": "Microsoft Graph validation can come as GET with ?validationToken=...",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "validationToken",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-webhooks-graph",
        "summary": "",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "validationToken",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/plivo-whatsapp": {
      "get": {
        "operationId": "get-webhooks-plivo-whatsapp",
        "summary": "",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-webhooks-plivo-whatsapp",
        "summary": "POST /api/webhooks/plivo-whatsapp",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/resend-email": {
      "post": {
        "operationId": "post-webhooks-resend-email",
        "summary": "Handles Resend webhook events: outbound delivery events and inbound `email.received` (hyrebox@ ingestion)",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/stripe": {
      "post": {
        "operationId": "post-webhooks-stripe",
        "summary": "POST /api/webhooks/stripe",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "received": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "received"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/twilio-whatsapp": {
      "get": {
        "operationId": "get-webhooks-twilio-whatsapp",
        "summary": "",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-webhooks-twilio-whatsapp",
        "summary": "",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/vapi": {
      "post": {
        "operationId": "post-webhooks-vapi",
        "summary": "Vapi server messages for phone screening calls talent-ai placed (INT-1138 / INT-1166).",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "toolCallId": {
                            "type": "string"
                          },
                          "result": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "toolCallId",
                          "result"
                        ]
                      }
                    }
                  },
                  "required": [
                    "results"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/graph/transcript": {
      "get": {
        "operationId": "get-webhooks-graph-transcript",
        "summary": "Microsoft Graph validation can come as GET with ?validationToken=...",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "validationToken",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-webhooks-graph-transcript",
        "summary": "",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "validationToken",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/plivo/recording": {
      "post": {
        "operationId": "post-webhooks-plivo-recording",
        "summary": "POST /api/webhooks/plivo/recording",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "stored": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "stored"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/plivo/voice": {
      "get": {
        "operationId": "get-webhooks-plivo-voice",
        "summary": "GET /api/webhooks/plivo/voice — liveness check for the Plivo voice webhook.",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "service": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "provider",
                    "service"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-webhooks-plivo-voice",
        "summary": "POST /api/webhooks/plivo/voice",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "callUuid": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "duplicate": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "callUuid",
                    "status",
                    "duplicate"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/twilio/recording": {
      "post": {
        "operationId": "post-webhooks-twilio-recording",
        "summary": "POST /api/webhooks/twilio/recording",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "stored": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "stored"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/webhooks/twilio/voice": {
      "post": {
        "operationId": "post-webhooks-twilio-voice",
        "summary": "POST /api/webhooks/twilio/voice",
        "description": "",
        "tags": [
          "Webhooks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "callSid": {
                      "type": "string"
                    },
                    "recordingStatus": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "success",
                    "callSid",
                    "recordingStatus"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "403": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/well-known/microsoft-identity-association": {
      "get": {
        "operationId": "get-well-known-microsoft-identity-association",
        "summary": "Microsoft publisher domain verification file for the Microsoft app registration.",
        "description": "",
        "tags": [
          "Well-known"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "associatedApplications": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "applicationId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "applicationId"
                        ]
                      }
                    }
                  },
                  "required": [
                    "associatedApplications"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/well-known/screening-jwks": {
      "get": {
        "operationId": "get-well-known-screening-jwks",
        "summary": "Aggregated screening JWKS — public keys for Talent Web and Talent AI",
        "description": "",
        "tags": [
          "Well-known"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "keys": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kty": {
                            "type": "string"
                          },
                          "use": {
                            "type": "string",
                            "enum": [
                              "sig"
                            ]
                          },
                          "alg": {
                            "type": "string",
                            "enum": [
                              "RS256"
                            ]
                          },
                          "kid": {
                            "type": "string"
                          },
                          "n": {
                            "type": "string"
                          },
                          "e": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kty",
                          "use",
                          "alg",
                          "kid",
                          "n",
                          "e"
                        ]
                      }
                    }
                  },
                  "required": [
                    "keys"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          },
          "503": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/whatsapp": {
      "get": {
        "operationId": "get-whatsapp",
        "summary": "GET call which is initiated by a recruiter to send a job to an applicant. This creates the initial whatsapphistory record.",
        "description": "",
        "tags": [
          "Whatsapp"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobPostingId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "phoneNumber",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "shortMessage",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Record"
                }
              }
            }
          },
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-whatsapp",
        "summary": "POST call typically triggered by the user replying to the whatsapp message. This will go through a workflow and create an application if applicable.",
        "description": "",
        "tags": [
          "Whatsapp"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    },
    "/whatsapp/{companySlug}": {
      "get": {
        "operationId": "get-whatsapp-{companySlug}",
        "summary": "GET call which is initiated by a recruiter to send a job to an applicant. This creates the initial whatsapphistory record.",
        "description": "",
        "tags": [
          "Whatsapp"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobPostingId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "query",
            "name": "phoneNumber",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "query",
            "name": "shortMessage",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "example"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Record"
                }
              }
            }
          },
          "302": {
            "description": "Successful response",
            "headers": {
              "Location": {
                "description": "Redirect target URL",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      },
      "post": {
        "operationId": "post-whatsapp-{companySlug}",
        "summary": "POST call typically triggered by the user replying to the whatsapp message. This will go through a workflow and create an application if applicable.",
        "description": "",
        "tags": [
          "Whatsapp"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "jobId",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "123"
          },
          {
            "in": "path",
            "name": "companySlug",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Company slug"
            },
            "description": "Company slug",
            "example": "example"
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "{companySlug}"
    },
    {
      "name": "Admin"
    },
    {
      "name": "AdminAutomations"
    },
    {
      "name": "AdminBilling"
    },
    {
      "name": "AdminIndustryTaxonomy"
    },
    {
      "name": "AdminIntegrations"
    },
    {
      "name": "AdminInterviewQuality"
    },
    {
      "name": "AdminSystemSettings"
    },
    {
      "name": "AdminVoiceAgentPrompts"
    },
    {
      "name": "Analytics-agent"
    },
    {
      "name": "Applications"
    },
    {
      "name": "Assessment"
    },
    {
      "name": "Auth"
    },
    {
      "name": "Automations"
    },
    {
      "name": "Billing"
    },
    {
      "name": "Calendar"
    },
    {
      "name": "Candidates"
    },
    {
      "name": "CandidateSharing"
    },
    {
      "name": "Chatbot"
    },
    {
      "name": "Communication-status"
    },
    {
      "name": "CommunicationTemplates"
    },
    {
      "name": "Company"
    },
    {
      "name": "CompanyAssets"
    },
    {
      "name": "CompanySettings"
    },
    {
      "name": "Connectors"
    },
    {
      "name": "Cron"
    },
    {
      "name": "Custom-analytics"
    },
    {
      "name": "Embeddings"
    },
    {
      "name": "GenerateQuestions"
    },
    {
      "name": "Hiring-managers"
    },
    {
      "name": "Insights"
    },
    {
      "name": "Integrations"
    },
    {
      "name": "Internal"
    },
    {
      "name": "InterviewChat"
    },
    {
      "name": "Interviews"
    },
    {
      "name": "Jd-agent"
    },
    {
      "name": "Jd-agent-backend"
    },
    {
      "name": "Job-application-report"
    },
    {
      "name": "JobApplications"
    },
    {
      "name": "JobApprovers"
    },
    {
      "name": "JobDescription"
    },
    {
      "name": "JobOpenings"
    },
    {
      "name": "Jobs"
    },
    {
      "name": "Marlee"
    },
    {
      "name": "Metrics"
    },
    {
      "name": "NaukriJob"
    },
    {
      "name": "Notes"
    },
    {
      "name": "Notifications"
    },
    {
      "name": "Offers"
    },
    {
      "name": "Og"
    },
    {
      "name": "Onboarding"
    },
    {
      "name": "Permissions"
    },
    {
      "name": "PublicCareer"
    },
    {
      "name": "Reach-out"
    },
    {
      "name": "ReachOut"
    },
    {
      "name": "Recordings"
    },
    {
      "name": "Rekognition"
    },
    {
      "name": "Reports"
    },
    {
      "name": "Screening-report"
    },
    {
      "name": "Send-email"
    },
    {
      "name": "SourcedCandidate"
    },
    {
      "name": "Sourcing"
    },
    {
      "name": "Sse-test"
    },
    {
      "name": "Sse-v2"
    },
    {
      "name": "Storage"
    },
    {
      "name": "Temporal"
    },
    {
      "name": "TemporalMailbox"
    },
    {
      "name": "User-data"
    },
    {
      "name": "Users"
    },
    {
      "name": "Webhooks"
    },
    {
      "name": "Well-known"
    },
    {
      "name": "Whatsapp"
    }
  ]
}
