@sentry/types 8.41.0 → 8.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/README.md +5 -1
  2. package/build/esm/package.json +1 -1
  3. package/build/types/index.d.ts +377 -53
  4. package/build/types/index.d.ts.map +1 -1
  5. package/build/types-ts3.8/index.d.ts +377 -53
  6. package/package.json +4 -1
  7. package/build/types/attachment.d.ts +0 -29
  8. package/build/types/attachment.d.ts.map +0 -1
  9. package/build/types/breadcrumb.d.ts +0 -96
  10. package/build/types/breadcrumb.d.ts.map +0 -1
  11. package/build/types/browseroptions.d.ts +0 -25
  12. package/build/types/browseroptions.d.ts.map +0 -1
  13. package/build/types/checkin.d.ts +0 -100
  14. package/build/types/checkin.d.ts.map +0 -1
  15. package/build/types/client.d.ts +0 -323
  16. package/build/types/client.d.ts.map +0 -1
  17. package/build/types/clientreport.d.ts +0 -12
  18. package/build/types/clientreport.d.ts.map +0 -1
  19. package/build/types/context.d.ts +0 -119
  20. package/build/types/context.d.ts.map +0 -1
  21. package/build/types/datacategory.d.ts +0 -2
  22. package/build/types/datacategory.d.ts.map +0 -1
  23. package/build/types/debugMeta.d.ts +0 -28
  24. package/build/types/debugMeta.d.ts.map +0 -1
  25. package/build/types/dsn.d.ts +0 -22
  26. package/build/types/dsn.d.ts.map +0 -1
  27. package/build/types/envelope.d.ts +0 -127
  28. package/build/types/envelope.d.ts.map +0 -1
  29. package/build/types/error.d.ts +0 -7
  30. package/build/types/error.d.ts.map +0 -1
  31. package/build/types/event.d.ts +0 -99
  32. package/build/types/event.d.ts.map +0 -1
  33. package/build/types/eventprocessor.d.ts +0 -12
  34. package/build/types/eventprocessor.d.ts.map +0 -1
  35. package/build/types/exception.d.ts +0 -12
  36. package/build/types/exception.d.ts.map +0 -1
  37. package/build/types/extra.d.ts +0 -3
  38. package/build/types/extra.d.ts.map +0 -1
  39. package/build/types/feedback/config.d.ts +0 -178
  40. package/build/types/feedback/config.d.ts.map +0 -1
  41. package/build/types/feedback/form.d.ts +0 -8
  42. package/build/types/feedback/form.d.ts.map +0 -1
  43. package/build/types/feedback/index.d.ts +0 -71
  44. package/build/types/feedback/index.d.ts.map +0 -1
  45. package/build/types/feedback/sendFeedback.d.ts +0 -49
  46. package/build/types/feedback/sendFeedback.d.ts.map +0 -1
  47. package/build/types/feedback/theme.d.ts +0 -35
  48. package/build/types/feedback/theme.d.ts.map +0 -1
  49. package/build/types/hub.d.ts +0 -195
  50. package/build/types/hub.d.ts.map +0 -1
  51. package/build/types/instrument.d.ts +0 -69
  52. package/build/types/instrument.d.ts.map +0 -1
  53. package/build/types/integration.d.ts +0 -52
  54. package/build/types/integration.d.ts.map +0 -1
  55. package/build/types/measurement.d.ts +0 -24
  56. package/build/types/measurement.d.ts.map +0 -1
  57. package/build/types/mechanism.d.ts +0 -51
  58. package/build/types/mechanism.d.ts.map +0 -1
  59. package/build/types/metrics.d.ts +0 -94
  60. package/build/types/metrics.d.ts.map +0 -1
  61. package/build/types/misc.d.ts +0 -53
  62. package/build/types/misc.d.ts.map +0 -1
  63. package/build/types/opentelemetry.d.ts +0 -14
  64. package/build/types/opentelemetry.d.ts.map +0 -1
  65. package/build/types/options.d.ts +0 -315
  66. package/build/types/options.d.ts.map +0 -1
  67. package/build/types/package.d.ts +0 -8
  68. package/build/types/package.d.ts.map +0 -1
  69. package/build/types/parameterize.d.ts +0 -5
  70. package/build/types/parameterize.d.ts.map +0 -1
  71. package/build/types/polymorphics.d.ts +0 -71
  72. package/build/types/polymorphics.d.ts.map +0 -1
  73. package/build/types/profiling.d.ts +0 -143
  74. package/build/types/profiling.d.ts.map +0 -1
  75. package/build/types/replay.d.ts +0 -25
  76. package/build/types/replay.d.ts.map +0 -1
  77. package/build/types/request.d.ts +0 -38
  78. package/build/types/request.d.ts.map +0 -1
  79. package/build/types/runtime.d.ts +0 -6
  80. package/build/types/runtime.d.ts.map +0 -1
  81. package/build/types/samplingcontext.d.ts +0 -41
  82. package/build/types/samplingcontext.d.ts.map +0 -1
  83. package/build/types/scope.d.ts +0 -241
  84. package/build/types/scope.d.ts.map +0 -1
  85. package/build/types/sdkinfo.d.ts +0 -8
  86. package/build/types/sdkinfo.d.ts.map +0 -1
  87. package/build/types/sdkmetadata.d.ts +0 -5
  88. package/build/types/sdkmetadata.d.ts.map +0 -1
  89. package/build/types/session.d.ts +0 -75
  90. package/build/types/session.d.ts.map +0 -1
  91. package/build/types/severity.d.ts +0 -2
  92. package/build/types/severity.d.ts.map +0 -1
  93. package/build/types/span.d.ts +0 -222
  94. package/build/types/span.d.ts.map +0 -1
  95. package/build/types/spanStatus.d.ts +0 -59
  96. package/build/types/spanStatus.d.ts.map +0 -1
  97. package/build/types/stackframe.d.ts +0 -22
  98. package/build/types/stackframe.d.ts.map +0 -1
  99. package/build/types/stacktrace.d.ts +0 -10
  100. package/build/types/stacktrace.d.ts.map +0 -1
  101. package/build/types/startSpanOptions.d.ts +0 -46
  102. package/build/types/startSpanOptions.d.ts.map +0 -1
  103. package/build/types/thread.d.ts +0 -10
  104. package/build/types/thread.d.ts.map +0 -1
  105. package/build/types/timedEvent.d.ts +0 -7
  106. package/build/types/timedEvent.d.ts.map +0 -1
  107. package/build/types/tracing.d.ts +0 -51
  108. package/build/types/tracing.d.ts.map +0 -1
  109. package/build/types/transaction.d.ts +0 -35
  110. package/build/types/transaction.d.ts.map +0 -1
  111. package/build/types/transport.d.ts +0 -32
  112. package/build/types/transport.d.ts.map +0 -1
  113. package/build/types/user.d.ts +0 -17
  114. package/build/types/user.d.ts.map +0 -1
  115. package/build/types/view-hierarchy.d.ts +0 -18
  116. package/build/types/view-hierarchy.d.ts.map +0 -1
  117. package/build/types/webfetchapi.d.ts +0 -15
  118. package/build/types/webfetchapi.d.ts.map +0 -1
  119. package/build/types/wrappedfunction.d.ts +0 -7
  120. package/build/types/wrappedfunction.d.ts.map +0 -1
  121. package/build/types-ts3.8/attachment.d.ts +0 -29
  122. package/build/types-ts3.8/breadcrumb.d.ts +0 -96
  123. package/build/types-ts3.8/browseroptions.d.ts +0 -25
  124. package/build/types-ts3.8/checkin.d.ts +0 -100
  125. package/build/types-ts3.8/client.d.ts +0 -323
  126. package/build/types-ts3.8/clientreport.d.ts +0 -12
  127. package/build/types-ts3.8/context.d.ts +0 -119
  128. package/build/types-ts3.8/datacategory.d.ts +0 -2
  129. package/build/types-ts3.8/debugMeta.d.ts +0 -28
  130. package/build/types-ts3.8/dsn.d.ts +0 -22
  131. package/build/types-ts3.8/envelope.d.ts +0 -136
  132. package/build/types-ts3.8/error.d.ts +0 -7
  133. package/build/types-ts3.8/event.d.ts +0 -99
  134. package/build/types-ts3.8/eventprocessor.d.ts +0 -12
  135. package/build/types-ts3.8/exception.d.ts +0 -12
  136. package/build/types-ts3.8/extra.d.ts +0 -3
  137. package/build/types-ts3.8/feedback/config.d.ts +0 -178
  138. package/build/types-ts3.8/feedback/form.d.ts +0 -8
  139. package/build/types-ts3.8/feedback/index.d.ts +0 -71
  140. package/build/types-ts3.8/feedback/sendFeedback.d.ts +0 -49
  141. package/build/types-ts3.8/feedback/theme.d.ts +0 -35
  142. package/build/types-ts3.8/hub.d.ts +0 -195
  143. package/build/types-ts3.8/instrument.d.ts +0 -69
  144. package/build/types-ts3.8/integration.d.ts +0 -52
  145. package/build/types-ts3.8/measurement.d.ts +0 -24
  146. package/build/types-ts3.8/mechanism.d.ts +0 -51
  147. package/build/types-ts3.8/metrics.d.ts +0 -94
  148. package/build/types-ts3.8/misc.d.ts +0 -53
  149. package/build/types-ts3.8/opentelemetry.d.ts +0 -17
  150. package/build/types-ts3.8/options.d.ts +0 -315
  151. package/build/types-ts3.8/package.d.ts +0 -8
  152. package/build/types-ts3.8/parameterize.d.ts +0 -5
  153. package/build/types-ts3.8/polymorphics.d.ts +0 -71
  154. package/build/types-ts3.8/profiling.d.ts +0 -143
  155. package/build/types-ts3.8/replay.d.ts +0 -25
  156. package/build/types-ts3.8/request.d.ts +0 -41
  157. package/build/types-ts3.8/runtime.d.ts +0 -6
  158. package/build/types-ts3.8/samplingcontext.d.ts +0 -41
  159. package/build/types-ts3.8/scope.d.ts +0 -241
  160. package/build/types-ts3.8/sdkinfo.d.ts +0 -8
  161. package/build/types-ts3.8/sdkmetadata.d.ts +0 -5
  162. package/build/types-ts3.8/session.d.ts +0 -75
  163. package/build/types-ts3.8/severity.d.ts +0 -2
  164. package/build/types-ts3.8/span.d.ts +0 -222
  165. package/build/types-ts3.8/spanStatus.d.ts +0 -59
  166. package/build/types-ts3.8/stackframe.d.ts +0 -22
  167. package/build/types-ts3.8/stacktrace.d.ts +0 -16
  168. package/build/types-ts3.8/startSpanOptions.d.ts +0 -46
  169. package/build/types-ts3.8/thread.d.ts +0 -10
  170. package/build/types-ts3.8/timedEvent.d.ts +0 -7
  171. package/build/types-ts3.8/tracing.d.ts +0 -51
  172. package/build/types-ts3.8/transaction.d.ts +0 -35
  173. package/build/types-ts3.8/transport.d.ts +0 -32
  174. package/build/types-ts3.8/user.d.ts +0 -17
  175. package/build/types-ts3.8/view-hierarchy.d.ts +0 -18
  176. package/build/types-ts3.8/webfetchapi.d.ts +0 -15
  177. package/build/types-ts3.8/wrappedfunction.d.ts +0 -7
