@@ -3,6 +3,7 @@ import type { ClientReport } from './clientreport';
33import type { DsnComponents } from './dsn' ;
44import type { Event } from './event' ;
55import type { FeedbackEvent } from './feedback' ;
6+ import type { Profile } from './profiling' ;
67import type { ReplayEvent , ReplayRecordingData } from './replay' ;
78import type { SdkInfo } from './sdkinfo' ;
89import type { SerializedSession , Session , SessionAggregates } from './session' ;
@@ -77,6 +78,7 @@ type ReplayEventItemHeaders = { type: 'replay_event' };
7778type ReplayRecordingItemHeaders = { type : 'replay_recording' ; length : number } ;
7879type CheckInItemHeaders = { type : 'check_in' } ;
7980type StatsdItemHeaders = { type : 'statsd' } ;
81+ type ProfileItemHeaders = { type : 'profile' } ;
8082
8183export type EventItem = BaseEnvelopeItem < EventItemHeaders , Event > ;
8284export type AttachmentItem = BaseEnvelopeItem < AttachmentItemHeaders , string | Uint8Array > ;
@@ -91,6 +93,7 @@ type ReplayEventItem = BaseEnvelopeItem<ReplayEventItemHeaders, ReplayEvent>;
9193type ReplayRecordingItem = BaseEnvelopeItem < ReplayRecordingItemHeaders , ReplayRecordingData > ;
9294export type StatsdItem = BaseEnvelopeItem < StatsdItemHeaders , string > ;
9395export type FeedbackItem = BaseEnvelopeItem < FeedbackItemHeaders , FeedbackEvent > ;
96+ export type ProfileItem = BaseEnvelopeItem < ProfileItemHeaders , Profile > ;
9497
9598export type EventEnvelopeHeaders = { event_id : string ; sent_at : string ; trace ?: DynamicSamplingContext } ;
9699type SessionEnvelopeHeaders = { sent_at : string } ;
@@ -101,7 +104,7 @@ type StatsdEnvelopeHeaders = BaseEnvelopeHeaders;
101104
102105export type EventEnvelope = BaseEnvelope <
103106 EventEnvelopeHeaders ,
104- EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem
107+ EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem
105108> ;
106109export type SessionEnvelope = BaseEnvelope < SessionEnvelopeHeaders , SessionItem > ;
107110export type ClientReportEnvelope = BaseEnvelope < ClientReportEnvelopeHeaders , ClientReportItem > ;
0 commit comments