GCC Build OSv0
/api

QuestionOpenedevent type

Discovery item opened (Question lifecycle: Open). Question artefact type determines downstream answer form.

Full spec

{
  "name": "QuestionOpened",
  "description": "Discovery item opened (Question lifecycle: Open). Question artefact type determines downstream answer form.",
  "current_version": 1,
  "actor_type_allowed": [
    "human",
    "system"
  ],
  "object_type": "Question",
  "payload_versions": {
    "v1": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "question_id",
        "workstream_id_ref",
        "prompt",
        "artefact_type",
        "priority_tier",
        "opened_by"
      ],
      "properties": {
        "question_id": {
          "type": "string",
          "format": "uuid"
        },
        "workstream_id_ref": {
          "type": "string",
          "format": "uuid"
        },
        "prompt": {
          "type": "string",
          "minLength": 1
        },
        "artefact_type": {
          "type": "string",
          "enum": [
            "text",
            "number",
            "table",
            "file",
            "checklist",
            "entity_row",
            "date",
            "currency"
          ]
        },
        "priority_tier": {
          "type": "string",
          "enum": [
            "P0",
            "P1",
            "P2",
            "P3"
          ]
        },
        "depends_on_question_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "default": []
        },
        "pack_template_ref": {
          "type": [
            "string",
            "null"
          ],
          "description": "Pack template id from which this question was instantiated; null for tenant-bespoke questions."
        },
        "opened_by": {
          "type": "string",
          "format": "uuid"
        }
      }
    }
  },
  "projections_consuming": [
    "questions_view",
    "audit_log"
  ],
  "canonicalizer_module": "event-canonicalizers/question_opened.ts"
}