Skip to content

sync: integrate staging-next codegen changes (2026-04-29) - #2707

Merged
musa-cf merged 5 commits into
nextfrom
sync/staging-next-2026-04-29
Apr 30, 2026
Merged

sync: integrate staging-next codegen changes (2026-04-29)#2707
musa-cf merged 5 commits into
nextfrom
sync/staging-next-2026-04-29

Conversation

@musa-cf

@musa-cf musa-cf commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Codegen Sync: staging-next -> next

Synced 10 resources from staging-next as of 2026-04-29.

Integrated Resources

Resource Type Summary
aisearch chore update generated types and methods
api_gateway chore update generated types and methods
billing chore update generated types and methods
botnet_feed chore update generated types and methods
browser_rendering feat update generated types and methods
email_security chore update generated types and methods
magic_transit feat update generated types and methods
queues feat update generated types and methods
workers chore update generated types and methods
zero_trust chore update generated types and methods

Pre-existing Codegen Bug Fixes

All four issues existed on next prior to this sync (introduced by commit 988df8632) and were not resolved by the latest codegen run. Fixed manually:

Issue File(s) Fix
Missing Required import types/ai/finetunes/asset_create_params.py Added Required to typing_extensions import
TypedDict base class omitted types/pipelines/sink_create_params.py, stream_create_params.py Added TypedDict parent to SchemaFieldStruct/SchemaFieldList
files= kwarg on get_api_list() resources/ai/to_markdown.py, resources/radar/ai/to_markdown.py Added # type: ignore[call-arg] / # pyright: ignore[reportCallIssue]
Missing organization_profile_get_params module types/organizations/ Re-created type alias file + added __init__.py export

Shared Changes

  • Updated .stats.yml codegen metadata
  • Updated uv.lock

Validation

  • pyright: 0 errors
  • mypy: 0 errors (5065 source files)
  • ruff: all checks passed
  • import check: OK

Excluded Resources

None -- all 10 resources integrated successfully.

musa-cf added 5 commits April 29, 2026 19:24
- Add missing Required import in ai/finetunes/asset_create_params.py
- Add TypedDict base class to pipelines SchemaFieldStruct/SchemaFieldList stubs
- Add type suppression comments for files= kwarg on get_api_list() in ai/to_markdown.py and radar/ai/to_markdown.py
- Re-create missing organization_profile_get_params.py type alias module
- Add OrganizationProfile export to types/organizations/__init__.py
…maFieldList stubs

Codegen emitted bare classes (no parent) for these stub types. Pydantic v2
cannot generate a schema for a plain object in a Union, causing
PydanticSchemaGenerationError at test collection time. Adding BaseModel
as the parent class resolves the runtime error.

Affects: sink_get_response, sink_list_response, sink_create_response,
stream_get_response, stream_list_response, stream_create_response
Prism mock returns incomplete response data for dns_records/scan/review
endpoint (missing required fields: id, created_on, meta, modified_on,
proxiable). Skip annotations already exist in staging-next via
skip_test_reason in cloudflare-config but were missed by the sync
because dns was not in the changed resource set.
@musa-cf
musa-cf merged commit 5929e33 into next Apr 30, 2026
9 checks passed
@musa-cf
musa-cf deleted the sync/staging-next-2026-04-29 branch April 30, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant