1
+ import type { CheckIn } from './checkin' ;
1
2
import type { ClientReport } from './clientreport' ;
2
3
import type { DsnComponents } from './dsn' ;
3
4
import type { Event } from './event' ;
@@ -31,7 +32,8 @@ export type EnvelopeItemType =
31
32
| 'event'
32
33
| 'profile'
33
34
| 'replay_event'
34
- | 'replay_recording' ;
35
+ | 'replay_recording'
36
+ | 'check_in' ;
35
37
36
38
export type BaseEnvelopeHeaders = {
37
39
[ key : string ] : unknown ;
@@ -68,6 +70,7 @@ type SessionAggregatesItemHeaders = { type: 'sessions' };
68
70
type ClientReportItemHeaders = { type : 'client_report' } ;
69
71
type ReplayEventItemHeaders = { type : 'replay_event' } ;
70
72
type ReplayRecordingItemHeaders = { type : 'replay_recording' ; length : number } ;
73
+ type CheckInItemHeaders = { type : 'check_in' } ;
71
74
72
75
export type EventItem = BaseEnvelopeItem < EventItemHeaders , Event > ;
73
76
export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
@@ -76,18 +79,21 @@ export type SessionItem =
76
79
| BaseEnvelopeItem < SessionItemHeaders , Session >
77
80
| BaseEnvelopeItem < SessionAggregatesItemHeaders , SessionAggregates > ;
78
81
export type ClientReportItem = BaseEnvelopeItem < ClientReportItemHeaders , ClientReport > ;
82
+ export type CheckInItem = BaseEnvelopeItem < CheckInItemHeaders , CheckIn > ;
79
83
type ReplayEventItem = BaseEnvelopeItem < ReplayEventItemHeaders , ReplayEvent > ;
80
84
type ReplayRecordingItem = BaseEnvelopeItem < ReplayRecordingItemHeaders , ReplayRecordingData > ;
81
85
82
86
export type EventEnvelopeHeaders = { event_id : string ; sent_at : string ; trace ?: DynamicSamplingContext } ;
83
87
type SessionEnvelopeHeaders = { sent_at : string } ;
88
+ type CheckInEnvelopeHeaders = BaseEnvelopeHeaders ;
84
89
type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders ;
85
90
type ReplayEnvelopeHeaders = BaseEnvelopeHeaders ;
86
91
87
92
export type EventEnvelope = BaseEnvelope < EventEnvelopeHeaders , EventItem | AttachmentItem | UserFeedbackItem > ;
88
93
export type SessionEnvelope = BaseEnvelope < SessionEnvelopeHeaders , SessionItem > ;
89
94
export type ClientReportEnvelope = BaseEnvelope < ClientReportEnvelopeHeaders , ClientReportItem > ;
90
95
export type ReplayEnvelope = [ ReplayEnvelopeHeaders , [ ReplayEventItem , ReplayRecordingItem ] ] ;
96
+ export type CheckInEvelope = BaseEnvelope < CheckInEnvelopeHeaders , CheckInItem > ;
91
97
92
- export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope ;
98
+ export type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEvelope ;
93
99
export type EnvelopeItem = Envelope [ 1 ] [ number ] ;
0 commit comments