{
  "$defs": {
    "ActionConfirmResult": {
      "additionalProperties": true,
      "properties": {
        "confirmationId": {
          "type": "string"
        },
        "result": {},
        "state": {
          "const": "completed"
        }
      },
      "required": [
        "confirmationId",
        "state",
        "result"
      ],
      "type": "object"
    },
    "ActionPrepareResult": {
      "oneOf": [
        {
          "additionalProperties": true,
          "properties": {
            "confirmationId": {
              "type": "string"
            },
            "confirmationToken": {
              "type": "string"
            },
            "expiresAt": {
              "type": "string"
            },
            "instruction": {
              "type": "string"
            },
            "operation": {
              "additionalProperties": true,
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "title"
              ],
              "type": "object"
            },
            "preview": {
              "additionalProperties": true,
              "type": "object"
            },
            "state": {
              "const": "pending"
            }
          },
          "required": [
            "confirmationId",
            "state",
            "confirmationToken",
            "expiresAt",
            "operation",
            "preview",
            "instruction"
          ],
          "type": "object"
        },
        {
          "additionalProperties": true,
          "properties": {
            "confirmationId": {
              "type": "string"
            },
            "result": {},
            "state": {
              "const": "completed"
            }
          },
          "required": [
            "confirmationId",
            "state",
            "result"
          ],
          "type": "object"
        }
      ]
    },
    "AutopilotsCreateInput": {
      "additionalProperties": false,
      "properties": {
        "flowId": {
          "description": "Exact active Hiring Review Flow ID.",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "linkCount": {
          "default": 1,
          "description": "Number of independent reusable public access links to generate.",
          "maximum": 20,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "AutopilotsCreateResult": {
      "additionalProperties": true,
      "properties": {
        "autopilotGroupId": {
          "type": "string"
        },
        "capabilityWarning": {
          "type": "string"
        },
        "flowId": {
          "type": "string"
        },
        "flowTitle": {
          "type": "string"
        },
        "publicLinks": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "autopilotGroupId",
        "flowId",
        "flowTitle",
        "publicLinks",
        "capabilityWarning"
      ],
      "type": "object"
    },
    "AutopilotsDeleteInput": {
      "additionalProperties": false,
      "properties": {
        "autopilotGroupId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "description": "Current status read from autopilots.get or autopilots.list; used to prevent a stale destructive action.",
          "enum": [
            "ACTIVE",
            "ARCHIVED"
          ],
          "type": "string"
        }
      },
      "required": [
        "autopilotGroupId",
        "expectedStatus"
      ],
      "type": "object"
    },
    "AutopilotsDeleteResult": {
      "additionalProperties": true,
      "properties": {
        "deleted": {
          "type": "boolean"
        },
        "deletedCheckCount": {
          "type": "number"
        },
        "deletedLinkCount": {
          "type": "number"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "deleted",
        "deletedLinkCount",
        "deletedCheckCount"
      ],
      "type": "object"
    },
    "AutopilotsGetInput": {
      "additionalProperties": false,
      "properties": {
        "autopilotGroupId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "autopilotGroupId"
      ],
      "type": "object"
    },
    "AutopilotsGetResult": {
      "additionalProperties": true,
      "properties": {
        "autopilotGroupId": {
          "type": "string"
        },
        "capabilityWarning": {
          "type": "string"
        },
        "checksTotal": {
          "type": "number"
        },
        "createdAt": {
          "type": "string"
        },
        "flowId": {
          "type": "string"
        },
        "publicLinks": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "status": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "autopilotGroupId",
        "flowId",
        "title",
        "status",
        "createdAt",
        "checksTotal",
        "publicLinks",
        "capabilityWarning"
      ],
      "type": "object"
    },
    "AutopilotsLinksGenerateInput": {
      "additionalProperties": false,
      "properties": {
        "autopilotGroupId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "const": "ACTIVE",
          "default": "ACTIVE",
          "description": "Links can be added only while the Autopilot is ACTIVE.",
          "type": "string"
        },
        "linkCount": {
          "default": 1,
          "description": "Number of independent reusable public access links to generate.",
          "maximum": 20,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "autopilotGroupId"
      ],
      "type": "object"
    },
    "AutopilotsLinksGenerateResult": {
      "additionalProperties": true,
      "properties": {
        "autopilotGroupId": {
          "type": "string"
        },
        "capabilityWarning": {
          "type": "string"
        },
        "flowId": {
          "type": "string"
        },
        "flowTitle": {
          "type": "string"
        },
        "publicLinks": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "autopilotGroupId",
        "flowId",
        "flowTitle",
        "publicLinks",
        "capabilityWarning"
      ],
      "type": "object"
    },
    "AutopilotsListInput": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                }
              ]
            },
            "groupId": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "required": [
            "createdAt",
            "groupId"
          ],
          "type": "object"
        },
        "includeArchived": {
          "default": false,
          "description": "Include archived Autopilots as well as active Autopilots.",
          "type": "boolean"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "AutopilotsListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "_id": {
                "type": "string"
              },
              "checksTotal": {
                "type": "number"
              },
              "flowId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "AutopilotsStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "autopilotGroupId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "enum": [
            "ACTIVE",
            "ARCHIVED"
          ],
          "type": "string"
        },
        "status": {
          "enum": [
            "ACTIVE",
            "ARCHIVED"
          ],
          "type": "string"
        }
      },
      "required": [
        "autopilotGroupId",
        "expectedStatus",
        "status"
      ],
      "type": "object"
    },
    "AutopilotsStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "status",
        "changed"
      ],
      "type": "object"
    },
    "ChecksAddNoteInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "text": {
          "description": "Exact note text the user asked to save.",
          "maxLength": 4000,
          "minLength": 1,
          "type": "string"
        },
        "visibleToTeam": {
          "default": false,
          "description": "False keeps the note private to its author; true shares it with authorized workspace members.",
          "type": "boolean"
        }
      },
      "required": [
        "applicantId",
        "text"
      ],
      "type": "object"
    },
    "ChecksAddNoteResult": {
      "type": "boolean"
    },
    "ChecksAnalyticsInput": {
      "additionalProperties": false,
      "properties": {
        "limit": {
          "default": 25,
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "maximum": 999,
          "minimum": 0,
          "type": "integer"
        },
        "selectedApplicantStatus": {
          "default": [
            "new",
            "inProgress",
            "shortlisted"
          ],
          "description": "Defaults to current Checks. Pass an empty array to include every authorized Check status.",
          "items": {
            "enum": [
              "new",
              "archived",
              "inProgress",
              "shortlisted",
              "rejected",
              "selected"
            ],
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedFlows": {
          "default": [],
          "description": "Exact Flow IDs. Empty means every otherwise-authorized Flow, subject to the cohort bound.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        }
      },
      "type": "object"
    },
    "ChecksAnalyticsResult": {
      "additionalProperties": true,
      "properties": {
        "evaluatedCandidateCount": {
          "type": "number"
        },
        "exactCohort": {
          "type": "boolean"
        },
        "flowCohorts": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "applicantId": {
                "type": "string"
              },
              "detailOperation": {
                "type": "string"
              },
              "evidenceSummary": {
                "type": "string"
              },
              "matchingScore": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "matchingScorePercent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "rankWithinFlow": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "scoredCandidateCount": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextOffset": {
          "type": [
            "number",
            "null"
          ]
        },
        "offset": {
          "type": "number"
        },
        "returnedCandidateCount": {
          "type": "number"
        },
        "safety": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "items",
        "flowCohorts",
        "evaluatedCandidateCount",
        "returnedCandidateCount",
        "offset",
        "nextOffset",
        "exactCohort",
        "hasMore",
        "safety"
      ],
      "type": "object"
    },
    "ChecksBulkCreateInput": {
      "additionalProperties": false,
      "properties": {
        "applicants": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "email": {
                "format": "email",
                "maxLength": 254,
                "type": "string"
              },
              "fullName": {
                "maxLength": 180,
                "minLength": 1,
                "type": "string"
              },
              "sourceRowNumber": {
                "description": "Original one-based spreadsheet row number for preview and error reporting.",
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "fullName",
              "email"
            ],
            "type": "object"
          },
          "maxItems": 250,
          "minItems": 1,
          "type": "array"
        },
        "flowId": {
          "description": "Exact authorized Hiring Review Flow ID.",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "applicants"
      ],
      "type": "object"
    },
    "ChecksBulkCreateResult": {
      "additionalProperties": true,
      "properties": {
        "checks": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "createdCount": {
          "type": "number"
        },
        "errorCount": {
          "type": "number"
        }
      },
      "required": [
        "createdCount",
        "errorCount",
        "checks"
      ],
      "type": "object"
    },
    "ChecksDeleteInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "description": "Current status read from checks.get or checks.list; used to prevent a stale destructive action.",
          "enum": [
            "new",
            "archived",
            "inProgress",
            "shortlisted",
            "rejected",
            "selected"
          ],
          "type": "string"
        }
      },
      "required": [
        "applicantId",
        "expectedStatus"
      ],
      "type": "object"
    },
    "ChecksDeleteResult": {
      "additionalProperties": true,
      "properties": {
        "deleted": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "deleted"
      ],
      "type": "object"
    },
    "ChecksGetInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "includeEvidence": {
          "default": true,
          "description": "Include the authorized evidence view. Set false only when profile metadata is sufficient.",
          "type": "boolean"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ChecksGetResult": {
      "additionalProperties": true,
      "properties": {
        "evidence": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "evidenceIncluded": {
          "type": "boolean"
        },
        "profile": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "profile",
        "evidenceIncluded",
        "evidence"
      ],
      "type": "object"
    },
    "ChecksListInput": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "required": [
            "createdAt",
            "id"
          ],
          "type": "object"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        },
        "selectedApplicantStatus": {
          "default": [
            "new",
            "inProgress",
            "shortlisted"
          ],
          "description": "Defaults to current Checks. Pass an empty array to include every authorized Check status.",
          "items": {
            "enum": [
              "new",
              "archived",
              "inProgress",
              "shortlisted",
              "rejected",
              "selected"
            ],
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedFlows": {
          "default": [],
          "description": "Exact Flow IDs. A non-empty list automatically enables the Flow filter.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "ChecksListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "_id": {
                "type": "string"
              },
              "firstName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "flowId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lastName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "ChecksPublicProfilesFindInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "profileMatchingDetails": {
          "additionalProperties": false,
          "description": "Optional corroborating identity and location hints. Jointl also reuses the Check name, email, stored verification location, and confirmed profile links.",
          "properties": {
            "aliases": {
              "items": {
                "maxLength": 256,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 8,
              "type": "array"
            },
            "cities": {
              "items": {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 8,
              "type": "array"
            },
            "fullName": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "profileUrls": {
              "items": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 16,
              "type": "array"
            },
            "relevantCountries": {
              "items": {
                "pattern": "^[A-Za-z]{2}$",
                "type": "string"
              },
              "maxItems": 12,
              "type": "array"
            },
            "states": {
              "items": {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 8,
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ChecksPublicProfilesFindResult": {
      "additionalProperties": true,
      "properties": {
        "alreadyRunning": {
          "type": "boolean"
        },
        "applicantId": {
          "type": "string"
        },
        "matchCount": {
          "type": "number"
        },
        "rescored": {
          "type": "boolean"
        },
        "runId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "applicantId",
        "runId",
        "status"
      ],
      "type": "object"
    },
    "ChecksPublicProfilesGetInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ChecksPublicProfilesGetResult": {
      "additionalProperties": true,
      "properties": {
        "entitled": {
          "type": "boolean"
        },
        "latestRun": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "previousCompletedRun": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "serviceUnavailable": {
          "type": "boolean"
        },
        "subjectRef": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "subjectRef",
        "latestRun",
        "entitled"
      ],
      "type": "object"
    },
    "ChecksReportInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ChecksReportResult": {
      "additionalProperties": true,
      "properties": {
        "assessment": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "company": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "crossVerifiedAttributeScores": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "flow": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "flowRequest": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "keyAchievements": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "matchingScore": {
          "type": [
            "number",
            "null"
          ]
        },
        "preScreening": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "references": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "referencesAvgMetrics": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "flow",
        "company",
        "flowRequest",
        "preScreening",
        "assessment",
        "references",
        "referencesAvgMetrics",
        "crossVerifiedAttributeScores",
        "keyAchievements",
        "matchingScore"
      ],
      "type": "object"
    },
    "ChecksStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "description": "Current status read from checks.get or checks.list; used for concurrency safety.",
          "enum": [
            "new",
            "archived",
            "inProgress",
            "shortlisted",
            "rejected",
            "selected"
          ],
          "type": "string"
        },
        "status": {
          "description": "New Check status. selected is intentionally excluded because selection creates an Employee.",
          "enum": [
            "new",
            "archived",
            "inProgress",
            "shortlisted",
            "rejected"
          ],
          "type": "string"
        }
      },
      "required": [
        "applicantId",
        "expectedStatus",
        "status"
      ],
      "type": "object"
    },
    "ChecksStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "status",
        "changed"
      ],
      "type": "object"
    },
    "ChecksVerificationsGetInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ChecksVerificationsGetResult": {
      "additionalProperties": true,
      "properties": {
        "applicantId": {
          "type": "string"
        },
        "canRunAny": {
          "type": "boolean"
        },
        "serviceUnavailable": {
          "type": "boolean"
        },
        "verificationEligibility": {
          "additionalProperties": true,
          "type": "object"
        },
        "verifications": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "applicantId",
        "canRunAny",
        "verifications",
        "verificationEligibility"
      ],
      "type": "object"
    },
    "ChecksVerificationsRunAllInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ChecksVerificationsRunAllResult": {
      "additionalProperties": true,
      "properties": {
        "applicantId": {
          "type": "string"
        },
        "runGroupId": {
          "type": "string"
        },
        "runs": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "applicantId",
        "runGroupId",
        "runs"
      ],
      "type": "object"
    },
    "CompaniesListInput": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "required": [
            "createdAt",
            "id"
          ],
          "type": "object"
        },
        "includeArchived": {
          "default": false,
          "description": "Include archived companies; active companies are returned by default.",
          "type": "boolean"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "CompaniesListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "EmployeesAddNoteInput": {
      "additionalProperties": false,
      "properties": {
        "employeeId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "text": {
          "description": "Exact note text the user asked to save.",
          "maxLength": 4000,
          "minLength": 1,
          "type": "string"
        },
        "visibleToTeam": {
          "default": false,
          "description": "False keeps the note private to its author; true shares it with authorized workspace members.",
          "type": "boolean"
        }
      },
      "required": [
        "employeeId",
        "text"
      ],
      "type": "object"
    },
    "EmployeesAddNoteResult": {
      "type": "boolean"
    },
    "EmployeesAnalyticsInput": {
      "additionalProperties": false,
      "properties": {
        "endDate": {
          "description": "Inclusive UTC evidence end date in YYYY-MM-DD. Omit both dates for the trailing six-month default.",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "limit": {
          "default": 25,
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "maximum": 499,
          "minimum": 0,
          "type": "integer"
        },
        "selectedCompanies": {
          "default": [],
          "description": "Exact Jointl company IDs; empty means every authorized company, subject to the cohort bound.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedEmployeeStatus": {
          "default": [
            "active"
          ],
          "description": "Defaults to active Employees. Pass an empty array to include every authorized Employee status.",
          "items": {
            "enum": [
              "active",
              "left"
            ],
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedTags": {
          "default": [],
          "description": "Exact Jointl tag IDs; empty means every tag.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "startDate": {
          "description": "Inclusive UTC evidence start date in YYYY-MM-DD. Omit both dates for the trailing six-month default.",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        }
      },
      "type": "object"
    },
    "EmployeesAnalyticsResult": {
      "additionalProperties": true,
      "properties": {
        "evaluatedEmployeeCount": {
          "type": "number"
        },
        "evidenceWindow": {
          "additionalProperties": true,
          "properties": {
            "endDate": {
              "type": [
                "string",
                "null"
              ]
            },
            "inclusive": {
              "type": "boolean"
            },
            "startDate": {
              "type": [
                "string",
                "null"
              ]
            },
            "timeZone": {
              "type": "string"
            }
          },
          "required": [
            "startDate",
            "endDate",
            "inclusive",
            "timeZone"
          ],
          "type": "object"
        },
        "exactCohort": {
          "type": "boolean"
        },
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "attentionSignals": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "detailOperation": {
                "type": "string"
              },
              "employeeId": {
                "type": "string"
              },
              "evidenceSummary": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "performanceScore": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "performanceScorePercent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "rankWithinVisibleCohort": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "visibleCohortSize": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextOffset": {
          "type": [
            "number",
            "null"
          ]
        },
        "offset": {
          "type": "number"
        },
        "returnedEmployeeCount": {
          "type": "number"
        },
        "safety": {
          "additionalProperties": true,
          "type": "object"
        },
        "scoredEmployeeCount": {
          "type": "number"
        }
      },
      "required": [
        "items",
        "evaluatedEmployeeCount",
        "scoredEmployeeCount",
        "returnedEmployeeCount",
        "offset",
        "nextOffset",
        "evidenceWindow",
        "exactCohort",
        "hasMore",
        "safety"
      ],
      "type": "object"
    },
    "EmployeesBulkImportInput": {
      "additionalProperties": false,
      "properties": {
        "employees": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "companyId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              },
              "companyName": {
                "maxLength": 180,
                "minLength": 1,
                "type": "string"
              },
              "compensation": {
                "additionalProperties": false,
                "properties": {
                  "currency": {
                    "maxLength": 3,
                    "minLength": 3,
                    "type": "string"
                  },
                  "effectiveAt": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "grossAmount": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "netAmount": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "payPeriod": {
                    "enum": [
                      "annual",
                      "monthly",
                      "weekly",
                      "daily",
                      "hourly"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "email": {
                "format": "email",
                "maxLength": 254,
                "type": "string"
              },
              "employeeId": {
                "description": "Exact existing Employee ID. Required only in update mode.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              },
              "endAt": {
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "type": "string"
              },
              "fullName": {
                "maxLength": 180,
                "minLength": 1,
                "type": "string"
              },
              "managerColumnMapped": {
                "description": "True only when the uploaded file explicitly mapped a manager column; false preserves an existing matching position manager.",
                "type": "boolean"
              },
              "managerName": {
                "description": "Manager full name from the mapped column. Jointl resolves only an unambiguous existing Employee.",
                "maxLength": 180,
                "minLength": 1,
                "type": "string"
              },
              "positionId": {
                "description": "Exact work-record ID on employeeId. Required only in update mode.",
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              },
              "positionTitle": {
                "maxLength": 180,
                "minLength": 1,
                "type": "string"
              },
              "sourceRowNumber": {
                "description": "Original one-based spreadsheet row number for preview and error reporting.",
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              "startAt": {
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "type": "string"
              },
              "tagNames": {
                "description": "Tag names parsed from the mapped column. Missing names are created only on confirmation.",
                "items": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 50,
                "type": "array"
              },
              "tagsColumnMapped": {
                "description": "True only when the uploaded file explicitly mapped a tags column; false preserves existing tags on a matching position.",
                "type": "boolean"
              }
            },
            "required": [
              "fullName",
              "companyId",
              "positionTitle",
              "startAt"
            ],
            "type": "object"
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        },
        "mode": {
          "default": "upsert",
          "description": "upsert applies Jointl Employee matching; create rejects existing matches; update requires exact employeeId and positionId values.",
          "enum": [
            "upsert",
            "create",
            "update"
          ],
          "type": "string"
        }
      },
      "required": [
        "employees"
      ],
      "type": "object"
    },
    "EmployeesBulkImportResult": {
      "additionalProperties": true,
      "properties": {
        "createdCount": {
          "type": "number"
        },
        "employees": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "employeeId": {
                "type": "string"
              },
              "fullName": {
                "type": "string"
              },
              "outcome": {
                "type": "string"
              },
              "positionIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "rows": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "status": {
                "type": "string"
              },
              "workRecords": {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "companyId": {
                      "type": "string"
                    },
                    "companyName": {
                      "type": "string"
                    },
                    "endAt": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "positionId": {
                      "type": "string"
                    },
                    "positionTitle": {
                      "type": "string"
                    },
                    "startAt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "positionId",
                    "companyId",
                    "companyName",
                    "positionTitle",
                    "startAt"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "employeeId",
              "outcome",
              "fullName",
              "status",
              "positionIds",
              "workRecords",
              "rows"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "errorCount": {
          "type": "number"
        },
        "errors": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "count": {
                "type": "number"
              },
              "reason": {
                "type": "string"
              },
              "rows": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            },
            "required": [
              "count",
              "rows",
              "reason"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "unchangedCount": {
          "type": "number"
        },
        "updatedCount": {
          "type": "number"
        }
      },
      "required": [
        "createdCount",
        "updatedCount",
        "unchangedCount",
        "errorCount",
        "employees",
        "errors"
      ],
      "type": "object"
    },
    "EmployeesDeleteInput": {
      "additionalProperties": false,
      "properties": {
        "employeeId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "description": "Current status read from employees.get or employees.list; used to prevent a stale destructive action.",
          "enum": [
            "active",
            "left"
          ],
          "type": "string"
        }
      },
      "required": [
        "employeeId",
        "expectedStatus"
      ],
      "type": "object"
    },
    "EmployeesDeleteResult": {
      "additionalProperties": true,
      "properties": {
        "deleted": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "deleted"
      ],
      "type": "object"
    },
    "EmployeesExitIntelligenceGetInput": {
      "additionalProperties": false,
      "properties": {
        "employeeId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "requestId": {
          "description": "Optional exact Exit Intelligence request ID from a trigger; omitted means the latest visible request.",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "employeeId"
      ],
      "type": "object"
    },
    "EmployeesExitIntelligenceGetResult": {
      "additionalProperties": true,
      "properties": {
        "employee": {
          "additionalProperties": true,
          "type": "object"
        },
        "requests": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "employee",
        "requests"
      ],
      "type": "object"
    },
    "EmployeesGetInput": {
      "additionalProperties": false,
      "properties": {
        "employeeId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "includeEvidence": {
          "default": true,
          "description": "Include the authorized evidence view. Set false only when profile metadata is sufficient.",
          "type": "boolean"
        }
      },
      "required": [
        "employeeId"
      ],
      "type": "object"
    },
    "EmployeesGetResult": {
      "additionalProperties": true,
      "properties": {
        "evidence": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "evidenceIncluded": {
          "type": "boolean"
        },
        "profile": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "profile",
        "evidenceIncluded",
        "evidence"
      ],
      "type": "object"
    },
    "EmployeesListInput": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "required": [
            "createdAt",
            "id"
          ],
          "type": "object"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        },
        "selectedCompanies": {
          "default": [],
          "description": "Exact Jointl company IDs; empty means every authorized company.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedEmployeeStatus": {
          "default": [
            "active"
          ],
          "description": "Defaults to active Employees. Pass an empty array to include every authorized Employee status.",
          "items": {
            "enum": [
              "active",
              "left"
            ],
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedTags": {
          "default": [],
          "description": "Exact Jointl tag IDs; empty means every tag.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "EmployeesListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "_id": {
                "type": "string"
              },
              "companyId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "fullName": {
                "type": "string"
              },
              "positionTitle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "EmployeesStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "employeeId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "exitIntelligenceFlowId": {
          "description": "Optional active Exit Intelligence Flow to launch after marking the Employee left.",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "expectedStatus": {
          "description": "Current status read from employees.get or employees.list; used for concurrency safety.",
          "enum": [
            "active",
            "left"
          ],
          "type": "string"
        },
        "positionEndAt": {
          "description": "One leaving date to apply to every active position. Do not combine with positionEndDates.",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "positionEndDates": {
          "default": [],
          "description": "When marking left, provide an end date for every active position returned by employees.get.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "endAt": {
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "type": "string"
              },
              "positionId": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              }
            },
            "required": [
              "positionId",
              "endAt"
            ],
            "type": "object"
          },
          "maxItems": 50,
          "type": "array"
        },
        "status": {
          "enum": [
            "active",
            "left"
          ],
          "type": "string"
        }
      },
      "required": [
        "employeeId",
        "expectedStatus",
        "status"
      ],
      "type": "object"
    },
    "EmployeesStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "status",
        "changed"
      ],
      "type": "object"
    },
    "EventsGetInput": {
      "additionalProperties": false,
      "properties": {
        "eventId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "eventId"
      ],
      "type": "object"
    },
    "EventsGetResult": {
      "additionalProperties": true,
      "type": "object"
    },
    "EventsListInput": {
      "additionalProperties": false,
      "properties": {
        "eventType": {
          "enum": [
            "check.created",
            "check.status_changed",
            "check.completed",
            "verification.completed",
            "verification.failed",
            "public_profiles.completed",
            "public_profiles.failed",
            "reference.completed",
            "employee.created",
            "employee.updated",
            "employee.status_changed",
            "exit_intelligence.requested",
            "exit_intelligence.completed",
            "talent.created",
            "talent.updated",
            "talent.status_changed"
          ],
          "type": "string"
        },
        "filters": {
          "additionalProperties": false,
          "default": {},
          "properties": {
            "changedField": {
              "enum": [
                "full_name",
                "email",
                "work_record",
                "company",
                "position_title",
                "manager",
                "tags",
                "start_date",
                "end_date",
                "compensation",
                "profile",
                "status",
                "other"
              ],
              "type": "string"
            },
            "companyId": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            },
            "flowId": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "type": "object"
        },
        "limit": {
          "default": 3,
          "maximum": 3,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "eventType"
      ],
      "type": "object"
    },
    "EventsListResult": {
      "additionalProperties": true,
      "properties": {
        "items": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "items"
      ],
      "type": "object"
    },
    "FlowsBlueprintGetInput": {
      "additionalProperties": false,
      "properties": {
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "FlowsBlueprintGetResult": {
      "additionalProperties": true,
      "properties": {
        "design": {
          "additionalProperties": true,
          "type": "object"
        },
        "editableDesign": {
          "additionalProperties": true,
          "type": "object"
        },
        "flow": {
          "additionalProperties": true,
          "type": "object"
        },
        "revision": {
          "type": "string"
        },
        "safety": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "flow",
        "design",
        "editableDesign",
        "revision",
        "safety"
      ],
      "type": "object"
    },
    "FlowsCapabilitiesGetInput": {
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    },
    "FlowsCapabilitiesGetResult": {
      "additionalProperties": true,
      "properties": {
        "authoringProtocol": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "decisionSupport": {
          "additionalProperties": true,
          "type": "object"
        },
        "draftWriteSupport": {
          "additionalProperties": true,
          "type": "object"
        },
        "flowTypes": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "liveAccess": {
          "additionalProperties": true,
          "type": "object"
        },
        "protectedActions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "sections": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "structuredReferenceQuestionTypes": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "supportedAuthoredQuestionTypes": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "flowTypes",
        "sections",
        "supportedAuthoredQuestionTypes",
        "structuredReferenceQuestionTypes",
        "draftWriteSupport",
        "liveAccess",
        "decisionSupport",
        "authoringProtocol",
        "protectedActions"
      ],
      "type": "object"
    },
    "FlowsDeleteInput": {
      "additionalProperties": false,
      "properties": {
        "expectedStatus": {
          "description": "Current status read from flows.get or flows.blueprint.get; used to prevent a stale destructive action.",
          "enum": [
            "ACTIVE",
            "DRAFT",
            "ARCHIVED"
          ],
          "type": "string"
        },
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "expectedStatus"
      ],
      "type": "object"
    },
    "FlowsDeleteResult": {
      "additionalProperties": true,
      "properties": {
        "deleted": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "deleted"
      ],
      "type": "object"
    },
    "FlowsDraftCreateInput": {
      "additionalProperties": false,
      "properties": {
        "design": {
          "additionalProperties": false,
          "properties": {
            "authoredTemplates": {
              "additionalProperties": false,
              "default": {},
              "description": "Original template/question blocks to create with this draft. Every evaluative multiple-choice question uses explicit non-flat option scores; Tests may also use native scale scoring. Open text is qualitative context without an attribute; unsupported types and automation are rejected.",
              "properties": {
                "assessmentQuestions": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "assessmentTests": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "exitIntelligence": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "preScreening": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "references": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "teamPulse": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                }
              },
              "type": "object"
            },
            "clearCopyOverrideFields": {
              "default": [],
              "description": "On a draft revision, reset only these existing copy overrides to Jointl defaults.",
              "items": {
                "enum": [
                  "welcomeScreen",
                  "referenceCheckingCandidateScreen",
                  "thankYouScreen",
                  "welcomeEmail",
                  "reminderWelcomeEmail",
                  "emailRequestToReferee",
                  "reminderEmailRequestToReferee",
                  "thankYouEmail",
                  "teamPulseEmailRequestToEmployee",
                  "teamPulseReminderEmailRequestToEmployee"
                ],
                "type": "string"
              },
              "maxItems": 10,
              "type": "array"
            },
            "companyId": {
              "description": "Exact companies.list ID. Required for HIRING_REVIEW and must be within the member's current company access.",
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            },
            "copyOverrides": {
              "additionalProperties": false,
              "default": {},
              "description": "Override only copy whose native Jointl default materially conflicts with this Flow; omit ordinary defaults.",
              "properties": {
                "emailRequestToReferee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "referenceCheckingCandidateScreen": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "reminderEmailRequestToReferee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "reminderWelcomeEmail": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "teamPulseEmailRequestToEmployee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "teamPulseReminderEmailRequestToEmployee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "thankYouEmail": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "thankYouScreen": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "welcomeEmail": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "welcomeScreen": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "jobTitle": {
              "description": "Job title assessed by a HIRING_REVIEW Flow; required for that type.",
              "maxLength": 80,
              "minLength": 1,
              "type": "string"
            },
            "matchingScoreAttributes": {
              "default": [],
              "description": "Up to 15 job-related attributes used by Jointl Matching Score, deliberately ordered from highest to lowest importance. With N attributes, Jointl applies linear weights N through 1 in this exact order. Every Hiring Review attribute must have at least one selected or authored question with valid numeric scoring.",
              "items": {
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 15,
              "type": "array"
            },
            "performance": {
              "additionalProperties": false,
              "description": "Required complete participant and cadence configuration for PERFORMANCE Flows; omit for other types.",
              "properties": {
                "employeeIds": {
                  "description": "Exact visible Employee IDs who participate in enabled Glow Moments and Team Pulse cycles.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 250,
                  "type": "array"
                },
                "glowMoments": {
                  "additionalProperties": false,
                  "properties": {
                    "cadence": {
                      "additionalProperties": false,
                      "properties": {
                        "firstSendAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "ISO 8601 date-time for the first Glow Moments send."
                        },
                        "interval": {
                          "enum": [
                            "MONTHLY",
                            "QUARTERLY"
                          ],
                          "type": "string"
                        },
                        "mode": {
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ],
                          "type": "string"
                        },
                        "repeatUntil": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "Optional inclusive end date-time for a recurring cadence."
                        }
                      },
                      "required": [
                        "mode",
                        "firstSendAt"
                      ],
                      "type": "object"
                    },
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "enabled"
                  ],
                  "type": "object"
                },
                "teamPulse": {
                  "additionalProperties": false,
                  "properties": {
                    "cadence": {
                      "additionalProperties": false,
                      "properties": {
                        "firstSendAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "ISO 8601 date-time for the first Team Pulse send."
                        },
                        "interval": {
                          "enum": [
                            "MONTHLY",
                            "QUARTERLY",
                            "SEMI_ANNUAL"
                          ],
                          "type": "string"
                        },
                        "mode": {
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ],
                          "type": "string"
                        },
                        "repeatUntil": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "Optional inclusive end date-time for a recurring cadence."
                        }
                      },
                      "required": [
                        "mode",
                        "firstSendAt"
                      ],
                      "type": "object"
                    },
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "enabled"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "employeeIds",
                "glowMoments",
                "teamPulse"
              ],
              "type": "object"
            },
            "referenceCollection": {
              "additionalProperties": false,
              "description": "Hiring Review reference collection mode and thresholds; omit for other Flow types.",
              "properties": {
                "method": {
                  "default": "AUTO",
                  "enum": [
                    "AUTO",
                    "MANUAL"
                  ],
                  "type": "string"
                },
                "minReferenceCount": {
                  "default": 3,
                  "maximum": 10,
                  "minimum": 1,
                  "type": "integer"
                },
                "minReferenceGap": {
                  "default": 1,
                  "maximum": 10,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "tagIds": {
              "default": [],
              "description": "Existing Jointl tag IDs to attach.",
              "items": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              },
              "maxItems": 40,
              "type": "array"
            },
            "templateIds": {
              "additionalProperties": false,
              "default": {},
              "description": "Existing visible templates selected by category.",
              "properties": {
                "assessmentQuestions": {
                  "default": [],
                  "description": "Existing assessment-question template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "assessmentTests": {
                  "default": [],
                  "description": "Existing visible Test template IDs. Search Private and Public Test Libraries before authoring a new Test.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "exitIntelligence": {
                  "default": [],
                  "description": "Existing Exit Intelligence template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "preScreening": {
                  "default": [],
                  "description": "Existing pre-screening template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "references": {
                  "default": [],
                  "description": "Existing reference template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "teamPulse": {
                  "default": [],
                  "description": "Existing Team Pulse template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                }
              },
              "type": "object"
            },
            "title": {
              "description": "Human-readable Flow title.",
              "maxLength": 80,
              "minLength": 1,
              "type": "string"
            },
            "type": {
              "description": "Flow type. The allowed sections depend on this value.",
              "enum": [
                "HIRING_REVIEW",
                "EXIT_INTELLIGENCE",
                "PERFORMANCE"
              ],
              "type": "string"
            }
          },
          "required": [
            "title",
            "type"
          ],
          "type": "object"
        }
      },
      "required": [
        "design"
      ],
      "type": "object"
    },
    "FlowsDraftCreateResult": {
      "additionalProperties": true,
      "properties": {
        "configuration": {
          "additionalProperties": true,
          "type": "object"
        },
        "createdTemplateIds": {
          "additionalProperties": true,
          "type": "object"
        },
        "flowId": {
          "type": "string"
        },
        "publicProfilesEnabled": {
          "type": "boolean"
        },
        "revision": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "talentPoolEnabled": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "title",
        "type",
        "status",
        "revision",
        "createdTemplateIds",
        "publicProfilesEnabled",
        "talentPoolEnabled",
        "configuration"
      ],
      "type": "object"
    },
    "FlowsDraftReviseInput": {
      "additionalProperties": false,
      "properties": {
        "design": {
          "additionalProperties": false,
          "properties": {
            "authoredTemplates": {
              "additionalProperties": false,
              "default": {},
              "description": "Original template/question blocks to create with this draft. Every evaluative multiple-choice question uses explicit non-flat option scores; Tests may also use native scale scoring. Open text is qualitative context without an attribute; unsupported types and automation are rejected.",
              "properties": {
                "assessmentQuestions": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "assessmentTests": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "exitIntelligence": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "preScreening": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "references": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "teamPulse": {
                  "default": [],
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "clientRef": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                        "type": "string"
                      },
                      "confetti": {
                        "default": true,
                        "type": "boolean"
                      },
                      "conversationMode": {
                        "default": true,
                        "type": "boolean"
                      },
                      "questions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "aiFollowUpEnabled": {
                              "default": false,
                              "description": "Enable only for a critical open-text question where a vague or incomplete answer needs an adaptive follow-up.",
                              "type": "boolean"
                            },
                            "attribute": {
                              "description": "One exact numeric evidence attribute from design.matchingScoreAttributes. Omit for open-text narratives and all other non-scored questions.",
                              "maxLength": 120,
                              "minLength": 1,
                              "type": "string"
                            },
                            "clientRef": {
                              "maxLength": 64,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                              "type": "string"
                            },
                            "evidenceRole": {
                              "default": "evaluative",
                              "description": "Evaluative means the question produces a numeric Matching Score input and requires an attribute. Use context for qualitative narratives, logistics, consent, relationship context, or any other unscored prompt.",
                              "enum": [
                                "evaluative",
                                "context"
                              ],
                              "type": "string"
                            },
                            "insightsExtraction": {
                              "description": "Enable for substantive Reference, Exit Intelligence, or Team Pulse narratives. Structured reference types default to enabled except employmentCheck.",
                              "type": "boolean"
                            },
                            "maxAnswers": {
                              "default": 1,
                              "description": "Maximum options a respondent may select. Use 1 for single-answer multiple choice; when the prompt states a limit such as “choose up to three”, set this to that exact limit.",
                              "maximum": 20,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "options": {
                              "items": {
                                "anyOf": [
                                  {
                                    "maxLength": 200,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "score": {
                                        "description": "Non-negative numeric score for this answer. Required on every option of an evaluative multiple-choice question, with at least two distinct scores.",
                                        "maximum": 100,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "title": {
                                        "maxLength": 200,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ],
                                    "type": "object"
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 2,
                              "type": "array"
                            },
                            "prompt": {
                              "maxLength": 1500,
                              "minLength": 1,
                              "type": "string"
                            },
                            "scoringPoints": {
                              "description": "Optional start/end score mapping for an authored Test scale; reverse order enables reverse scoring.",
                              "items": {
                                "maximum": 100,
                                "minimum": -100,
                                "type": "number"
                              },
                              "maxItems": 2,
                              "minItems": 2,
                              "type": "array"
                            },
                            "type": {
                              "description": "Question type. Reference forms also support the structured single-use types strengths, keyAchievements, weaknesses, reasonsForLeavingJob, and employmentCheck.",
                              "enum": [
                                "shortText",
                                "longText",
                                "multipleChoice",
                                "opinionScale",
                                "rating",
                                "precisionScale",
                                "strengths",
                                "keyAchievements",
                                "weaknesses",
                                "reasonsForLeavingJob",
                                "employmentCheck"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "clientRef",
                            "type",
                            "prompt"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "thankYouScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific completion copy; omit when the native template default fits.",
                        "properties": {
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      },
                      "title": {
                        "maxLength": 120,
                        "minLength": 1,
                        "type": "string"
                      },
                      "welcomeScreen": {
                        "additionalProperties": false,
                        "description": "Optional form-specific welcome copy; omit when the native template default fits.",
                        "properties": {
                          "button": {
                            "default": "Begin",
                            "maxLength": 80,
                            "minLength": 1,
                            "type": "string"
                          },
                          "content": {
                            "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                            "maxLength": 6000,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "clientRef",
                      "title",
                      "questions"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                }
              },
              "type": "object"
            },
            "clearCopyOverrideFields": {
              "default": [],
              "description": "On a draft revision, reset only these existing copy overrides to Jointl defaults.",
              "items": {
                "enum": [
                  "welcomeScreen",
                  "referenceCheckingCandidateScreen",
                  "thankYouScreen",
                  "welcomeEmail",
                  "reminderWelcomeEmail",
                  "emailRequestToReferee",
                  "reminderEmailRequestToReferee",
                  "thankYouEmail",
                  "teamPulseEmailRequestToEmployee",
                  "teamPulseReminderEmailRequestToEmployee"
                ],
                "type": "string"
              },
              "maxItems": 10,
              "type": "array"
            },
            "companyId": {
              "description": "Exact companies.list ID. Required for HIRING_REVIEW and must be within the member's current company access.",
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            },
            "copyOverrides": {
              "additionalProperties": false,
              "default": {},
              "description": "Override only copy whose native Jointl default materially conflicts with this Flow; omit ordinary defaults.",
              "properties": {
                "emailRequestToReferee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "referenceCheckingCandidateScreen": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "reminderEmailRequestToReferee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "reminderWelcomeEmail": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "teamPulseEmailRequestToEmployee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "teamPulseReminderEmailRequestToEmployee": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "thankYouEmail": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "thankYouScreen": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "welcomeEmail": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                },
                "welcomeScreen": {
                  "description": "Plain text only; separate title and paragraphs with newlines. Supported ##...## placeholders are preserved.",
                  "maxLength": 6000,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "type": "object"
            },
            "jobTitle": {
              "description": "Job title assessed by a HIRING_REVIEW Flow; required for that type.",
              "maxLength": 80,
              "minLength": 1,
              "type": "string"
            },
            "matchingScoreAttributes": {
              "default": [],
              "description": "Up to 15 job-related attributes used by Jointl Matching Score, deliberately ordered from highest to lowest importance. With N attributes, Jointl applies linear weights N through 1 in this exact order. Every Hiring Review attribute must have at least one selected or authored question with valid numeric scoring.",
              "items": {
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 15,
              "type": "array"
            },
            "performance": {
              "additionalProperties": false,
              "description": "Required complete participant and cadence configuration for PERFORMANCE Flows; omit for other types.",
              "properties": {
                "employeeIds": {
                  "description": "Exact visible Employee IDs who participate in enabled Glow Moments and Team Pulse cycles.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 250,
                  "type": "array"
                },
                "glowMoments": {
                  "additionalProperties": false,
                  "properties": {
                    "cadence": {
                      "additionalProperties": false,
                      "properties": {
                        "firstSendAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "ISO 8601 date-time for the first Glow Moments send."
                        },
                        "interval": {
                          "enum": [
                            "MONTHLY",
                            "QUARTERLY"
                          ],
                          "type": "string"
                        },
                        "mode": {
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ],
                          "type": "string"
                        },
                        "repeatUntil": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "Optional inclusive end date-time for a recurring cadence."
                        }
                      },
                      "required": [
                        "mode",
                        "firstSendAt"
                      ],
                      "type": "object"
                    },
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "enabled"
                  ],
                  "type": "object"
                },
                "teamPulse": {
                  "additionalProperties": false,
                  "properties": {
                    "cadence": {
                      "additionalProperties": false,
                      "properties": {
                        "firstSendAt": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "ISO 8601 date-time for the first Team Pulse send."
                        },
                        "interval": {
                          "enum": [
                            "MONTHLY",
                            "QUARTERLY",
                            "SEMI_ANNUAL"
                          ],
                          "type": "string"
                        },
                        "mode": {
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ],
                          "type": "string"
                        },
                        "repeatUntil": {
                          "anyOf": [
                            {
                              "format": "date-time",
                              "type": "string"
                            },
                            {
                              "format": "date-time",
                              "type": "string"
                            }
                          ],
                          "description": "Optional inclusive end date-time for a recurring cadence."
                        }
                      },
                      "required": [
                        "mode",
                        "firstSendAt"
                      ],
                      "type": "object"
                    },
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "enabled"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "employeeIds",
                "glowMoments",
                "teamPulse"
              ],
              "type": "object"
            },
            "referenceCollection": {
              "additionalProperties": false,
              "description": "Hiring Review reference collection mode and thresholds; omit for other Flow types.",
              "properties": {
                "method": {
                  "default": "AUTO",
                  "enum": [
                    "AUTO",
                    "MANUAL"
                  ],
                  "type": "string"
                },
                "minReferenceCount": {
                  "default": 3,
                  "maximum": 10,
                  "minimum": 1,
                  "type": "integer"
                },
                "minReferenceGap": {
                  "default": 1,
                  "maximum": 10,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "tagIds": {
              "default": [],
              "description": "Existing Jointl tag IDs to attach.",
              "items": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              },
              "maxItems": 40,
              "type": "array"
            },
            "templateIds": {
              "additionalProperties": false,
              "default": {},
              "description": "Existing visible templates selected by category.",
              "properties": {
                "assessmentQuestions": {
                  "default": [],
                  "description": "Existing assessment-question template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "assessmentTests": {
                  "default": [],
                  "description": "Existing visible Test template IDs. Search Private and Public Test Libraries before authoring a new Test.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "exitIntelligence": {
                  "default": [],
                  "description": "Existing Exit Intelligence template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "preScreening": {
                  "default": [],
                  "description": "Existing pre-screening template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "references": {
                  "default": [],
                  "description": "Existing reference template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                },
                "teamPulse": {
                  "default": [],
                  "description": "Existing Team Pulse template IDs.",
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "type": "string"
                  },
                  "maxItems": 40,
                  "type": "array"
                }
              },
              "type": "object"
            },
            "title": {
              "description": "Human-readable Flow title.",
              "maxLength": 80,
              "minLength": 1,
              "type": "string"
            },
            "type": {
              "description": "Flow type. The allowed sections depend on this value.",
              "enum": [
                "HIRING_REVIEW",
                "EXIT_INTELLIGENCE",
                "PERFORMANCE"
              ],
              "type": "string"
            }
          },
          "required": [
            "title",
            "type"
          ],
          "type": "object"
        },
        "expectedRevision": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "format": "date-time",
              "type": "string"
            }
          ]
        },
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "expectedRevision",
        "design"
      ],
      "type": "object"
    },
    "FlowsDraftReviseResult": {
      "additionalProperties": true,
      "properties": {
        "configuration": {
          "additionalProperties": true,
          "type": "object"
        },
        "createdTemplateIds": {
          "additionalProperties": true,
          "type": "object"
        },
        "flowId": {
          "type": "string"
        },
        "publicProfilesEnabled": {
          "type": "boolean"
        },
        "revision": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "talentPoolEnabled": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "title",
        "type",
        "status",
        "revision",
        "createdTemplateIds",
        "publicProfilesEnabled",
        "talentPoolEnabled",
        "configuration"
      ],
      "type": "object"
    },
    "FlowsGetInput": {
      "additionalProperties": false,
      "properties": {
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "FlowsGetResult": {
      "additionalProperties": true,
      "properties": {
        "_id": {
          "type": "string"
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "FlowsListInput": {
      "additionalProperties": false,
      "properties": {
        "activeOnly": {
          "default": false,
          "description": "Return only active Flows when true.",
          "type": "boolean"
        },
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "required": [
            "createdAt",
            "id"
          ],
          "type": "object"
        },
        "includeActivity": {
          "default": true,
          "description": "Include aggregate activity counts. Disable for lightweight selectors and dropdowns.",
          "type": "boolean"
        },
        "includeUnscopedCompanies": {
          "default": false,
          "description": "When company filters are supplied, also include authorized Flows with no company.",
          "type": "boolean"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        },
        "selectedCompanies": {
          "default": [],
          "description": "Exact Jointl company IDs from companies.list; empty means every authorized company.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedFlowStatus": {
          "default": [],
          "description": "Exact Flow statuses; empty means every authorized status.",
          "items": {
            "enum": [
              "ACTIVE",
              "DRAFT",
              "ARCHIVED"
            ],
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedTags": {
          "default": [],
          "description": "Exact Jointl tag IDs; empty means every tag.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "type": {
          "description": "Optionally return one exact enabled Flow type.",
          "enum": [
            "HIRING_REVIEW",
            "PERFORMANCE",
            "EXIT_INTELLIGENCE"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "FlowsListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "_id": {
                "type": "string"
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": "string"
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "FlowsQuestionsSearchInput": {
      "additionalProperties": false,
      "properties": {
        "kinds": {
          "default": [
            "preScreening",
            "assessmentQuestions",
            "assessmentTests",
            "references",
            "exitIntelligence",
            "teamPulse"
          ],
          "description": "Categories to search. Restrict this list when the requested Flow uses only specific sections.",
          "items": {
            "enum": [
              "preScreening",
              "assessmentQuestions",
              "assessmentTests",
              "references",
              "exitIntelligence",
              "teamPulse"
            ],
            "type": "string"
          },
          "maxItems": 6,
          "type": "array"
        },
        "limit": {
          "default": 25,
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "query": {
          "description": "The job-related capability or use case to find in question prompts, attributes, template titles, types, and options.",
          "maxLength": 160,
          "minLength": 2,
          "type": "string"
        }
      },
      "required": [
        "query"
      ],
      "type": "object"
    },
    "FlowsQuestionsSearchResult": {
      "additionalProperties": true,
      "properties": {
        "catalogScanTruncated": {
          "type": "boolean"
        },
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "aiFollowUpEnabled": {
                "type": "boolean"
              },
              "attribute": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "insightsExtractionEnabled": {
                "type": "boolean"
              },
              "kind": {
                "type": "string"
              },
              "matchedTerms": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "prompt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "questionId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "relevance": {
                "type": "number"
              },
              "templateId": {
                "type": "string"
              },
              "templateSource": {
                "type": "string"
              },
              "templateTitle": {
                "type": "string"
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "searchedQuestionCount": {
          "type": "number"
        },
        "searchedTemplateCount": {
          "type": "number"
        },
        "totalMatchedInScan": {
          "type": "number"
        },
        "truncatedKinds": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "items",
        "totalMatchedInScan",
        "searchedTemplateCount",
        "searchedQuestionCount",
        "catalogScanTruncated",
        "truncatedKinds",
        "hasMore"
      ],
      "type": "object"
    },
    "FlowsReferenceTemplatesListInput": {
      "additionalProperties": false,
      "properties": {
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "FlowsReferenceTemplatesListResult": {
      "additionalProperties": true,
      "properties": {
        "items": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "items"
      ],
      "type": "object"
    },
    "FlowsStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "expectedStatus": {
          "description": "Current status read from flows.get or flows.blueprint.get; used for concurrency safety.",
          "enum": [
            "ACTIVE",
            "DRAFT",
            "ARCHIVED"
          ],
          "type": "string"
        },
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "status": {
          "description": "Publish/restore as ACTIVE or archive as ARCHIVED. Returning a Flow to DRAFT is unsupported.",
          "enum": [
            "ACTIVE",
            "ARCHIVED"
          ],
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "expectedStatus",
        "status"
      ],
      "type": "object"
    },
    "FlowsStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "status",
        "changed"
      ],
      "type": "object"
    },
    "FlowsTemplatesListInput": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "description": "One exact template category to browse.",
          "enum": [
            "preScreening",
            "assessmentQuestions",
            "assessmentTests",
            "references",
            "exitIntelligence",
            "teamPulse"
          ],
          "type": "string"
        },
        "limit": {
          "default": 50,
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "query": {
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "FlowsTemplatesListResult": {
      "additionalProperties": true,
      "properties": {
        "catalogScanTruncated": {
          "type": "boolean"
        },
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "kind": {
          "type": "string"
        },
        "totalMatchedInScan": {
          "type": "number"
        }
      },
      "required": [
        "kind",
        "items",
        "totalMatchedInScan",
        "catalogScanTruncated",
        "hasMore"
      ],
      "type": "object"
    },
    "GlowMomentsCycleStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "cycleId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "enabled": {
          "description": "False cancels pending delivery and incomplete requests; true restores the cycle where possible.",
          "type": "boolean"
        },
        "expectedStatus": {
          "description": "Current Glow Moments cycle status read from performance.operations.get.",
          "enum": [
            "SCHEDULED",
            "SENT",
            "CANCELLED"
          ],
          "type": "string"
        }
      },
      "required": [
        "cycleId",
        "expectedStatus",
        "enabled"
      ],
      "type": "object"
    },
    "GlowMomentsCycleStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "cycleId": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "flowId": {
          "type": "string"
        },
        "previousStatus": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "cycleId",
        "flowId",
        "previousStatus",
        "status",
        "enabled",
        "changed"
      ],
      "type": "object"
    },
    "GlowMomentsSendInput": {
      "additionalProperties": false,
      "properties": {
        "expectedFlowStatus": {
          "const": "ACTIVE",
          "default": "ACTIVE",
          "description": "The Flow must still be ACTIVE when the confirmed send executes.",
          "type": "string"
        },
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "GlowMomentsSendResult": {
      "additionalProperties": true,
      "properties": {
        "flowId": {
          "type": "string"
        },
        "queued": {
          "type": "boolean"
        },
        "scheduledFor": {
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "queued",
        "scheduledFor"
      ],
      "type": "object"
    },
    "InsightsGetInput": {
      "additionalProperties": false,
      "properties": {
        "endDate": {
          "description": "Inclusive UTC end date in YYYY-MM-DD. Omit both dates for the trailing six-month default.",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "selectedCompanies": {
          "default": [],
          "description": "Exact authorized Jointl company IDs; empty means every authorized company.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedFlows": {
          "default": [],
          "description": "Exact authorized Flow IDs; empty means every authorized Flow for this view.",
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedRoles": {
          "default": [],
          "description": "Exact Employee role-title labels; empty means every authorized role.",
          "items": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "startDate": {
          "description": "Inclusive UTC start date in YYYY-MM-DD. Omit both dates for the trailing six-month default.",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "view": {
          "default": "general",
          "description": "general maps to /insights, performance to /insights?view=performance, and exitIntelligence to /insights?view=exit-intelligence.",
          "enum": [
            "general",
            "performance",
            "exitIntelligence"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "InsightsGetResult": {
      "additionalProperties": true,
      "properties": {
        "data": {
          "additionalProperties": true,
          "type": "object"
        },
        "dateRange": {
          "additionalProperties": true,
          "properties": {
            "endDate": {
              "type": "string"
            },
            "inclusive": {
              "type": "boolean"
            },
            "startDate": {
              "type": "string"
            },
            "timeZone": {
              "type": "string"
            }
          },
          "required": [
            "startDate",
            "endDate",
            "inclusive",
            "timeZone"
          ],
          "type": "object"
        },
        "filters": {
          "additionalProperties": true,
          "properties": {
            "companyIds": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "flowIds": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "roleTitles": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "companyIds",
            "flowIds",
            "roleTitles"
          ],
          "type": "object"
        },
        "view": {
          "type": "string"
        }
      },
      "required": [
        "view",
        "dateRange",
        "filters",
        "data"
      ],
      "type": "object"
    },
    "PerformanceOperationsGetInput": {
      "additionalProperties": false,
      "properties": {
        "cycleLimit": {
          "default": 5,
          "description": "Number of recent Glow Moments and Team Pulse cycles to return per feature.",
          "maximum": 10,
          "minimum": 1,
          "type": "integer"
        },
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "includeLinks": {
          "default": false,
          "description": "Include participant access links and the Glow scoreboard link only when the user explicitly needs them.",
          "type": "boolean"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "PerformanceOperationsGetResult": {
      "additionalProperties": true,
      "properties": {
        "capabilityWarning": {
          "type": [
            "string",
            "null"
          ]
        },
        "flow": {
          "additionalProperties": true,
          "type": "object"
        },
        "glowMoments": {
          "additionalProperties": true,
          "type": "object"
        },
        "teamPulse": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "flow",
        "glowMoments",
        "teamPulse"
      ],
      "type": "object"
    },
    "ReferencesGetInput": {
      "additionalProperties": false,
      "properties": {
        "referenceId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "referenceId"
      ],
      "type": "object"
    },
    "ReferencesGetResult": {
      "additionalProperties": true,
      "type": "object"
    },
    "ReferencesListInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            }
          },
          "required": [
            "createdAt",
            "id"
          ],
          "type": "object"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "applicantId"
      ],
      "type": "object"
    },
    "ReferencesListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "applicantId": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "ReferencesRequestInput": {
      "additionalProperties": false,
      "properties": {
        "applicantId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "referee": {
          "additionalProperties": false,
          "properties": {
            "email": {
              "format": "email",
              "maxLength": 254,
              "type": "string"
            },
            "name": {
              "maxLength": 180,
              "minLength": 1,
              "type": "string"
            },
            "phone": {
              "pattern": "^[1-9][0-9]{6,14}$",
              "type": "string"
            },
            "phoneMessageConsent": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "name",
            "email"
          ],
          "type": "object"
        },
        "templateId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "applicantId",
        "templateId",
        "referee"
      ],
      "type": "object"
    },
    "ReferencesRequestResult": {
      "additionalProperties": true,
      "properties": {
        "emailDispatch": {
          "additionalProperties": true,
          "type": "object"
        },
        "meta": {
          "additionalProperties": true,
          "type": "object"
        },
        "reference": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "meta",
        "reference",
        "emailDispatch"
      ],
      "type": "object"
    },
    "TalentsAddNoteInput": {
      "additionalProperties": false,
      "properties": {
        "talentId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "text": {
          "description": "Exact note text the user asked to save.",
          "maxLength": 4000,
          "minLength": 1,
          "type": "string"
        },
        "visibleToTeam": {
          "default": false,
          "description": "False keeps the note private to its author; true shares it with authorized workspace members.",
          "type": "boolean"
        }
      },
      "required": [
        "talentId",
        "text"
      ],
      "type": "object"
    },
    "TalentsAddNoteResult": {
      "type": "boolean"
    },
    "TalentsGetInput": {
      "additionalProperties": false,
      "properties": {
        "includeEvidence": {
          "default": true,
          "description": "Include the authorized evidence view. Set false only when profile metadata is sufficient.",
          "type": "boolean"
        },
        "talentId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "talentId"
      ],
      "type": "object"
    },
    "TalentsGetResult": {
      "additionalProperties": true,
      "properties": {
        "evidence": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        },
        "evidenceIncluded": {
          "type": "boolean"
        },
        "profile": {
          "additionalProperties": true,
          "type": "object"
        }
      },
      "required": [
        "profile",
        "evidenceIncluded",
        "evidence"
      ],
      "type": "object"
    },
    "TalentsListInput": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "additionalProperties": false,
          "properties": {
            "createdAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "format": "date-time",
                  "type": "string"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_-]+$",
              "type": "string"
            },
            "linkedInVerifiedReferences": {
              "type": "number"
            },
            "referencesCompleted": {
              "type": "number"
            },
            "referenceScore": {
              "type": "number"
            },
            "sourceRank": {
              "enum": [
                0,
                1
              ],
              "type": "number"
            }
          },
          "required": [
            "sourceRank",
            "createdAt",
            "id"
          ],
          "type": "object"
        },
        "limit": {
          "default": 100,
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        },
        "selectedAttributes": {
          "default": [],
          "description": "Exact extracted attribute values.",
          "items": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedCompanies": {
          "default": [],
          "description": "Exact extracted company-name values; these are labels, not Jointl company IDs.",
          "items": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedExperience": {
          "default": [],
          "description": "Experience-range IDs: 0-2, 3-5, 6-9, or 10-plus.",
          "items": {
            "enum": [
              "0-2",
              "3-5",
              "6-9",
              "10-plus"
            ],
            "type": "string"
          },
          "maxItems": 4,
          "type": "array"
        },
        "selectedIndustries": {
          "default": [],
          "description": "Exact extracted industry values.",
          "items": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedRoles": {
          "default": [],
          "description": "Exact extracted current or prior job-title values.",
          "items": {
            "maxLength": 180,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "selectedTalentStatus": {
          "default": [],
          "items": {
            "enum": [
              "new",
              "archived",
              "shortlisted"
            ],
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "TalentsListResult": {
      "additionalProperties": true,
      "properties": {
        "hasMore": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "_id": {
                "type": "string"
              },
              "firstName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lastName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "nextCursor": {
          "additionalProperties": true,
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "items",
        "hasMore",
        "nextCursor"
      ],
      "type": "object"
    },
    "TalentsReferencesListInput": {
      "additionalProperties": false,
      "properties": {
        "talentId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "talentId"
      ],
      "type": "object"
    },
    "TalentsReferencesListResult": {
      "additionalProperties": true,
      "properties": {
        "avgMetrics": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        "references": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "references",
        "avgMetrics"
      ],
      "type": "object"
    },
    "TalentsStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "expectedStatus": {
          "description": "Current status read from talents.get or talents.list; used for concurrency safety.",
          "enum": [
            "new",
            "archived",
            "shortlisted"
          ],
          "type": "string"
        },
        "status": {
          "enum": [
            "new",
            "archived",
            "shortlisted"
          ],
          "type": "string"
        },
        "talentId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "talentId",
        "expectedStatus",
        "status"
      ],
      "type": "object"
    },
    "TalentsStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "previousStatus": {
          "type": "string"
        },
        "recordId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "recordId",
        "previousStatus",
        "status",
        "changed"
      ],
      "type": "object"
    },
    "TeamPulseCycleStatusSetInput": {
      "additionalProperties": false,
      "properties": {
        "cycleId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        },
        "enabled": {
          "description": "False cancels pending delivery and incomplete requests; true restores the cycle where possible.",
          "type": "boolean"
        },
        "expectedStatus": {
          "description": "Current Team Pulse cycle status read from performance.operations.get.",
          "enum": [
            "SCHEDULED",
            "PROCESSING",
            "SENT",
            "CANCELLED",
            "FAILED"
          ],
          "type": "string"
        }
      },
      "required": [
        "cycleId",
        "expectedStatus",
        "enabled"
      ],
      "type": "object"
    },
    "TeamPulseCycleStatusSetResult": {
      "additionalProperties": true,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "cycleId": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "flowId": {
          "type": "string"
        },
        "previousStatus": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      },
      "required": [
        "cycleId",
        "flowId",
        "previousStatus",
        "status",
        "enabled",
        "changed"
      ],
      "type": "object"
    },
    "TeamPulseSendInput": {
      "additionalProperties": false,
      "properties": {
        "expectedFlowStatus": {
          "const": "ACTIVE",
          "default": "ACTIVE",
          "description": "The Flow must still be ACTIVE when the confirmed send executes.",
          "type": "string"
        },
        "flowId": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$",
          "type": "string"
        }
      },
      "required": [
        "flowId"
      ],
      "type": "object"
    },
    "TeamPulseSendResult": {
      "additionalProperties": true,
      "properties": {
        "flowId": {
          "type": "string"
        },
        "queued": {
          "type": "boolean"
        },
        "scheduledFor": {
          "type": "string"
        }
      },
      "required": [
        "flowId",
        "queued",
        "scheduledFor"
      ],
      "type": "object"
    },
    "WorkspaceGetInput": {
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    },
    "WorkspaceGetResult": {
      "additionalProperties": true,
      "properties": {
        "companyScope": {
          "additionalProperties": true,
          "type": "object"
        },
        "grantedPermissions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "member": {
          "additionalProperties": true,
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "roleId": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string"
        }
      },
      "required": [
        "workspaceId",
        "name",
        "member",
        "companyScope",
        "grantedPermissions"
      ],
      "type": "object"
    },
    "WorkspaceSearchInput": {
      "additionalProperties": false,
      "properties": {
        "entityTypes": {
          "description": "Optional source-type filter applied before ranking. Omit it to search every global-search type.",
          "items": {
            "enum": [
              "applicant",
              "employee",
              "talent",
              "reference",
              "flow",
              "member"
            ],
            "type": "string"
          },
          "maxItems": 6,
          "minItems": 1,
          "type": "array"
        },
        "limit": {
          "default": 30,
          "maximum": 30,
          "minimum": 1,
          "type": "integer"
        },
        "query": {
          "description": "Search people, emails, attributes, companies, tags, job titles, and Flows.",
          "maxLength": 120,
          "minLength": 2,
          "type": "string"
        }
      },
      "required": [
        "query"
      ],
      "type": "object"
    },
    "WorkspaceSearchResult": {
      "additionalProperties": true,
      "properties": {
        "exhaustive": {
          "type": "boolean"
        },
        "items": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "entityId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "entityType": {
                "type": "string"
              },
              "followUpOperations": {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "input": {
                      "additionalProperties": true,
                      "type": "object"
                    },
                    "operationId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "operationId",
                    "input"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "label": {
                "type": "string"
              },
              "sourceRecords": {
                "items": {
                  "additionalProperties": true,
                  "properties": {
                    "applicantId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "companyName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "entityId": {
                      "type": "string"
                    },
                    "entityType": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "primary": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "route": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "statusLabels": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "entityType",
                    "entityId"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "query": {
          "type": "string"
        },
        "resultLimit": {
          "type": "number"
        },
        "returnedCount": {
          "type": "number"
        }
      },
      "required": [
        "query",
        "items",
        "returnedCount",
        "resultLimit",
        "exhaustive"
      ],
      "type": "object"
    }
  },
  "$id": "urn:jointl:schema:external-operations:v1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Shared input, result, preparation, and confirmation schemas for supported Jointl operations.",
  "title": "Jointl API operation schemas"
}
