{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-storage-storage-type-question",
  "title": "Storage Question",
  "section": "Library asset reference",
  "description": "Typed storage question value for workspace-scoped durable storage.",
  "kind": "type",
  "url": "/wiki/reference-app-storage-storage-type-question/",
  "markdown": "/wiki/reference-app-storage-storage-type-question/index.md",
  "json": "/wiki/reference-app-storage-storage-type-question/index.json",
  "headings": [
    {
      "id": "storage-question",
      "title": "Storage Question",
      "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-storage",
  "contract": {
    "key": "app.storage.storage.type.question",
    "slug": "app-storage-storage-type-question",
    "name": "Storage Question",
    "kind": "type",
    "family": "app-storage",
    "packId": null,
    "category": "Storage types",
    "description": "Typed storage question value for workspace-scoped durable storage.",
    "inputs": [],
    "outputs": [],
    "configSchema": {},
    "documentation": "## Storage Question\n\nNamed data contract used by the encrypted, workspace-scoped storage library. Its exact JSON Schema is the source of truth. Values must be finite JSON; credentials and private payloads remain data and must not be copied to logs.\n\nUse **Storage Question Encode** to construct it and **Storage Question Decode** to extract fields. Optional fields retain absent versus explicit null semantics. Metadata-only lists omit private bodies; a deliberate Get retrieves them.\n\nThis type does not read or write storage. Publishing or reading its documentation does not upgrade existing workflow pins.",
    "schema": {
      "type": "object",
      "properties": {
        "identity": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          }
        },
        "outbound": {
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "commentId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          "required": [
            "threadId"
          ],
          "additionalProperties": false
        },
        "options": {
          "minItems": 1,
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": false
          }
        },
        "mode": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "status": {
          "type": "string",
          "enum": [
            "open",
            "selected",
            "closed"
          ]
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "conversationKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
        },
        "agent": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        },
        "actorPolicy": {
          "type": "object",
          "properties": {
            "blockedActorIds": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "allowedActorIds": {
              "maxItems": 1000,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "allowBots": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "selectedOptionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
        },
        "selectedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "selectedBy": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        }
      },
      "required": [
        "identity",
        "outbound",
        "options",
        "mode",
        "status",
        "expiresAt",
        "conversationKey"
      ],
      "additionalProperties": false
    },
    "tags": [
      "builtin",
      "type"
    ],
    "source": "app-builtin-catalog"
  }
}
