Skip to content

chore: regen types — CreateMediaBuySubmitted, 9421 webhook default#630

Merged
bokelley merged 2 commits into
mainfrom
bokelley/sync-2
Apr 19, 2026
Merged

chore: regen types — CreateMediaBuySubmitted, 9421 webhook default#630
bokelley merged 2 commits into
mainfrom
bokelley/sync-2

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Second sync pass. More upstream drift landed after #628 merged. Every PR (including release PR #622) fails Validate generated files are in sync without this.

Upstream changes picked up

  • CreateMediaBuyResponse union — now CreateMediaBuySuccess | CreateMediaBuyError | CreateMediaBuySubmitted. The new branch carries status: 'submitted' + task_id for async flows (IO signing, governance review, batched processing). media_buy_id / packages land on the completion artifact, not this envelope.
  • PushNotificationConfig.authentication — now optional, deprecated. Omitting it opts in to the RFC 9421 webhook profile (the default in AdCP 4.0). Bearer and HMAC-SHA256 remain for legacy compatibility.
  • RightUse — adds 'ai_generated_image'.

Blast radius

  • Consumers that exhaustively switch on CreateMediaBuyResponse get a TS error on the new branch — intentional, surfaces the async case.
  • No runtime code changes.
  • Unblocks the 5.2.0 release PR (chore: release package #622).

Changeset: minor.

🤖 Generated with Claude Code

bokelley and others added 2 commits April 19, 2026 17:09
Upstream schema updates:
- CreateMediaBuyResponse union gains CreateMediaBuySubmitted
  (async task envelope: status 'submitted', task_id).
- PushNotificationConfig.authentication now optional and
  deprecated; default is the RFC 9421 webhook profile.
- RightUse adds 'ai_generated_image'.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Local node_modules had json-schema-to-zod@2.7.0 while the lock
file pins 2.8.1. The 2.8.x series emits `.refine` for the
`uniqueItems` keyword, which is now set on brand.json's
`agents[].scope` and `adagents.json`'s `content_standards[]`.
CI installed 2.8.1 via `npm ci` and produced a different output
than the committed file, failing the sync check.

Regenerated on matching deps so the wellknown zod schemas include
the uniqueItems refines that CI expects.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bokelley bokelley merged commit 6ec01c6 into main Apr 19, 2026
14 checks passed
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