@sentry/types 8.41.0 → 8.42.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,315 +0,0 @@
1
- import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';
2
- import type { ErrorEvent, EventHint, TransactionEvent } from './event';
3
- import type { Integration } from './integration';
4
- import type { SamplingContext } from './samplingcontext';
5
- import type { CaptureContext } from './scope';
6
- import type { SdkMetadata } from './sdkmetadata';
7
- import type { SpanJSON } from './span';
8
- import type { StackLineParser, StackParser } from './stacktrace';
9
- import type { TracePropagationTargets } from './tracing';
10
- import type { BaseTransportOptions, Transport } from './transport';
11
- export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOptions> {
12
- /**
13
- * Enable debug functionality in the SDK itself
14
- */
15
- debug?: boolean;
16
- /**
17
- * Specifies whether this SDK should send events to Sentry.
18
- * Defaults to true.
19
- */
20
- enabled?: boolean;
21
- /** Attaches stacktraces to pure capture message / log integrations */
22
- attachStacktrace?: boolean;
23
- /**
24
- * A flag enabling Sessions Tracking feature.
25
- * By default, Sessions Tracking is enabled.
26
- */
27
- autoSessionTracking?: boolean;
28
- /**
29
- * Send SDK Client Reports. When calling `Sentry.init()`, this option defaults to `true`.
30
- */
31
- sendClientReports?: boolean;
32
- /**
33
- * The Dsn used to connect to Sentry and identify the project. If omitted, the
34
- * SDK will not send any data to Sentry.
35
- */
36
- dsn?: string;
37
- /**
38
- * The release identifier used when uploading respective source maps. Specify
39
- * this value to allow Sentry to resolve the correct source maps when
40
- * processing events.
41
- */
42
- release?: string;
43
- /** The current environment of your application (e.g. "production"). */
44
- environment?: string;
45
- /** Sets the distribution for all events */
46
- dist?: string;
47
- /**
48
- * List of integrations that should be installed after SDK was initialized.
49
- */
50
- integrations: Integration[];
51
- /**
52
- * A function that takes transport options and returns the Transport object which is used to send events to Sentry.
53
- * The function is invoked internally when the client is initialized.
54
- */
55
- transport: (transportOptions: TO) => Transport;
56
- /**
57
- * A stack parser implementation
58
- * By default, a stack parser is supplied for all supported platforms
59
- */
60
- stackParser: StackParser;
61
- /**
62
- * Options for the default transport that the SDK uses.
63
- */
64
- transportOptions?: Partial<TO>;
65
- /**
66
- * Sample rate to determine trace sampling.
67
- *
68
- * 0.0 = 0% chance of a given trace being sent (send no traces) 1.0 = 100% chance of a given trace being sent (send
69
- * all traces)
70
- *
71
- * Tracing is enabled if either this or `tracesSampler` is defined. If both are defined, `tracesSampleRate` is
72
- * ignored.
73
- */
74
- tracesSampleRate?: number;
75
- /**
76
- * If this is enabled, spans and trace data will be generated and captured.
77
- * This will set the `tracesSampleRate` to the recommended default of `1.0` if `tracesSampleRate` is undefined.
78
- * Note that `tracesSampleRate` and `tracesSampler` take precedence over this option.
79
- *
80
- * @deprecated This option is deprecated and will be removed in the next major version. If you want to enable performance
81
- * monitoring, please use the `tracesSampleRate` or `tracesSampler` options instead. If you wan't to disable performance
82
- * monitoring, remove the `tracesSampler` and `tracesSampleRate` options.
83
- */
84
- enableTracing?: boolean;
85
- /**
86
- * If this is enabled, any spans started will always have their parent be the active root span,
87
- * if there is any active span.
88
- *
89
- * This is necessary because in some environments (e.g. browser),
90
- * we cannot guarantee an accurate active span.
91
- * Because we cannot properly isolate execution environments,
92
- * you may get wrong results when using e.g. nested `startSpan()` calls.
93
- *
94
- * To solve this, in these environments we'll by default enable this option.
95
- */
96
- parentSpanIsAlwaysRootSpan?: boolean;
97
- /**
98
- * Initial data to populate scope.
99
- */
100
- initialScope?: CaptureContext;
101
- /**
102
- * The maximum number of breadcrumbs sent with events. Defaults to 100.
103
- * Sentry has a maximum payload size of 1MB and any events exceeding that payload size will be dropped.
104
- */
105
- maxBreadcrumbs?: number;
106
- /**
107
- * A global sample rate to apply to all events.
108
- *
109
- * 0.0 = 0% chance of a given event being sent (send no events) 1.0 = 100% chance of a given event being sent (send
110
- * all events)
111
- */
112
- sampleRate?: number;
113
- /** Maximum number of chars a single value can have before it will be truncated. */
114
- maxValueLength?: number;
115
- /**
116
- * Maximum number of levels that normalization algorithm will traverse in objects and arrays.
117
- * Used when normalizing an event before sending, on all of the listed attributes:
118
- * - `breadcrumbs.data`
119
- * - `user`
120
- * - `contexts`
121
- * - `extra`
122
- * Defaults to `3`. Set to `0` to disable.
123
- */
124
- normalizeDepth?: number;
125
- /**
126
- * Maximum number of properties or elements that the normalization algorithm will output in any single array or object included in the normalized event.
127
- * Used when normalizing an event before sending, on all of the listed attributes:
128
- * - `breadcrumbs.data`
129
- * - `user`
130
- * - `contexts`
131
- * - `extra`
132
- * Defaults to `1000`
133
- */
134
- normalizeMaxBreadth?: number;
135
- /**
136
- * Controls how many milliseconds to wait before shutting down. The default is
137
- * SDK-specific but typically around 2 seconds. Setting this too low can cause
138
- * problems for sending events from command line applications. Setting it too
139
- * high can cause the application to block for users with network connectivity
140
- * problems.
141
- */
142
- shutdownTimeout?: number;
143
- /**
144
- * A pattern for error messages which should not be sent to Sentry.
145
- * By default, all errors will be sent.
146
- */
147
- ignoreErrors?: Array<string | RegExp>;
148
- /**
149
- * A pattern for transaction names which should not be sent to Sentry.
150
- * By default, all transactions will be sent.
151
- */
152
- ignoreTransactions?: Array<string | RegExp>;
153
- /**
154
- * A URL to an envelope tunnel endpoint. An envelope tunnel is an HTTP endpoint
155
- * that accepts Sentry envelopes for forwarding. This can be used to force data
156
- * through a custom server independent of the type of data.
157
- */
158
- tunnel?: string;
159
- /**
160
- * Controls if potentially sensitive data should be sent to Sentry by default.
161
- * Note that this only applies to data that the SDK is sending by default
162
- * but not data that was explicitly set (e.g. by calling `Sentry.setUser()`).
163
- *
164
- * Defaults to `false`.
165
- *
166
- * NOTE: This option currently controls only a few data points in a selected
167
- * set of SDKs. The goal for this option is to eventually control all sensitive
168
- * data the SDK sets by default. However, this would be a breaking change so
169
- * until the next major update this option only controls data points which were
170
- * added in versions above `7.9.0`.
171
- */
172
- sendDefaultPii?: boolean;
173
- /**
174
- * Set of metadata about the SDK that can be internally used to enhance envelopes and events,
175
- * and provide additional data about every request.
176
- */
177
- _metadata?: SdkMetadata;
178
- /**
179
- * Options which are in beta, or otherwise not guaranteed to be stable.
180
- */
181
- _experiments?: {
182
- [key: string]: any;
183
- };
184
- /**
185
- * A pattern for error URLs which should exclusively be sent to Sentry.
186
- * This is the opposite of {@link Options.denyUrls}.
187
- * By default, all errors will be sent.
188
- *
189
- * Requires the use of the `InboundFilters` integration.
190
- */
191
- allowUrls?: Array<string | RegExp>;
192
- /**
193
- * A pattern for error URLs which should not be sent to Sentry.
194
- * To allow certain errors instead, use {@link Options.allowUrls}.
195
- * By default, all errors will be sent.
196
- *
197
- * Requires the use of the `InboundFilters` integration.
198
- */
199
- denyUrls?: Array<string | RegExp>;
200
- /**
201
- * List of strings and/or Regular Expressions used to determine which outgoing requests will have `sentry-trace` and `baggage`
202
- * headers attached.
203
- *
204
- * **Default:** If this option is not provided, tracing headers will be attached to all outgoing requests.
205
- * If you are using a browser SDK, by default, tracing headers will only be attached to outgoing requests to the same origin.
206
- *
207
- * **Disclaimer:** Carelessly setting this option in browser environments may result into CORS errors!
208
- * Only attach tracing headers to requests to the same origin, or to requests to services you can control CORS headers of.
209
- * Cross-origin requests, meaning requests to a different domain, for example a request to `https://api.example.com/` while you're on `https://example.com/`, take special care.
210
- * If you are attaching headers to cross-origin requests, make sure the backend handling the request returns a `"Access-Control-Allow-Headers: sentry-trace, baggage"` header to ensure your requests aren't blocked.
211
- *
212
- * If you provide a `tracePropagationTargets` array, the entries you provide will be matched against the entire URL of the outgoing request.
213
- * If you are using a browser SDK, the entries will also be matched against the pathname of the outgoing requests.
214
- * This is so you can have matchers for relative requests, for example, `/^\/api/` if you want to trace requests to your `/api` routes on the same domain.
215
- *
216
- * If any of the two match any of the provided values, tracing headers will be attached to the outgoing request.
217
- * Both, the string values, and the RegExes you provide in the array will match if they partially match the URL or pathname.
218
- *
219
- * Examples:
220
- * - `tracePropagationTargets: [/^\/api/]` and request to `https://same-origin.com/api/posts`:
221
- * - Tracing headers will be attached because the request is sent to the same origin and the regex matches the pathname "/api/posts".
222
- * - `tracePropagationTargets: [/^\/api/]` and request to `https://different-origin.com/api/posts`:
223
- * - Tracing headers will not be attached because the pathname will only be compared when the request target lives on the same origin.
224
- * - `tracePropagationTargets: [/^\/api/, 'https://external-api.com']` and request to `https://external-api.com/v1/data`:
225
- * - Tracing headers will be attached because the request URL matches the string `'https://external-api.com'`.
226
- */
227
- tracePropagationTargets?: TracePropagationTargets;
228
- /**
229
- * Function to compute tracing sample rate dynamically and filter unwanted traces.
230
- *
231
- * Tracing is enabled if either this or `tracesSampleRate` is defined. If both are defined, `tracesSampleRate` is
232
- * ignored.
233
- *
234
- * Will automatically be passed a context object of default and optional custom data. See
235
- * {@link Transaction.samplingContext} and {@link Hub.startTransaction}.
236
- *
237
- * @returns A sample rate between 0 and 1 (0 drops the trace, 1 guarantees it will be sent). Returning `true` is
238
- * equivalent to returning 1 and returning `false` is equivalent to returning 0.
239
- */
240
- tracesSampler?: (samplingContext: SamplingContext) => number | boolean;
241
- /**
242
- * An event-processing callback for error and message events, guaranteed to be invoked after all other event
243
- * processors, which allows an event to be modified or dropped.
244
- *
245
- * Note that you must return a valid event from this callback. If you do not wish to modify the event, simply return
246
- * it at the end. Returning `null` will cause the event to be dropped.
247
- *
248
- * @param event The error or message event generated by the SDK.
249
- * @param hint Event metadata useful for processing.
250
- * @returns A new event that will be sent | null.
251
- */
252
- beforeSend?: (event: ErrorEvent, hint: EventHint) => PromiseLike<ErrorEvent | null> | ErrorEvent | null;
253
- /**
254
- * This function can be defined to modify or entirely drop a child span before it's sent.
255
- * Returning `null` will cause this span to be dropped.
256
- *
257
- * Note that this function is only called for child spans and not for the root span (formerly known as transaction).
258
- * If you want to modify or drop the root span, use {@link Options.beforeSendTransaction} instead.
259
- *
260
- * @param span The span generated by the SDK.
261
- *
262
- * @returns A new span that will be sent or null if the span should not be sent.
263
- */
264
- beforeSendSpan?: (span: SpanJSON) => SpanJSON | null;
265
- /**
266
- * An event-processing callback for transaction events, guaranteed to be invoked after all other event
267
- * processors. This allows an event to be modified or dropped before it's sent.
268
- *
269
- * Note that you must return a valid event from this callback. If you do not wish to modify the event, simply return
270
- * it at the end. Returning `null` will cause the event to be dropped.
271
- *
272
- * @param event The error or message event generated by the SDK.
273
- * @param hint Event metadata useful for processing.
274
- * @returns A new event that will be sent | null.
275
- */
276
- beforeSendTransaction?: (event: TransactionEvent, hint: EventHint) => PromiseLike<TransactionEvent | null> | TransactionEvent | null;
277
- /**
278
- * A callback invoked when adding a breadcrumb, allowing to optionally modify
279
- * it before adding it to future events.
280
- *
281
- * Note that you must return a valid breadcrumb from this callback. If you do
282
- * not wish to modify the breadcrumb, simply return it at the end.
283
- * Returning null will cause the breadcrumb to be dropped.
284
- *
285
- * @param breadcrumb The breadcrumb as created by the SDK.
286
- * @returns The breadcrumb that will be added | null.
287
- */
288
- beforeBreadcrumb?: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => Breadcrumb | null;
289
- }
290
- /** Base configuration options for every SDK. */
291
- export interface Options<TO extends BaseTransportOptions = BaseTransportOptions> extends Omit<Partial<ClientOptions<TO>>, 'integrations' | 'transport' | 'stackParser'> {
292
- /**
293
- * If this is set to false, default integrations will not be added, otherwise this will internally be set to the
294
- * recommended default integrations.
295
- */
296
- defaultIntegrations?: false | Integration[];
297
- /**
298
- * List of integrations that should be installed after SDK was initialized.
299
- * Accepts either a list of integrations or a function that receives
300
- * default integrations and returns a new, updated list.
301
- */
302
- integrations?: Integration[] | ((integrations: Integration[]) => Integration[]);
303
- /**
304
- * A function that takes transport options and returns the Transport object which is used to send events to Sentry.
305
- * The function is invoked internally during SDK initialization.
306
- * By default, the SDK initializes its default transports.
307
- */
308
- transport?: (transportOptions: TO) => Transport;
309
- /**
310
- * A stack parser implementation or an array of stack line parsers
311
- * By default, a stack parser is supplied for all supported browsers
312
- */
313
- stackParser?: StackParser | StackLineParser[];
314
- }
315
- //# sourceMappingURL=options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM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,qBAAqB,CAAC,EAAE,CACtB,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,SAAS,KACZ,WAAW,CAAC,gBAAgB,GAAG,IAAI,CAAC,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAEpE;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,cAAc,KAAK,UAAU,GAAG,IAAI,CAAC;CACzF;AAED,gDAAgD;AAChD,MAAM,WAAW,OAAO,CAAC,EAAE,SAAS,oBAAoB,GAAG,oBAAoB,CAC7E,SAAQ,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,aAAa,CAAC;IACtF;;;OAGG;IACH,mBAAmB,CAAC,EAAE,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC,CAAC;IAEhF;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,KAAK,SAAS,CAAC;IAEhD;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,CAAC;CAC/C"}
@@ -1,8 +0,0 @@
1
- /** JSDoc */
2
- export interface Package {
3
- name: string;
4
- version: string;
5
- dependencies?: Record<string, string>;
6
- devDependencies?: Record<string, string>;
7
- }
8
- //# sourceMappingURL=package.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C"}
@@ -1,5 +0,0 @@
1
- export type ParameterizedString = string & {
2
- __sentry_template_string__?: string;
3
- __sentry_template_values__?: string[];
4
- };
5
- //# sourceMappingURL=parameterize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameterize.d.ts","sourceRoot":"","sources":["../../src/parameterize.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IACzC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;CACvC,CAAC"}
@@ -1,71 +0,0 @@
1
- /**
2
- * Event-like interface that's usable in browser and node.
3
- *
4
- * Note: Here we mean the kind of events handled by event listeners, not our `Event` type.
5
- *
6
- * Property availability taken from https://developer.mozilla.org/en-US/docs/Web/API/Event#browser_compatibility
7
- */
8
- export interface PolymorphicEvent {
9
- [key: string]: unknown;
10
- readonly type: string;
11
- readonly target?: unknown;
12
- readonly currentTarget?: unknown;
13
- }
14
- /** A `Request` type compatible with Node, Express, browser, etc., because everything is optional */
15
- export type PolymorphicRequest = BaseRequest & BrowserRequest & NodeRequest & ExpressRequest & KoaRequest & NextjsRequest;
16
- type BaseRequest = {
17
- method?: string;
18
- url?: string;
19
- };
20
- type BrowserRequest = BaseRequest;
21
- type NodeRequest = BaseRequest & {
22
- headers?: {
23
- [key: string]: string | string[] | undefined;
24
- };
25
- protocol?: string;
26
- socket?: {
27
- encrypted?: boolean;
28
- remoteAddress?: string;
29
- };
30
- };
31
- type KoaRequest = NodeRequest & {
32
- host?: string;
33
- hostname?: string;
34
- ip?: string;
35
- originalUrl?: string;
36
- };
37
- type NextjsRequest = NodeRequest & {
38
- cookies?: {
39
- [key: string]: string;
40
- };
41
- query?: {
42
- [key: string]: any;
43
- };
44
- };
45
- type ExpressRequest = NodeRequest & {
46
- baseUrl?: string;
47
- body?: string | {
48
- [key: string]: any;
49
- };
50
- host?: string;
51
- hostname?: string;
52
- ip?: string;
53
- originalUrl?: string;
54
- route?: {
55
- path: string;
56
- stack: [
57
- {
58
- name: string;
59
- }
60
- ];
61
- };
62
- query?: {
63
- [key: string]: any;
64
- };
65
- user?: {
66
- [key: string]: any;
67
- };
68
- _reconstructedRoute?: string;
69
- };
70
- export {};
71
- //# sourceMappingURL=polymorphics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polymorphics.d.ts","sourceRoot":"","sources":["../../src/polymorphics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,oGAAoG;AACpG,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAC1C,cAAc,GACd,WAAW,GACX,cAAc,GACd,UAAU,GACV,aAAa,CAAC;AAEhB,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,cAAc,GAAG,WAAW,CAAC;AAElC,KAAK,WAAW,GAAG,WAAW,GAAG;IAC/B,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,KAAK,UAAU,GAAG,WAAW,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,aAAa,GAAG,WAAW,GAAG;IACjC,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,KAAK,cAAc,GAAG,WAAW,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,MAAM,CAAC;aACd;SACF,CAAC;KACH,CAAC;IACF,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -1,143 +0,0 @@
1
- import type { Client } from './client';
2
- import type { DebugImage } from './debugMeta';
3
- import type { Integration } from './integration';
4
- import type { MeasurementUnit } from './measurement';
5
- export interface ContinuousProfiler<T extends Client> {
6
- initialize(client: T): void;
7
- start(): void;
8
- stop(): void;
9
- }
10
- export interface ProfilingIntegration<T extends Client> extends Integration {
11
- _profiler: ContinuousProfiler<T>;
12
- }
13
- export interface Profiler {
14
- startProfiler(): void;
15
- stopProfiler(): void;
16
- }
17
- export type ThreadId = string;
18
- export type FrameId = number;
19
- export type StackId = number;
20
- export interface ThreadCpuSample {
21
- stack_id: StackId;
22
- thread_id: ThreadId;
23
- queue_address?: string;
24
- elapsed_since_start_ns: string;
25
- }
26
- export interface ContinuousThreadCpuSample {
27
- stack_id: StackId;
28
- thread_id: ThreadId;
29
- queue_address?: string;
30
- timestamp: number;
31
- }
32
- export type ThreadCpuStack = FrameId[];
33
- export type ThreadCpuFrame = {
34
- function?: string;
35
- file?: string;
36
- lineno?: number;
37
- colno?: number;
38
- abs_path?: string;
39
- platform?: string;
40
- instruction_addr?: string;
41
- module?: string;
42
- in_app?: boolean;
43
- };
44
- export interface ThreadCpuProfile {
45
- samples: ThreadCpuSample[];
46
- stacks: ThreadCpuStack[];
47
- frames: ThreadCpuFrame[];
48
- thread_metadata: Record<ThreadId, {
49
- name?: string;
50
- priority?: number;
51
- }>;
52
- queue_metadata?: Record<string, {
53
- label: string;
54
- }>;
55
- }
56
- export interface ContinuousThreadCpuProfile {
57
- samples: ContinuousThreadCpuSample[];
58
- stacks: ThreadCpuStack[];
59
- frames: ThreadCpuFrame[];
60
- thread_metadata: Record<ThreadId, {
61
- name?: string;
62
- priority?: number;
63
- }>;
64
- queue_metadata?: Record<string, {
65
- label: string;
66
- }>;
67
- }
68
- interface BaseProfile<T> {
69
- version: string;
70
- release: string;
71
- environment: string;
72
- platform: string;
73
- profile: T;
74
- debug_meta?: {
75
- images: DebugImage[];
76
- };
77
- measurements?: Record<string, {
78
- unit: MeasurementUnit;
79
- values: {
80
- elapsed_since_start_ns: number;
81
- value: number;
82
- }[];
83
- }>;
84
- }
85
- export interface Profile extends BaseProfile<ThreadCpuProfile> {
86
- event_id: string;
87
- version: string;
88
- os: {
89
- name: string;
90
- version: string;
91
- build_number?: string;
92
- };
93
- runtime: {
94
- name: string;
95
- version: string;
96
- };
97
- device: {
98
- architecture: string;
99
- is_emulator: boolean;
100
- locale: string;
101
- manufacturer: string;
102
- model: string;
103
- };
104
- timestamp: string;
105
- release: string;
106
- environment: string;
107
- platform: string;
108
- profile: ThreadCpuProfile;
109
- debug_meta?: {
110
- images: DebugImage[];
111
- };
112
- transaction?: {
113
- name: string;
114
- id: string;
115
- trace_id: string;
116
- active_thread_id: string;
117
- };
118
- transactions?: {
119
- name: string;
120
- id: string;
121
- trace_id: string;
122
- active_thread_id: string;
123
- relative_start_ns: string;
124
- relative_end_ns: string;
125
- }[];
126
- measurements?: Record<string, {
127
- unit: MeasurementUnit;
128
- values: {
129
- elapsed_since_start_ns: number;
130
- value: number;
131
- }[];
132
- }>;
133
- }
134
- export interface ProfileChunk extends BaseProfile<ContinuousThreadCpuProfile> {
135
- chunk_id: string;
136
- profiler_id: string;
137
- client_sdk: {
138
- name: string;
139
- version: string;
140
- };
141
- }
142
- export {};
143
- //# sourceMappingURL=profiling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profiling.d.ts","sourceRoot":"","sources":["../../src/profiling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM;IAClD,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IAC5B,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,WAAW;IACzE,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,QAAQ;IACvB,aAAa,IAAI,IAAI,CAAC;I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AAM,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE;QACX,MAAM,EAAE,UAAU,EAAE,CAAC;KACtB,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,YAAY,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,eAAe,EAAE,MAAM,CAAC;KACzB,EAAE,CAAC;IACJ,YAAY,CAAC,EAAE,MAAM,CACnB,MAAM,EACN;QACE,IAAI,EAAE,eAAe,CAAC;QACtB,MAAM,EAAE;YACN,sBAAsB,EAAE,MAAM,CAAC;YAC/B,KAAK,EAAE,MAAM,CAAC;SACf,EAAE,CAAC;KACL,CACF,CAAC;CACH;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW,CAAC,0BAA0B,CAAC;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
@@ -1,25 +0,0 @@
1
- import type { Event } from './event';
2
- /**
3
- * NOTE: These types are still considered Beta and subject to change.
4
- * @hidden
5
- */
6
- export interface ReplayEvent extends Event {
7
- urls: string[];
8
- replay_start_timestamp?: number;
9
- error_ids: string[];
10
- trace_ids: string[];
11
- replay_id: string;
12
- segment_id: number;
13
- replay_type: ReplayRecordingMode;
14
- }
15
- /**
16
- * NOTE: These types are still considered Beta and subject to change.
17
- * @hidden
18
- */
19
- export type ReplayRecordingData = string | Uint8Array;
20
- /**
21
- * NOTE: These types are still considered Beta and subject to change.
22
- * @hidden
23
- */
24
- export type ReplayRecordingMode = 'session' | 'buffer';
25
- //# sourceMappingURL=replay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../src/replay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,KAAK;IACxC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAC"}
@@ -1,38 +0,0 @@
1
- /**
2
- * Request data included in an event as sent to Sentry.
3
- */
4
- export interface RequestEventData {
5
- url?: string;
6
- method?: string;
7
- data?: any;
8
- query_string?: QueryParams;
9
- cookies?: {
10
- [key: string]: string;
11
- };
12
- env?: {
13
- [key: string]: string;
14
- };
15
- headers?: {
16
- [key: string]: string;
17
- };
18
- }
19
- /**
20
- * Request data included in an event as sent to Sentry.
21
- * @deprecated: This type will be removed in v9. Use `RequestEventData` instead.
22
- */
23
- export type Request = RequestEventData;
24
- export type QueryParams = string | {
25
- [key: string]: string;
26
- } | Array<[string, string]>;
27
- /**
28
- * Request data that is considered safe for `span.data` on `http.client` spans
29
- * and for `http` breadcrumbs
30
- * See https://develop.sentry.dev/sdk/data-handling/#structuring-data
31
- */
32
- export type SanitizedRequestData = {
33
- url: string;
34
- 'http.method': string;
35
- 'http.fragment'?: string;
36
- 'http.query'?: string;
37
- };
38
- //# sourceMappingURL=request.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/request.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,GAAG,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAChC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEvF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,6 +0,0 @@
1
- /** Runtime Context. */
2
- export interface Runtime {
3
- name?: string;
4
- version?: string;
5
- }
6
- //# sourceMappingURL=runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}