@@ -4,7 +4,7 @@ import type { DsnComponents } from './dsn';
4
4
import type { Event } from './event' ;
5
5
import type { ReplayEvent , ReplayRecordingData } from './replay' ;
6
6
import type { SdkInfo } from './sdkinfo' ;
7
- import type { Session , SessionAggregates } from './session' ;
7
+ import type { SerializedSession , Session , SessionAggregates } from './session' ;
8
8
import type { Transaction } from './transaction' ;
9
9
import type { UserFeedback } from './user' ;
10
10
@@ -76,7 +76,8 @@ export type EventItem = BaseEnvelopeItem<EventItemHeaders, Event>;
76
76
export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
77
77
export type UserFeedbackItem = BaseEnvelopeItem < UserFeedbackItemHeaders , UserFeedback > ;
78
78
export 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 >
80
81
| BaseEnvelopeItem < SessionAggregatesItemHeaders , SessionAggregates > ;
81
82
export type ClientReportItem = BaseEnvelopeItem < ClientReportItemHeaders , ClientReport > ;
82
83
export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , SerializedCheckIn > ;
0 commit comments