Skip to content

[pull] main from fern-api:main#758

Merged
pull[bot] merged 10 commits into
code:mainfrom
fern-api:main
May 29, 2026
Merged

[pull] main from fern-api:main#758
pull[bot] merged 10 commits into
code:mainfrom
fern-api:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 29, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

iamnamananand996 and others added 10 commits May 29, 2026 00:06
…5990)

* feat: add X-Request-Id header to all CLI v2 HTTP requests

* fix: format fiddle.ts to satisfy biome formatter

* Propagate request headers to TokenService and migrator

Pass Context.headers through Context -> TokenService -> LegacyTokenMigrator so API clients include request headers. TokenService now accepts an optional headers param and forwards it to LegacyTokenMigrator; LegacyTokenMigrator stores headers and supplies them to createVenusService when fetching the user email. Context initializes TokenService with this.headers. Tests: added org create/list tests and updated existing org member/token tests to include headers in mock Contexts and assert createVenusService is called with the request headers.

* fix: scope X-Request-Id header to CLI v2 only

Revert shared code changes (core services, auth helpers) and create
CLI v2-specific service factories that include headers. CLI v1 shared
code paths are no longer touched.

* fix: resolve biome import ordering and missed LegacyTokenMigrator

* fix: update tests to mock CLI v2-specific service factories

* fix: move headers support into @fern-api/core service factories instead of separate v2 wrappers

* fix: restore checkOrganizationMembership usage with headers support

---------

Co-authored-by: Naman Anand <info@buildwithfern.com>
…16133)

* fix(python): propagate Params suffix to typeddict alias inner types

When `use_typeddict_requests: true`, type aliases whose body resolves to a
named type (directly or via `List[T]` / `Dict[K, V]` / `Set[T]`) were
emitting the inner element as the Pydantic model `T` rather than the
TypedDict variant `TParams`. As a result, request parameters typed as
such aliases rejected dict-literal arguments at type-check time even
though the runtime accepted them — surfaced by Auth0 across four aliases
in their Management API generation.

Fix overrides `_type_hint` in `TypedDictAliasGenerator` to resolve the
alias body with `in_endpoint=True`, mirroring how
`TypeddictUndiscriminatedUnionGenerator` already resolves union members.

As a documented side effect, `List[T]` alias bodies now resolve to
`typing.Sequence[T]` under `use_typeddict_requests`, consistent with how
endpoint parameters are already typed. Existing call sites that pass
lists continue to work.

The `file-upload/use_typeddict_requests` seed fixture previously encoded
the bug; updated to the corrected output.

* chore(python): apply ruff-format to typeddict_alias_generator
Co-authored-by: patrickthornton <70873350+patrickthornton@users.noreply.github.com>
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
…16135)

fix: cache annotation metadata to speed up Python SDK SSE parsing

Cache resolved type hints and short-circuit convert_and_respect_annotation_metadata
when a type has no aliased fields. This removes the per-event type introspection
that made parsing large discriminated-union SSE streams extremely slow.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
)

* Tests

* Attach user-specified v2 examples marker

* Snapshots

* Fix test
@pull pull Bot locked and limited conversation to collaborators May 29, 2026
@pull pull Bot added the ⤵️ pull label May 29, 2026
@pull pull Bot merged commit 81676be into code:main May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants