File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * An attachment to an event. This is used to upload arbitrary data to Sentry.
3
+ *
4
+ * Please take care to not add sensitive information in attachments.
5
+ *
6
+ * https://develop.sentry.dev/sdk/envelopes/#attachment
7
+ */
1
8
export interface Attachment {
9
+ /**
10
+ * The attachment data. Can be a string or a binary data (byte array)
11
+ */
2
12
data : string | Uint8Array ;
13
+ /**
14
+ * The name of the uploaded file without a path component
15
+ */
3
16
filename : string ;
17
+ /**
18
+ * The content type of the attachment payload. Defaults to `application/octet-stream` if not specified.
19
+ *
20
+ * Any valid [media type](https://www.iana.org/assignments/media-types/media-types.xhtml) is allowed.
21
+ */
4
22
contentType ?: string ;
5
- attachmentType ?: string ;
23
+ /**
24
+ * The type of the attachment. Defaults to `event.attachment` if not specified.
25
+ */
26
+ attachmentType ?: 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs' ;
6
27
}
You can’t perform that action at this time.
0 commit comments