@@ -7,7 +7,7 @@ import type { FeedbackEvent, UserFeedback } from './feedback';
77import type { Profile } from './profiling' ;
88import type { ReplayEvent , ReplayRecordingData } from './replay' ;
99import type { SdkInfo } from './sdkinfo' ;
10- import type { SerializedSession , Session , SessionAggregates } from './session' ;
10+ import type { SerializedSession , SessionAggregates } from './session' ;
1111import type { SpanJSON } from './span' ;
1212
1313// Based on: https://develop.sentry.dev/sdk/envelopes/
@@ -87,8 +87,7 @@ export type EventItem = BaseEnvelopeItem<EventItemHeaders, Event>;
8787export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
8888export type UserFeedbackItem = BaseEnvelopeItem < UserFeedbackItemHeaders , UserFeedback > ;
8989export type SessionItem =
90- // TODO(v8): Only allow serialized session here (as opposed to Session or SerializedSesison)
91- | BaseEnvelopeItem < SessionItemHeaders , Session | SerializedSession >
90+ | BaseEnvelopeItem < SessionItemHeaders , SerializedSession >
9291 | BaseEnvelopeItem < SessionAggregatesItemHeaders , SessionAggregates > ;
9392export type ClientReportItem = BaseEnvelopeItem < ClientReportItemHeaders , ClientReport > ;
9493export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , SerializedCheckIn > ;
0 commit comments