[pull] main from fern-api:main#758
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )