{
  "slug": "wrangler-types-generates-typed-pipeline-bindings-from-stream-schemas-786054d797e0",
  "title": "wrangler types generates typed pipeline bindings from stream schemas",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-19T13:14:51.000Z",
  "announced_at": "2026-02-19T13:14:51.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a configured pipeline stream has a schema and Wrangler is authenticated, run `wrangler types` to generate schema-based TypeScript binding types. Otherwise, pipeline bindings use `Pipeline<PipelineRecord>`.",
    "examples": [
      "wrangler types",
      "{\"pipelines\":[{\"binding\":\"ANALYTICS\",\"pipeline\":\"<pipeline-id>\"}]}"
    ],
    "gotchas": [
      "Version: 4.67.0",
      "PATH: Optional output path for the generated types; defaults to `./worker-configuration.d.ts` and must end in `.d.ts`.",
      "Prerequisite: Use Wrangler 4.67.0 or later for the release-note behavior.",
      "Prerequisite: Authenticate with Cloudflare and configure the pipeline binding; unauthenticated runs fall back to `Pipeline<PipelineRecord>`.",
      "Stream schema fields determine the generated TypeScript types.",
      "Unstructured streams or runs without authentication use the generic `Pipeline<PipelineRecord>` type."
    ]
  },
  "why_it_matters": "Generate types for a Worker that sends data to a schema-defined pipeline.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.67.0",
    "https://developers.cloudflare.com/workers/wrangler/commands/workers/",
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler@4.67.0"
  ],
  "rank": 0.96032,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-e072fb8ba3aa21ed-1:gate",
    "evidence_hash": "725664025408c1ea55f1694e976febfedfa8f0038f758c001bd6e8197c90ee0f"
  },
  "review": {
    "draft_hash": "c9cb5e3996f9ac61816afb2d77247891f95d59751ecdd7c2ccb814210bc98251",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
