Skip to content

chore: release package#1925

Merged
bokelley merged 1 commit into
mainfrom
changeset-release/main
May 22, 2026
Merged

chore: release package#1925
bokelley merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@adcp/sdk@7.11.0

Minor Changes

  • e324942: Add getSignalId and getSignalIssuer read helpers for SignalID

    SignalID is a discriminated union (source: 'catalog' | 'agent'). Callers that need just the segment identifier or the issuer domain/URL previously had to narrow the union manually or risk reaching for non-existent fields like sid.catalog_id.

    Two new exports from @adcp/sdk:

    • getSignalId(sid) — returns sid.id (the canonical segment identifier, present on both variants)
    • getSignalIssuer(sid) — returns sid.data_provider_domain (catalog) or sid.agent_url (agent), with an exhaustiveness guard for future union variants

    Complements the existing signalId.catalog() / signalId.agent() write-path factories.

Patch Changes

  • 9ad3c36: fix(testing): read media_buy_status before legacy status when storyboard invariants extract media-buy lifecycle observations.

  • 69bf3c7: refactor(v2): centralize AAO canonical agent URL into a shared constant

    Extract 'https://creative.adcontextprotocol.org/' from
    synthesizeFormatIdFromGlob (registry.ts) into
    AAO_CANONICAL_AGENT_URL in a new src/lib/v2/projection/constants.ts.
    No behavior change — the synthesized agent_url value is byte-identical.
    The JSDoc on the constant documents the distinction from
    DEFAULT_MIRROR_HOSTS (an allowlist of hostnames for $ref sandboxing,
    not an agent_url base). Also clarifies the JSDoc on
    synthesizeFormatIdFromGlob to note the agent_url is non-normative
    (registry synthesis is implementation-defined per spec).

  • db06bd4: fix(codegen): extend TS7056 post-processor to emit typed z.ZodType<T, T> annotations

    The Zod-from-TS post-processor in scripts/generate-zod-from-ts.ts annotates schemas that hit TypeScript's .d.ts serialization limit (TS7056) with z.ZodType so the compiler stops trying to serialize the inferred shape. The previous annotation used the bare z.ZodType form, which makes z.input<typeof X> resolve to unknown — breaking AdcpToolMap[K]['params'] narrowing for any annotated request schema.

    Changes:

    • TS7056_SCHEMAS entries now carry an optional tsType field. When present, the annotation uses the 2-type-param Zod v4 form z.ZodType<T, T> with & Record<string, unknown> widening to reflect runtime .passthrough() semantics. Callers' z.input<...> reads resolve to the typed shape; downstream destructures keep their field types.
    • Auto-inject import type { ... } from './tools.generated' for the typed annotations.
    • Pre-emptively annotate five additional schemas (PreviewCreativeRequestSchema, UpdateMediaBuyRequestSchema, UpdateMediaBuyResponseSchema, BuildCreativeResponseSchema, SyncEventSourcesResponseSchema) — they hit TS7056 on 3.1.0-beta.2 and the annotation is harmless on the current 3.0.12 pin.
    • One-line cast at the withOptionalAccount(UpdateMediaBuyRequestSchema) call site so the framework helper's z.ZodObject<...> constraint is satisfied after the annotation widening. Runtime shape unchanged.

    Why pre-emptive: the 8.0-beta cut (feat!: cut 8.0-beta line — flip ADCP_VERSION to 3.1.0-beta.2 (foundation) #1902) needs this codegen behavior to compile its dist/. Landing the codegen-tooling fix on main decouples it from the 8.0-beta foundation stack and gives any future 3.0.x patch that introduces compound-schema complexity the same treatment for free.

@github-actions github-actions Bot force-pushed the changeset-release/main branch 3 times, most recently from 69ca871 to 20685bf Compare May 22, 2026 09:55
@github-actions github-actions Bot force-pushed the changeset-release/main branch from 20685bf to 0056891 Compare May 22, 2026 09:57
@bokelley bokelley merged commit 8503f07 into main May 22, 2026
2 checks passed
@bokelley bokelley deleted the changeset-release/main branch May 22, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant