UNPKG

794 BTypeScriptView Raw
1/** Possible SentryRequest types that can be used to make a distinction between Sentry features */
2export declare type SentryRequestType = 'event' | 'transaction' | 'session' | 'attachment';
3/** A generic client request. */
4export interface SentryRequest {
5 body: string;
6 type: SentryRequestType;
7 url: string;
8}
9/** Request data included in an event as sent to Sentry */
10export interface Request {
11 url?: string;
12 method?: string;
13 data?: any;
14 query_string?: QueryParams;
15 cookies?: {
16 [key: string]: string;
17 };
18 env?: {
19 [key: string]: string;
20 };
21 headers?: {
22 [key: string]: string;
23 };
24}
25export declare type QueryParams = string | {
26 [key: string]: string;
27} | Array<[string, string]>;
28//# sourceMappingURL=request.d.ts.map
\No newline at end of file