{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-teams-notifications-receive",
  "title": "Teams Receive Graph Notifications",
  "section": "Library asset reference",
  "description": "Webhook branch validates clientState for every notification and removes it from outputs. ONF accepts keyed JSON callbacks; Graph requires public HTTPS validationToken challenge response, lifecycle renewal and an ingress relay that forwards",
  "kind": "trigger",
  "url": "/wiki/reference-teams-notifications-receive/",
  "markdown": "/wiki/reference-teams-notifications-receive/index.md",
  "json": "/wiki/reference-teams-notifications-receive/index.json",
  "headings": [
    {
      "id": "audited-socket-contract-21-october-2026",
      "title": "Audited socket contract (21 October 2026)",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "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": "teams",
  "contract": {
    "key": "teams.notifications.receive",
    "slug": "teams-notifications-receive",
    "name": "Teams Receive Graph Notifications",
    "kind": "trigger",
    "family": "teams",
    "packId": null,
    "category": "Microsoft Teams",
    "description": "Webhook branch validates clientState for every notification and removes it from outputs. ONF accepts keyed JSON callbacks; Graph requires public HTTPS validationToken challenge response, lifecycle renewal and an ingress relay that forwards ",
    "inputs": [],
    "outputs": [
      {
        "id": "next",
        "name": "next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "error",
        "name": "error",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "events",
        "name": "events",
        "type": "@teams.type.notifications",
        "typeName": "Teams Change Notifications",
        "typeKey": "teams.type.notifications",
        "typeVersion": 1,
        "required": true
      }
    ],
    "configSchema": {
      "type": "object",
      "properties": {
        "clientStateSecret": {
          "type": "string",
          "default": "GRAPH_CLIENT_STATE"
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "documentation": "Teams Receive Graph Notifications\n\nWebhook branch validates clientState for every notification and removes it from outputs. ONF accepts keyed JSON callbacks; Graph requires public HTTPS validationToken challenge response, lifecycle renewal and an ingress relay that forwards to ONF with its key. This trigger does not create/renew a Graph subscription or answer the HTTP challenge.\n\nInputs: none. Outputs: `next`, `error`, `events`. Configuration follows the inspector schema; no schema defaults are assumed at execution. Missing optional fields stay absent. Provider remainders are retained by codecs. Errors throw and can select a wired error control route.\n\nAuthored 2026-10-20. Provider reference: [official documentation](https://learn.microsoft.com/en-us/graph/api/resources/chatmessage?view=graph-rest-1.0). New assets are v1; callers must preserve exact dependency pins. Mock tests establish request/codec behavior only; live tenant access is unverified.\n\n## Audited socket contract (21 October 2026)\n\nInputs:\nNo data sockets.\n\nOutputs:\n- `events`: `@teams.type.notifications`; required.\n\nConfiguration:\n- `clientStateSecret`: string; default \"GRAPH_CLIENT_STATE\"\n\nKnown provider records and list elements have structural schemas. Explicit dynamic payloads, selected query results and provider extensions retain the recursive JSON Value vocabulary; they do not imply a known provider entity. Null is distinct from omission. Runtime validates the exact selected immutable type version; reading newer documentation never repins existing graphs. This audit used synthetic fixtures/local mocks and does not establish live provider authorization or delivery.",
    "runtime": "javascript",
    "tags": [
      "library-expansion",
      "teams",
      "trigger",
      "typed-data"
    ],
    "source": "baseline-catalog"
  }
}
