Major regeneration on the latest Fern toolchain — Fern CLI 0.83.0 → 5.58.0 and the fern-python-sdk generator 4.32.2 → 5.15.0 (a major generator upgrade). The HTTP API surface (endpoints, request/response schemas) is unchanged; openapi.json changes are limited to info metadata and the auth security scheme (now modeled as an API key).
Renamed (breaking)
- The client classes drop the
Apiinfix (via the generator'sclient_class_nameconfig):LatitudeApiClient→LatitudeClient,AsyncLatitudeApiClient→AsyncLatitudeClient, and the environment enumLatitudeApiClientEnvironment→LatitudeEnvironment(viaenvironment_class_name). Update your imports and constructors (from latitude_sdk import LatitudeClient). - The client auth argument is renamed
token→api_key(the credential is an organization-scoped API key, sent asAuthorization: Bearer <key>). UpdateLatitudeClient(token=...)toLatitudeClient(api_key=...).
Fixed
- Generated code examples and docstrings now import from
latitude_sdk(the actual installed module) instead of the barelatitudepackage name (via the generator'spackage_nameconfig).
Removed (breaking)
- Standalone request/query-parameter enum types are no longer exported — they are inlined into the corresponding method signatures. Affected names include
DatasetsListRequestSortBy,DatasetsListRequestSortDirection,DatasetsListColumnsRequestIncludeRemoved,DatasetsListRowsRequestSortDirection,IncidentsListRequestSeveritiesItem,IncidentsListRequestSourceType,ListMonitorsForTargetBodyTargetType,UpdateMonitorBodySeverity,UpdateMonitorBodyTrigger,SavedSearchesListTracesRequestSortBy/SortDirection,SignalsListRequestLifecycleGroup/SortBy/SortDirection, theTools*Request*andUsers*Request*parameter enums, andFilterConditionValueItem. If you imported any of these by name, pass the literal value inline.
Added
- The
api_keyargument now falls back to theLATITUDE_API_KEYenvironment variable when omitted (via the OpenAPI spec'sx-fern-bearerextension), soLatitudeClient()works when that env var is set. An explicitly passedapi_keytakes precedence. - The v5 generator emits many more fine-grained union-member and enum types (e.g.
ActiveMemberStatus,AlertEscalatingConditionThreshold_Absolute/_Expected/_Multiplier,AlertThresholdConditionTrigger,AnnotationSource) and ~226 additional type modules. No new endpoints or methods.