{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-core-type-alert",
  "title": "Alert",
  "section": "Library asset reference",
  "description": "A typed alert ready for routing to notifications or an API.",
  "kind": "type",
  "url": "/wiki/reference-app-core-type-alert/",
  "markdown": "/wiki/reference-app-core-type-alert/index.md",
  "json": "/wiki/reference-app-core-type-alert/index.json",
  "headings": [
    {
      "id": "fields",
      "title": "Fields",
      "depth": 2
    },
    {
      "id": "example",
      "title": "Example",
      "depth": 2
    },
    {
      "id": "using-and-testing",
      "title": "Using and testing",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "app-core",
  "contract": {
    "key": "app.core.type.alert",
    "slug": "app-core-type-alert",
    "name": "Alert",
    "kind": "type",
    "family": "app-core",
    "packId": null,
    "category": "Domain types",
    "description": "A typed alert ready for routing to notifications or an API.",
    "inputs": [],
    "outputs": [],
    "configSchema": {},
    "documentation": "# Alert\n\nDescribes a notification-ready alert object. It provides structural validation only: matching this schema does not send a notification, prove an incident exists or establish a severity policy.\n\n## Fields\n- **title** (required string): short heading.\n- **severity** (required string): exactly info, warning or critical.\n- **message** (required string): human-readable explanation.\n- **deviceId** (optional string): associated device identity.\n- Additional properties are rejected.\n\n## Example\n`{\"title\":\"Example threshold\",\"severity\":\"warning\",\"message\":\"Example device exceeded its configured limit\",\"deviceId\":\"meter-example\"}`\n\nOmitting deviceId is valid. An unknown severity such as error, missing message or an extra metadata field is rejected. This schema does not enforce nonempty title/message, a specific device-ID format or maximum string length. It does not automatically redact sensitive information in messages.\n\n## Using and testing\nSelect Alert as an asset socket type and pin the intended immutable version. Types at different versions remain distinct graph contracts even when their schemas appear similar. Typed alerts may feed ordinary object inputs; arbitrary object outputs do not become typed alerts by wiring alone. The type test bench expects `{\"value\": <alert>}`. Compose alert is a demo producer; route its result to an output or a separately authored delivery node.\n\nThe type declares no graph sockets, configuration, code execution, control route or network/state operation. Publication creates a new schema version without mutating old definitions or workflow pins. Alert content is ordinary execution data; keep credentials and unnecessary personal/customer information out of title/message.",
    "schema": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "info",
            "warning",
            "critical"
          ]
        },
        "message": {
          "type": "string"
        },
        "deviceId": {
          "type": "string"
        }
      },
      "required": [
        "title",
        "severity",
        "message"
      ],
      "additionalProperties": false
    },
    "tags": [
      "builtin",
      "type"
    ],
    "source": "app-builtin-catalog"
  }
}
