{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-dev-grafana-type-data-source-list-decode",
  "title": "Grafana Data Source List Decode",
  "section": "Library asset reference",
  "description": "Expand Grafana Data Source List without losing unknown fields.",
  "kind": "node",
  "url": "/wiki/reference-dev-grafana-type-data-source-list-decode/",
  "markdown": "/wiki/reference-dev-grafana-type-data-source-list-decode/index.md",
  "json": "/wiki/reference-dev-grafana-type-data-source-list-decode/index.json",
  "headings": [
    {
      "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": "grafana",
  "pack": "pack_grafana",
  "contract": {
    "key": "dev.grafana.type.data-source-list.decode",
    "slug": "dev-grafana-type-data-source-list-decode",
    "name": "Grafana Data Source List Decode",
    "kind": "node",
    "family": "grafana",
    "packId": "pack_grafana",
    "category": "Developer integrations",
    "description": "Expand Grafana Data Source List without losing unknown fields.",
    "inputs": [
      {
        "id": "exec",
        "name": "Execute",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "Value",
        "type": "@dev.grafana.type.data-source-list",
        "typeName": "Grafana Data Source List",
        "typeKey": "dev.grafana.type.data-source-list",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "index",
        "name": "Index",
        "type": "number",
        "typeName": "Number",
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "rest",
        "name": "Rest",
        "type": "@dev.grafana.type.data-source-list",
        "typeName": "Grafana Data Source List",
        "typeKey": "dev.grafana.type.data-source-list",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "item",
        "name": "Item",
        "type": "@dev.grafana.type.data-source",
        "typeName": "Grafana Data Source",
        "typeKey": "dev.grafana.type.data-source",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "index",
        "name": "Index",
        "type": "number",
        "typeName": "Number",
        "required": true
      },
      {
        "id": "count",
        "name": "Count",
        "type": "number",
        "typeName": "Number",
        "required": true
      },
      {
        "id": "error",
        "name": "On error",
        "type": "control",
        "typeName": "Control",
        "required": false
      }
    ],
    "configSchema": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    },
    "documentation": "Expand Grafana Data Source List without losing unknown fields.\n\nInputs: value (required), index (optional). Outputs: rest, item, index, count.\n\nPure transformation; no provider requests, persistent state or credentials. Record codecs reject remainder collisions with declared fields. Missing optional fields stay absent; explicit null follows the pinned schema. List codecs select/reinsert one item at index; an empty list omits item and requires index zero. Connect only optional outputs present for your case.\n\nUses the exact shared Grafana Data Source List version. Encode output validates the complete resource schema; scalar codec ports do not weaken it.",
    "runtime": "javascript",
    "tags": [
      "codec",
      "developer-packs",
      "grafana"
    ],
    "source": "developer-catalog"
  }
}
