{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/userintuition-ai/json-schema/userintuition-ai-public-panel-response-schema.json",
  "title": "PublicPanelResponse",
  "description": "Either a launch acknowledgement (study_id + panel_status) or, for\n``dry_run``, a cost + timeline estimate.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/userintuition-ai-openapi.json#/components/schemas/PublicPanelResponse",
  "properties": {
    "study_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Study Id"
    },
    "panel_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Panel Status"
    },
    "provider_draft_ids": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Draft Ids"
    },
    "dry_run": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dry Run"
    },
    "target": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target"
    },
    "country_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country Code",
      "description": "Resolved ISO country code used for the estimate or launch."
    },
    "language_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Language Code",
      "description": "Resolved lowercase panel language code used for the estimate or launch."
    },
    "estimated_total_cost_per_interview_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Total Cost Per Interview Usd",
      "description": "Per-interview cost in USD (interview credit cost + participant reward)."
    },
    "estimated_total_cost_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Total Cost Usd",
      "description": "Total estimated cost in USD (per-interview × target)."
    },
    "estimated_timeline_hours": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Timeline Hours",
      "description": "Heuristic time to complete, in whole hours (rounded up); audience and country may change actual timing."
    },
    "credit_cost_per_interview": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Credit Cost Per Interview"
    },
    "total_credit_cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Credit Cost"
    },
    "available_credit_balance": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Available Credit Balance"
    },
    "credit_deficit": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Credit Deficit"
    },
    "sufficient_credits": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sufficient Credits"
    },
    "reward_per_interview_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reward Per Interview Usd"
    },
    "card_hold_usd": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Card Hold Usd"
    },
    "frequency": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "one-time",
            "weekly",
            "monthly",
            "quarterly"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Frequency",
      "description": "Estimate applies to one cycle of this recurrence; later cycles may be repriced."
    },
    "assumptions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Assumptions"
    },
    "estimate_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimate Id",
      "description": "Fingerprint of the study version, launch inputs, and current estimated price"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At",
      "description": "Estimate expiry; request a new estimate after this time"
    }
  },
  "type": "object"
}