1 | import { DsnLike, SdkMetadata } from '@sentry/types';
|
2 | import { Dsn } from '@sentry/utils';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class API {
|
9 |
|
10 | dsn: DsnLike;
|
11 |
|
12 | metadata: SdkMetadata;
|
13 |
|
14 | private readonly _dsnObject;
|
15 |
|
16 | private readonly _tunnel?;
|
17 |
|
18 | constructor(dsn: DsnLike, metadata?: SdkMetadata, tunnel?: string);
|
19 | /** Returns the Dsn object. */
|
20 | getDsn(): Dsn;
|
21 | /** Does this transport force envelopes? */
|
22 | forceEnvelope(): boolean;
|
23 | /** Returns the prefix to construct Sentry ingestion API endpoints. */
|
24 | getBaseApiEndpoint(): string;
|
25 | /** Returns the store endpoint URL. */
|
26 | getStoreEndpoint(): string;
|
27 | /**
|
28 | * Returns the store endpoint URL with auth in the query string.
|
29 | *
|
30 | * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.
|
31 | */
|
32 | getStoreEndpointWithUrlEncodedAuth(): string;
|
33 | /**
|
34 | * Returns the envelope endpoint URL with auth in the query string.
|
35 | *
|
36 | * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.
|
37 | */
|
38 | getEnvelopeEndpointWithUrlEncodedAuth(): string;
|
39 | /** Returns only the path component for the store endpoint. */
|
40 | getStoreEndpointPath(): string;
|
41 | /**
|
42 | * Returns an object that can be used in request headers.
|
43 | * This is needed for node and the old /store endpoint in sentry
|
44 | */
|
45 | getRequestHeaders(clientName: string, clientVersion: string): {
|
46 | [key: string]: string;
|
47 | };
|
48 |
|
49 | getReportDialogEndpoint(dialogOptions?: {
|
50 | [key: string]: any;
|
51 | user?: {
|
52 | name?: string;
|
53 | email?: string;
|
54 | };
|
55 | }): string;
|
56 |
|
57 | private _getEnvelopeEndpoint;
|
58 |
|
59 | private _getIngestEndpoint;
|
60 |
|
61 | private _encodedAuth;
|
62 | }
|
63 |
|
\ | No newline at end of file |