{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-storage-storage-codec-question-encode",
  "title": "Storage Question Encode",
  "section": "Library asset reference",
  "description": "Encode storage question with named typed sockets.",
  "kind": "node",
  "url": "/wiki/reference-app-storage-storage-codec-question-encode/",
  "markdown": "/wiki/reference-app-storage-storage-codec-question-encode/index.md",
  "json": "/wiki/reference-app-storage-storage-codec-question-encode/index.json",
  "headings": [
    {
      "id": "storage-question-encode",
      "title": "Storage Question Encode",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "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": "app-storage",
  "contract": {
    "key": "app.storage.storage.codec.question.encode",
    "slug": "app-storage-storage-codec-question-encode",
    "name": "Storage Question Encode",
    "kind": "node",
    "family": "app-storage",
    "packId": null,
    "category": "Storage codecs",
    "description": "Encode storage question with named typed sockets.",
    "inputs": [
      {
        "id": "identity",
        "name": "Identity",
        "type": "storage.type.identity",
        "typeName": "Storage Identity",
        "typeKey": "app.storage.storage.type.identity",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "outbound",
        "name": "Outbound",
        "type": "storage.type.outbound-reference",
        "typeName": "Storage Outbound Reference",
        "typeKey": "app.storage.storage.type.outbound-reference",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "options",
        "name": "Options",
        "type": "storage.type.options",
        "typeName": "Storage Options",
        "typeKey": "app.storage.storage.type.options",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "mode",
        "name": "Mode",
        "type": "string",
        "typeName": "Text",
        "required": true
      },
      {
        "id": "status",
        "name": "Status",
        "type": "string",
        "typeName": "Text",
        "required": true
      },
      {
        "id": "expiresAt",
        "name": "Expires At",
        "type": "string",
        "typeName": "Text",
        "required": true
      },
      {
        "id": "conversationKey",
        "name": "Conversation Key",
        "type": "string",
        "typeName": "Text",
        "required": true
      },
      {
        "id": "agent",
        "name": "Agent",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "actorPolicy",
        "name": "Actor Policy",
        "type": "storage.type.actor-policy",
        "typeName": "Storage Actor Policy",
        "typeKey": "app.storage.storage.type.actor-policy",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "selectedOptionId",
        "name": "Selected Option Id",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "selectedAt",
        "name": "Selected At",
        "type": "string",
        "typeName": "Text",
        "required": false
      },
      {
        "id": "selectedBy",
        "name": "Selected By",
        "type": "string",
        "typeName": "Text",
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "value",
        "name": "Value",
        "type": "storage.type.question",
        "typeName": "Storage Question",
        "typeKey": "app.storage.storage.type.question",
        "typeVersion": 1,
        "required": true
      }
    ],
    "configSchema": {},
    "documentation": "## Storage Question Encode\n\nConstructs the Storage Question contract.\n\nInputs: `identity` (storage.type.identity, required), `outbound` (storage.type.outbound-reference, required), `options` (storage.type.options, required), `mode` (string, required), `status` (string, required), `expiresAt` (string, required), `conversationKey` (string, required), `agent` (string, optional), `actorPolicy` (storage.type.actor-policy, optional), `selectedOptionId` (string, optional), `selectedAt` (string, optional), `selectedBy` (string, optional).\n\nOutputs: `value` (storage.type.question, required).\n\nPure transformation: no network calls, storage writes, namespace selection or persistent side effects. Codecs preserve explicitly present null values. A missing optional output stays absent; connecting that output to a dependent node can skip the dependent node. Invalid socket values fail schema validation.",
    "tags": [
      "builtin",
      "codec"
    ],
    "source": "app-builtin-catalog"
  }
}
