UNPKG

1.07 kBTypeScriptView Raw
1export type AttachmentType = 'event.attachment' | 'event.minidump' | 'event.applecrashreport' | 'unreal.context' | 'unreal.logs' | 'event.view_hierarchy';
2/**
3 * An attachment to an event. This is used to upload arbitrary data to Sentry.
4 *
5 * Please take care to not add sensitive information in attachments.
6 *
7 * https://develop.sentry.dev/sdk/envelopes/#attachment
8 */
9export interface Attachment {
10 /**
11 * The attachment data. Can be a string or a binary data (byte array)
12 */
13 data: string | Uint8Array;
14 /**
15 * The name of the uploaded file without a path component
16 */
17 filename: string;
18 /**
19 * The content type of the attachment payload. Defaults to `application/octet-stream` if not specified.
20 *
21 * Any valid [media type](https://www.iana.org/assignments/media-types/media-types.xhtml) is allowed.
22 */
23 contentType?: string;
24 /**
25 * The type of the attachment. Defaults to `event.attachment` if not specified.
26 */
27 attachmentType?: AttachmentType;
28}
29//# sourceMappingURL=attachment.d.ts.map
\No newline at end of file