@@ -1,99 +0,0 @@
1
- import { Attachment } from './attachment';
2
- import { Breadcrumb } from './breadcrumb';
3
- import { Contexts } from './context';
4
- import { DebugMeta } from './debugMeta';
5
- import { DynamicSamplingContext } from './envelope';
6
- import { Exception } from './exception';
7
- import { Extras } from './extra';
8
- import { Measurements } from './measurement';
9
- import { Mechanism } from './mechanism';
10
- import { Primitive } from './misc';
11
- import { PolymorphicRequest } from './polymorphics';
12
- import { RequestEventData } from './request';
13
- import { CaptureContext, Scope } from './scope';
14
- import { SdkInfo } from './sdkinfo';
15
- import { SeverityLevel } from './severity';
16
- import { MetricSummary, SpanJSON } from './span';
17
- import { Thread } from './thread';
18
- import { TransactionSource } from './transaction';
19
- import { User } from './user';
20
- /** An event to be sent to Sentry. */
21
- export interface Event {
22
- event_id?: string;
23
- message?: string;
24
- logentry?: {
25
- message?: string;
26
- params?: string[];
27
- };
28
- timestamp?: number;
29
- start_timestamp?: number;
30
- level?: SeverityLevel;
31
- platform?: string;
32
- logger?: string;
33
- server_name?: string;
34
- release?: string;
35
- dist?: string;
36
- environment?: string;
37
- sdk?: SdkInfo;
38
- request?: RequestEventData;
39
- transaction?: string;
40
- modules?: {
41
- [key: string]: string;
42
- };
43
- fingerprint?: string[];
44
- exception?: {
45
- values?: Exception[];
46
- };
47
- breadcrumbs?: Breadcrumb[];
48
- contexts?: Contexts;
49
- tags?: {
50
- [key: string]: Primitive;
51
- };
52
- extra?: Extras;
53
- user?: User;
54
- type?: EventType;
55
- spans?: SpanJSON[];
56
- measurements?: Measurements;
57
- debug_meta?: DebugMeta;
58
- sdkProcessingMetadata?: {
59
- [key: string]: unknown;
60
- } & {
61
- request?: PolymorphicRequest;
62
- normalizedRequest?: RequestEventData;
63
- dynamicSamplingContext?: Partial<DynamicSamplingContext>;
64
- capturedSpanScope?: Scope;
65
- capturedSpanIsolationScope?: Scope;
66
- spanCountBeforeProcessing?: number;
67
- };
68
- transaction_info?: {
69
- source: TransactionSource;
70
- };
71
- threads?: {
72
- values: Thread[];
73
- };
74
- }
75
- /**
76
- * The type of an `Event`.
77
- * Note that `ErrorEvent`s do not have a type (hence its undefined),
78
- * while all other events are required to have one.
79
- */
80
- export type EventType = 'transaction' | 'profile' | 'replay_event' | 'feedback' | undefined;
81
- export interface ErrorEvent extends Event {
82
- type: undefined;
83
- }
84
- export interface TransactionEvent extends Event {
85
- type: 'transaction';
86
- _metrics_summary?: Record<string, Array<MetricSummary>>;
87
- }
88
- /** JSDoc */
89
- export interface EventHint {
90
- event_id?: string;
91
- captureContext?: CaptureContext;
92
- mechanism?: Partial<Mechanism>;
93
- syntheticException?: Error | null;
94
- originalException?: unknown;
95
- attachments?: Attachment[];
96
- data?: any;
97
- integrations?: string[];
98
- }
99
- //# sourceMappingURL=event.d.ts.map
@@ -1,12 +0,0 @@
1
- import { Event, EventHint } from './event';
2
- /**
3
- * Event processors are used to change the event before it will be sent.
4
- * We strongly advise to make this function sync.
5
- * Returning a PromiseLike<Event | null> will work just fine, but better be sure that you know what you are doing.
6
- * Event processing will be deferred until your Promise is resolved.
7
- */
8
- export interface EventProcessor {
9
- (event: Event, hint: EventHint): PromiseLike<Event | null> | Event | null;
10
- id?: string;
11
- }
12
- //# sourceMappingURL=eventprocessor.d.ts.map
@@ -1,12 +0,0 @@
1
- import { Mechanism } from './mechanism';
2
- import { Stacktrace } from './stacktrace';
3
- /** JSDoc */
4
- export interface Exception {
5
- type?: string;
6
- value?: string;
7
- mechanism?: Mechanism;
8
- module?: string;
9
- thread_id?: number;
10
- stacktrace?: Stacktrace;
11
- }
12
- //# sourceMappingURL=exception.d.ts.map
@@ -1,3 +0,0 @@
1
- export type Extra = unknown;
2
- export type Extras = Record<string, Extra>;
3
- //# sourceMappingURL=extra.d.ts.map
@@ -1,178 +0,0 @@
1
- import { Primitive } from '../misc';
2
- import { FeedbackFormData } from './form';
3
- import { FeedbackTheme } from './theme';
4
- /**
5
- * General feedback configuration
6
- */
7
- export interface FeedbackGeneralConfiguration {
8
- /**
9
- * id to use for the main widget container (this will host the shadow DOM)
10
- */
11
- id: string;
12
- /**
13
- * Show the Sentry branding
14
- */
15
- showBranding: boolean;
16
- /**
17
- * Auto-inject default Feedback actor button to the DOM when integration is
18
- * added.
19
- */
20
- autoInject: boolean;
21
- /**
22
- * Should the email field be required?
23
- */
24
- isEmailRequired: boolean;
25
- /**
26
- * Should the name field be required?
27
- */
28
- isNameRequired: boolean;
29
- /**
30
- * Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
31
- */
32
- showEmail: boolean;
33
- /**
34
- * Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
35
- */
36
- showName: boolean;
37
- /**
38
- * Should the screen shots field be included?
39
- * Screen shots cannot be marked as required
40
- */
41
- enableScreenshot: boolean;
42
- /**
43
- * Fill in email/name input fields with Sentry user context if it exists.
44
- * The value of the email/name keys represent the properties of your user context.
45
- */
46
- useSentryUser: {
47
- email: string;
48
- name: string;
49
- };
50
- /**
51
- * Set an object that will be merged sent as tags data with the event.
52
- */
53
- tags?: {
54
- [key: string]: Primitive;
55
- };
56
- /**
57
- * Set a nonce to be passed to the injected <style> tag for enforcing CSP
58
- */
59
- styleNonce?: string;
60
- /**
61
- * Set a nonce to be passed to the injected <script> tag for enforcing CSP
62
- */
63
- scriptNonce?: string;
64
- }
65
- /**
66
- * Theme-related configuration
67
- */
68
- export interface FeedbackThemeConfiguration {
69
- /**
70
- * The colorscheme to use. "system" will choose the scheme based on the user's system settings
71
- */
72
- colorScheme: 'system' | 'light' | 'dark';
73
- /**
74
- * Light theme customization, will be merged with default theme values.
75
- */
76
- themeLight: FeedbackTheme;
77
- /**
78
- * Dark theme customization, will be merged with default theme values.
79
- */
80
- themeDark: FeedbackTheme;
81
- }
82
- /**
83
- * All of the different text labels that can be customized
84
- */
85
- export interface FeedbackTextConfiguration {
86
- /**
87
- * The label for the Feedback widget button that opens the dialog
88
- */
89
- triggerLabel: string;
90
- /**
91
- * The aria label for the Feedback widget button that opens the dialog
92
- */
93
- triggerAriaLabel: string;
94
- /**
95
- * The label for the Feedback form cancel button that closes dialog
96
- */
97
- cancelButtonLabel: string;
98
- /**
99
- * The label for the Feedback form submit button that sends feedback
100
- */
101
- submitButtonLabel: string;
102
- /**
103
- * The label for the Screenshot editor cancel buttons
104
- */
105
- confirmButtonLabel: string;
106
- /**
107
- * The title of the Feedback form
108
- */
109
- formTitle: string;
110
- /**
111
- * Label for the email input
112
- */
113
- emailLabel: string;
114
- /**
115
- * Placeholder text for Feedback email input
116
- */
117
- emailPlaceholder: string;
118
- /**
119
- * Label for the message input
120
- */
121
- messageLabel: string;
122
- /**
123
- * Placeholder text for Feedback message input
124
- */
125
- messagePlaceholder: string;
126
- /**
127
- * Label for the name input
128
- */
129
- nameLabel: string;
130
- /**
131
- * Placeholder text for Feedback name input
132
- */
133
- namePlaceholder: string;
134
- /**
135
- * Message after feedback was sent successfully
136
- */
137
- successMessageText: string;
138
- /**
139
- * Text which indicates that a field is required
140
- */
141
- isRequiredLabel: string;
142
- /**
143
- * The label for the button that adds a screenshot and renders the image editor
144
- */
145
- addScreenshotButtonLabel: string;
146
- /**
147
- * The label for the button that removes a screenshot and hides the image editor
148
- */
149
- removeScreenshotButtonLabel: string;
150
- }
151
- /**
152
- * The public callbacks available for the feedback integration
153
- */
154
- export interface FeedbackCallbacks {
155
- /**
156
- * Callback when form is opened
157
- */
158
- onFormOpen?: () => void;
159
- /**
160
- * Callback when form is closed and not submitted
161
- */
162
- onFormClose?: () => void;
163
- /**
164
- * Callback when feedback is successfully submitted
165
- *
166
- * After this you'll see a SuccessMessage on the screen for a moment.
167
- */
168
- onSubmitSuccess?: (data: FeedbackFormData) => void;
169
- /**
170
- * Callback when feedback is unsuccessfully submitted
171
- */
172
- onSubmitError?: (error: Error) => void;
173
- /**
174
- * Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
175
- */
176
- onFormSubmitted?: () => void;
177
- }
178
- //# sourceMappingURL=config.d.ts.map
@@ -1,8 +0,0 @@
1
- import { Attachment } from '../attachment';
2
- export type FeedbackFormData = {
3
- name: string;
4
- email: string;
5
- message: string;
6
- attachments: Attachment[] | undefined;
7
- };
8
- //# sourceMappingURL=form.d.ts.map
@@ -1,71 +0,0 @@
1
- import { Attachment } from '../attachment';
2
- import { Integration } from '../integration';
3
- import { FeedbackCallbacks, FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackThemeConfiguration } from './config';
4
- export { FeedbackFormData } from './form';
5
- import { FeedbackEvent, SendFeedback, SendFeedbackParams, UserFeedback } from './sendFeedback';
6
- export { FeedbackEvent, UserFeedback, SendFeedback, SendFeedbackParams };
7
- /**
8
- * The integration's internal `options` member where every value should be set
9
- */
10
- export interface FeedbackInternalOptions extends FeedbackGeneralConfiguration, FeedbackThemeConfiguration, FeedbackTextConfiguration, FeedbackCallbacks {
11
- }
12
- type Hooks = unknown;
13
- type HTMLElement = unknown;
14
- type HType = unknown;
15
- type ShadowRoot = unknown;
16
- type VNode = unknown;
17
- type FeedbackDialog = {
18
- /**
19
- * The HTMLElement that is containing all the form content
20
- */
21
- el: HTMLElement;
22
- /**
23
- * Insert the Dialog into the Shadow DOM.
24
- *
25
- * The Dialog starts in the `closed` state where no inner HTML is rendered.
26
- */
27
- appendToDom: () => void;
28
- /**
29
- * Remove the dialog from the Shadow DOM
30
- */
31
- removeFromDom: () => void;
32
- /**
33
- * Open/Show the dialog & form inside it
34
- */
35
- open: () => void;
36
- /**
37
- * Close/Hide the dialog & form inside it
38
- */
39
- close: () => void;
40
- };
41
- interface FeedbackScreenshotInput {
42
- /**
43
- * The preact component
44
- */
45
- input: (props: {
46
- onError: (error: Error) => void;
47
- }) => VNode;
48
- /**
49
- * The image/screenshot bytes
50
- */
51
- value: () => Promise<Attachment | undefined>;
52
- }
53
- interface CreateDialogProps {
54
- options: FeedbackInternalOptions;
55
- screenshotIntegration: FeedbackScreenshotIntegration | undefined;
56
- sendFeedback: SendFeedback;
57
- shadow: ShadowRoot;
58
- }
59
- export interface FeedbackModalIntegration extends Integration {
60
- createDialog: (props: CreateDialogProps) => FeedbackDialog;
61
- }
62
- interface CreateInputProps {
63
- h: HType;
64
- hooks: Hooks;
65
- dialog: FeedbackDialog;
66
- options: FeedbackInternalOptions;
67
- }
68
- export interface FeedbackScreenshotIntegration extends Integration {
69
- createInput: (props: CreateInputProps) => FeedbackScreenshotInput;
70
- }
71
- //# sourceMappingURL=index.d.ts.map
@@ -1,49 +0,0 @@
1
- import { Event, EventHint } from '../event';
2
- import { Primitive } from '../misc';
3
- import { User } from '../user';
4
- /**
5
- * Crash report feedback object
6
- */
7
- export interface UserFeedback {
8
- event_id: string;
9
- email: User['email'];
10
- name: string;
11
- comments: string;
12
- }
13
- interface FeedbackContext extends Record<string, unknown> {
14
- message: string;
15
- contact_email?: string;
16
- name?: string;
17
- replay_id?: string;
18
- url?: string;
19
- associated_event_id?: string;
20
- }
21
- /**
22
- * NOTE: These types are still considered Alpha and subject to change.
23
- * @hidden
24
- */
25
- export interface FeedbackEvent extends Event {
26
- type: 'feedback';
27
- contexts: Event['contexts'] & {
28
- feedback: FeedbackContext;
29
- };
30
- }
31
- export interface SendFeedbackParams {
32
- message: string;
33
- name?: string;
34
- email?: string;
35
- url?: string;
36
- source?: string;
37
- associatedEventId?: string;
38
- /**
39
- * Set an object that will be merged sent as tags data with the event.
40
- */
41
- tags?: {
42
- [key: string]: Primitive;
43
- };
44
- }
45
- export type SendFeedback = (params: SendFeedbackParams, hint?: EventHint & {
46
- includeReplay?: boolean;
47
- }) => Promise<string>;
48
- export {};
49
- //# sourceMappingURL=sendFeedback.d.ts.map
@@ -1,35 +0,0 @@
1
- export interface FeedbackTheme {
2
- /**
3
- * Foreground color (i.e. text color)
4
- */
5
- foreground?: string;
6
- /**
7
- * Background color for surfaces
8
- */
9
- background?: string;
10
- /**
11
- * Foreground color for accented elements
12
- */
13
- accentForeground?: string;
14
- /**
15
- * Background color for accented elements
16
- */
17
- accentBackground?: string;
18
- /**
19
- * Success color
20
- */
21
- successColor?: string;
22
- /**
23
- * Error color
24
- */
25
- errorColor?: string;
26
- /**
27
- * Box shadow for floating elements
28
- */
29
- boxShadow?: string;
30
- /**
31
- * Styles for focused interactive components
32
- */
33
- outline?: string;
34
- }
35
- //# sourceMappingURL=theme.d.ts.map
@@ -1,195 +0,0 @@
1
- import { Breadcrumb, BreadcrumbHint } from './breadcrumb';
2
- import { Client } from './client';
3
- import { Event, EventHint } from './event';
4
- import { Extra, Extras } from './extra';
5
- import { Integration, IntegrationClass } from './integration';
6
- import { Primitive } from './misc';
7
- import { Scope } from './scope';
8
- import { Session } from './session';
9
- import { SeverityLevel } from './severity';
10
- import { User } from './user';
11
- /**
12
- * Internal class used to make sure we always have the latest internal functions
13
- * working in case we have a version conflict.
14
- *
15
- * @deprecated This interface will be removed in a future major version of the SDK in favour of
16
- * `Scope` and `Client` objects and APIs.
17
- *
18
- * Most APIs referencing `Hub` are themselves and will be removed in version 8 of the SDK. More information:
19
- * - [Migration Guide](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub)
20
- *
21
- */
22
- export interface Hub {
23
- /**
24
- * This binds the given client to the current scope.
25
- * @param client An SDK client (client) instance.
26
- *
27
- * @deprecated Use `initAndBind()` directly.
28
- */
29
- bindClient(client?: Client): void;
30
- /**
31
- * Creates a new scope with and executes the given operation within.
32
- * The scope is automatically removed once the operation
33
- * finishes or throws.
34
- *
35
- * This is essentially a convenience function for:
36
- *
37
- * pushScope();
38
- * callback();
39
- * popScope();
40
- *
41
- * @param callback that will be enclosed into push/popScope.
42
- *
43
- * @deprecated Use `Sentry.withScope()` instead.
44
- */
45
- withScope<T>(callback: (scope: Scope) => T): T;
46
- /**
47
- * Returns the client of the top stack.
48
- * @deprecated Use `Sentry.getClient()` instead.
49
- */
50
- getClient<C extends Client>(): C | undefined;
51
- /**
52
- * Returns the scope of the top stack.
53
- * @deprecated Use `Sentry.getCurrentScope()` instead.
54
- */
55
- getScope(): Scope;
56
- /**
57
- * Get the currently active isolation scope.
58
- * The isolation scope is used to isolate data between different hubs.
59
- *
60
- * @deprecated Use `Sentry.getIsolationScope()` instead.
61
- */
62
- getIsolationScope(): Scope;
63
- /**
64
- * Captures an exception event and sends it to Sentry.
65
- *
66
- * @param exception An exception-like object.
67
- * @param hint May contain additional information about the original exception.
68
- * @returns The generated eventId.
69
- *
70
- * @deprecated Use `Sentry.captureException()` instead.
71
- */
72
- captureException(exception: any, hint?: EventHint): string;
73
- /**
74
- * Captures a message event and sends it to Sentry.
75
- *
76
- * @param message The message to send to Sentry.
77
- * @param level Define the level of the message.
78
- * @param hint May contain additional information about the original exception.
79
- * @returns The generated eventId.
80
- *
81
- * @deprecated Use `Sentry.captureMessage()` instead.
82
- */
83
- captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string;
84
- /**
85
- * Captures a manually created event and sends it to Sentry.
86
- *
87
- * @param event The event to send to Sentry.
88
- * @param hint May contain additional information about the original exception.
89
- *
90
- * @deprecated Use `Sentry.captureEvent()` instead.
91
- */
92
- captureEvent(event: Event, hint?: EventHint): string;
93
- /**
94
- * Records a new breadcrumb which will be attached to future events.
95
- *
96
- * Breadcrumbs will be added to subsequent events to provide more context on
97
- * user's actions prior to an error or crash.
98
- *
99
- * @param breadcrumb The breadcrumb to record.
100
- * @param hint May contain additional information about the original breadcrumb.
101
- *
102
- * @deprecated Use `Sentry.addBreadcrumb()` instead.
103
- */
104
- addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;
105
- /**
106
- * Updates user context information for future events.
107
- *
108
- * @param user User context object to be set in the current context. Pass `null` to unset the user.
109
- *
110
- * @deprecated Use `Sentry.setUser()` instead.
111
- */
112
- setUser(user: User | null): void;
113
- /**
114
- * Set an object that will be merged sent as tags data with the event.
115
- *
116
- * @param tags Tags context object to merge into current context.
117
- *
118
- * @deprecated Use `Sentry.setTags()` instead.
119
- */
120
- setTags(tags: {
121
- [key: string]: Primitive;
122
- }): void;
123
- /**
124
- * Set key:value that will be sent as tags data with the event.
125
- *
126
- * Can also be used to unset a tag, by passing `undefined`.
127
- *
128
- * @param key String key of tag
129
- * @param value Value of tag
130
- *
131
- * @deprecated Use `Sentry.setTag()` instead.
132
- */
133
- setTag(key: string, value: Primitive): void;
134
- /**
135
- * Set key:value that will be sent as extra data with the event.
136
- * @param key String of extra
137
- * @param extra Any kind of data. This data will be normalized.
138
- *
139
- * @deprecated Use `Sentry.setExtra()` instead.
140
- */
141
- setExtra(key: string, extra: Extra): void;
142
- /**
143
- * Set an object that will be merged sent as extra data with the event.
144
- * @param extras Extras object to merge into current context.
145
- *
146
- * @deprecated Use `Sentry.setExtras()` instead.
147
- */
148
- setExtras(extras: Extras): void;
149
- /**
150
- * Sets context data with the given name.
151
- * @param name of the context
152
- * @param context Any kind of data. This data will be normalized.
153
- *
154
- * @deprecated Use `Sentry.setContext()` instead.
155
- */
156
- setContext(name: string, context: {
157
- [key: string]: any;
158
- } | null): void;
159
- /**
160
- * Returns the integration if installed on the current client.
161
- *
162
- * @deprecated Use `Sentry.getClient().getIntegration()` instead.
163
- */
164
- getIntegration<T extends Integration>(integration: IntegrationClass<T>): T | null;
165
- /**
166
- * Starts a new `Session`, sets on the current scope and returns it.
167
- *
168
- * To finish a `session`, it has to be passed directly to `client.captureSession`, which is done automatically
169
- * when using `hub.endSession()` for the session currently stored on the scope.
170
- *
171
- * When there's already an existing session on the scope, it'll be automatically ended.
172
- *
173
- * @param context Optional properties of the new `Session`.
174
- *
175
- * @returns The session which was just started
176
- *
177
- * @deprecated Use top-level `startSession` instead.
178
- */
179
- startSession(context?: Session): Session;
180
- /**
181
- * Ends the session that lives on the current scope and sends it to Sentry
182
- *
183
- * @deprecated Use top-level `endSession` instead.
184
- */
185
- endSession(): void;
186
- /**
187
- * Sends the current session on the scope to Sentry
188
- *
189
- * @param endSession If set the session will be marked as exited and removed from the scope
190
- *
191
- * @deprecated Use top-level `captureSession` instead.
192
- */
193
- captureSession(endSession?: boolean): void;
194
- }
195
- //# sourceMappingURL=hub.d.ts.map