{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-storage-storage-type-optional-queue-item",
  "title": "Storage Optional Queue Item",
  "section": "Library asset reference",
  "description": "Typed storage optional queue item value for workspace-scoped durable storage.",
  "kind": "type",
  "url": "/wiki/reference-app-storage-storage-type-optional-queue-item/",
  "markdown": "/wiki/reference-app-storage-storage-type-optional-queue-item/index.md",
  "json": "/wiki/reference-app-storage-storage-type-optional-queue-item/index.json",
  "headings": [
    {
      "id": "storage-optional-queue-item",
      "title": "Storage Optional Queue Item",
      "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.optional-queue-item",
    "slug": "app-storage-storage-type-optional-queue-item",
    "name": "Storage Optional Queue Item",
    "kind": "type",
    "family": "app-storage",
    "packId": null,
    "category": "Storage types",
    "description": "Typed storage optional queue item value for workspace-scoped durable storage.",
    "inputs": [],
    "outputs": [],
    "configSchema": {},
    "documentation": "## Storage Optional Queue Item\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 Optional Queue Item Encode** to construct it and **Storage Optional Queue Item 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": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
            },
            "version": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "conversationKey": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
            },
            "dedupKey": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
            },
            "status": {
              "type": "string",
              "enum": [
                "queued",
                "leased",
                "running",
                "completed",
                "failed",
                "uncertain",
                "discarded"
              ]
            },
            "payload": {
              "$ref": "#/$defs/value"
            },
            "createdAt": {
              "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)))$"
            },
            "updatedAt": {
              "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)))$"
            },
            "attempts": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "maxAttempts": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "availableAt": {
              "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)))$"
            },
            "externalStarted": {
              "type": "boolean"
            },
            "leaseUntil": {
              "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)))$"
            },
            "leaseToken": {
              "type": "string"
            },
            "result": {
              "$ref": "#/$defs/value"
            },
            "error": {
              "$ref": "#/$defs/value"
            },
            "recoveryReason": {
              "type": "string"
            },
            "purged": {
              "type": "boolean"
            }
          },
          "required": [
            "key",
            "version",
            "conversationKey",
            "dedupKey",
            "status",
            "payload",
            "createdAt",
            "updatedAt",
            "attempts",
            "maxAttempts",
            "availableAt",
            "externalStarted"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "$defs": {
        "value": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean"
            },
            {
              "type": "number",
              "minimum": -1.7976931348623157e+308,
              "maximum": 1.7976931348623157e+308
            },
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/value"
              }
            },
            {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/value"
              }
            }
          ]
        }
      }
    },
    "tags": [
      "builtin",
      "type"
    ],
    "source": "app-builtin-catalog"
  }
}
