@@ -4,7 +4,7 @@ import type { DsnComponents } from './dsn';
44import type { Event } from './event' ;
55import type { ReplayEvent , ReplayRecordingData } from './replay' ;
66import type { SdkInfo } from './sdkinfo' ;
7- import type { Session , SessionAggregates } from './session' ;
7+ import type { SerializedSession , Session , SessionAggregates } from './session' ;
88import type { Transaction } from './transaction' ;
99import type { UserFeedback } from './user' ;
1010
@@ -76,7 +76,8 @@ export type EventItem = BaseEnvelopeItem<EventItemHeaders, Event>;
7676export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
7777export type UserFeedbackItem = BaseEnvelopeItem < UserFeedbackItemHeaders , UserFeedback > ;
7878export type SessionItem =
79- | BaseEnvelopeItem < SessionItemHeaders , Session >
79+ // TODO(v8): Only allow serialized session here (as opposed to Session or SerializedSesison)
80+ | BaseEnvelopeItem < SessionItemHeaders , Session | SerializedSession >
8081 | BaseEnvelopeItem < SessionAggregatesItemHeaders , SessionAggregates > ;
8182export type ClientReportItem = BaseEnvelopeItem < ClientReportItemHeaders , ClientReport > ;
8283export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , SerializedCheckIn > ;
0 commit comments