{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uservane-com/json-schema/uservane-com-sdk-response-body-schema.json",
  "title": "SdkResponseBody",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uservane-com-openapi.yaml#/components/schemas/SdkResponseBody",
  "type": "object",
  "required": [
    "showToken",
    "surveyId",
    "rating"
  ],
  "properties": {
    "showToken": {
      "type": "string",
      "minLength": 1
    },
    "surveyId": {
      "type": "string",
      "minLength": 1
    },
    "rating": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "description": "Outer bound; per-type range enforced after survey load"
    },
    "text": {
      "type": "string",
      "maxLength": 10000
    },
    "followUpRequested": {
      "type": "boolean"
    },
    "userId": {
      "type": "string",
      "minLength": 1
    },
    "traits": {
      "type": "object",
      "additionalProperties": true
    },
    "key": {
      "type": "string",
      "minLength": 1,
      "description": "Publishable key"
    },
    "sessionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "Must match token-attested session when bound"
    },
    "observationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "taskType": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Untrusted display metadata for PM segmentation"
    },
    "identityKind": {
      "type": "string",
      "enum": [
        "identified",
        "anon-device",
        "anon-conversation"
      ]
    }
  }
}