1+ import type { CheckIn } from './checkin' ;
12import type { ClientReport } from './clientreport' ;
23import type { DsnComponents } from './dsn' ;
34import type { Event } from './event' ;
@@ -31,7 +32,8 @@ export type EnvelopeItemType =
3132 | 'event'
3233 | 'profile'
3334 | 'replay_event'
34- | 'replay_recording' ;
35+ | 'replay_recording'
36+ | 'check_in' ;
3537
3638export type BaseEnvelopeHeaders = {
3739 [ key : string ] : unknown ;
@@ -68,6 +70,7 @@ type SessionAggregatesItemHeaders = { type: 'sessions' };
6870type ClientReportItemHeaders = { type : 'client_report' } ;
6971type ReplayEventItemHeaders = { type : 'replay_event' } ;
7072type ReplayRecordingItemHeaders = { type : 'replay_recording' ; length : number } ;
73+ type CheckInItemHeaders = { type : 'check_in' } ;
7174
7275export type EventItem = BaseEnvelopeItem < EventItemHeaders , Event > ;
7376export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
@@ -76,18 +79,21 @@ export type SessionItem =
7679 | BaseEnvelopeItem < SessionItemHeaders , Session >
7780 | BaseEnvelopeItem < SessionAggregatesItemHeaders , SessionAggregates > ;
7881export type ClientReportItem = BaseEnvelopeItem < ClientReportItemHeaders , ClientReport > ;
82+ export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , CheckIn > ;
7983type ReplayEventItem = BaseEnvelopeItem < ReplayEventItemHeaders , ReplayEvent > ;
8084type ReplayRecordingItem = BaseEnvelopeItem < ReplayRecordingItemHeaders , ReplayRecordingData > ;
8185
8286export type EventEnvelopeHeaders = { event_id : string ; sent_at : string ; trace ?: DynamicSamplingContext } ;
8387type SessionEnvelopeHeaders = { sent_at : string } ;
88+ type CheckInEnvelopeHeaders = BaseEnvelopeHeaders ;
8489type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders ;
8590type ReplayEnvelopeHeaders = BaseEnvelopeHeaders ;
8691
8792export type EventEnvelope = BaseEnvelope < EventEnvelopeHeaders , EventItem | AttachmentItem | UserFeedbackItem > ;
8893export type SessionEnvelope = BaseEnvelope < SessionEnvelopeHeaders , SessionItem > ;
8994export type ClientReportEnvelope = BaseEnvelope < ClientReportEnvelopeHeaders , ClientReportItem > ;
9095export type ReplayEnvelope = [ ReplayEnvelopeHeaders , [ ReplayEventItem , ReplayRecordingItem ] ] ;
96+ export type CheckInEvelope = BaseEnvelope < CheckInEnvelopeHeaders , CheckInItem > ;
9197
92- export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope ;
98+ export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEvelope ;
9399export type EnvelopeItem = Envelope [ 1 ] [ number ] ;
0 commit comments