@nativescript-community/sentry 4.6.22 → 4.6.24

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 (90) hide show
  1. package/breadcrumb.d.ts +1 -1
  2. package/breadcrumb.js.map +1 -1
  3. package/client.d.ts +23 -23
  4. package/client.js +36 -40
  5. package/client.js.map +1 -1
  6. package/index.d.ts +7 -7
  7. package/index.js +6 -6
  8. package/index.js.map +1 -1
  9. package/integrations/debugsymbolicator.d.ts +4 -4
  10. package/integrations/debugsymbolicator.js +13 -11
  11. package/integrations/debugsymbolicator.js.map +1 -1
  12. package/integrations/default.js +1 -2
  13. package/integrations/default.js.map +1 -1
  14. package/integrations/devicecontext.js +11 -11
  15. package/integrations/devicecontext.js.map +1 -1
  16. package/integrations/eventorigin.js +1 -2
  17. package/integrations/eventorigin.js.map +1 -1
  18. package/integrations/factory.js.map +1 -1
  19. package/integrations/index.js.map +1 -1
  20. package/integrations/nativescripterrorhandlers.d.ts +8 -8
  21. package/integrations/nativescripterrorhandlers.js +7 -3
  22. package/integrations/nativescripterrorhandlers.js.map +1 -1
  23. package/integrations/release.js +5 -6
  24. package/integrations/release.js.map +1 -1
  25. package/integrations/rewriteframe.js.map +1 -1
  26. package/integrations/screenshot.d.ts +8 -8
  27. package/integrations/screenshot.js +10 -13
  28. package/integrations/screenshot.js.map +1 -1
  29. package/integrations/sdkinfo.d.ts +7 -7
  30. package/integrations/sdkinfo.js +15 -16
  31. package/integrations/sdkinfo.js.map +1 -1
  32. package/measurements.js.map +1 -1
  33. package/misc.d.ts +4 -4
  34. package/misc.js +5 -8
  35. package/misc.js.map +1 -1
  36. package/options.d.ts +66 -62
  37. package/options.js.map +1 -1
  38. package/package.json +2 -2
  39. package/platforms/android/buildscript.gradle +1 -1
  40. package/platforms/android/include.gradle +1 -1
  41. package/platforms/android/native-api-usage.json +6 -0
  42. package/process.js.map +1 -1
  43. package/references.d.ts +6 -0
  44. package/scope.js.map +1 -1
  45. package/sdk.d.ts +3 -3
  46. package/sdk.js +25 -18
  47. package/sdk.js.map +1 -1
  48. package/tracing/addTracingExtensions.d.ts +1 -1
  49. package/tracing/addTracingExtensions.js +6 -4
  50. package/tracing/addTracingExtensions.js.map +1 -1
  51. package/tracing/index.js.map +1 -1
  52. package/tracing/nativeframes.d.ts +22 -22
  53. package/tracing/nativeframes.js +30 -34
  54. package/tracing/nativeframes.js.map +1 -1
  55. package/tracing/nstracing.d.ts +1 -1
  56. package/tracing/nstracing.js +42 -26
  57. package/tracing/nstracing.js.map +1 -1
  58. package/tracing/ops.js.map +1 -1
  59. package/tracing/routingInstrumentation.d.ts +2 -2
  60. package/tracing/routingInstrumentation.js +3 -5
  61. package/tracing/routingInstrumentation.js.map +1 -1
  62. package/tracing/stalltracking.js +16 -9
  63. package/tracing/stalltracking.js.map +1 -1
  64. package/tracing/transaction.js.map +1 -1
  65. package/tracing/types.d.ts +1 -1
  66. package/tracing/types.js.map +1 -1
  67. package/tracing/utils.js.map +1 -1
  68. package/transports/TextEncoder.js.map +1 -1
  69. package/transports/native.d.ts +1 -1
  70. package/transports/native.js.map +1 -1
  71. package/typings/android.d.ts +10738 -0
  72. package/typings/ios.d.ts +2255 -0
  73. package/typings/ns.ios.d.ts +25 -0
  74. package/utils/envelope.js +9 -4
  75. package/utils/envelope.js.map +1 -1
  76. package/utils/environment.js.map +1 -1
  77. package/utils/outcome.js.map +1 -1
  78. package/utils/safe.d.ts +1 -1
  79. package/utils/safe.js.map +1 -1
  80. package/vendor/buffer/index.js.map +1 -1
  81. package/vendor/buffer/utf8ToBytes.js.map +1 -1
  82. package/vendor/index.js.map +1 -1
  83. package/version.js.map +1 -1
  84. package/wrapper.android.d.ts +5 -2
  85. package/wrapper.android.js +121 -78
  86. package/wrapper.android.js.map +1 -1
  87. package/wrapper.d.ts +2 -4
  88. package/wrapper.ios.d.ts +3 -3
  89. package/wrapper.ios.js +48 -44
  90. package/wrapper.ios.js.map +1 -1
@@ -0,0 +1,2255 @@
1
+
2
+ declare function NSErrorFromSentryError(error: SentryError, description: string): NSError;
3
+
4
+ declare function NSErrorFromSentryErrorWithException(error: SentryError, description: string, exception: NSException): NSError;
5
+
6
+ declare function NSErrorFromSentryErrorWithKernelError(error: SentryError, description: string, kernelErrorCode: number): NSError;
7
+
8
+ declare function NSErrorFromSentryErrorWithUnderlyingError(error: SentryError, description: string, underlyingError: NSError): NSError;
9
+
10
+ declare class PrivateSentrySDKOnly extends NSObject {
11
+
12
+ static alloc(): PrivateSentrySDKOnly; // inherited from NSObject
13
+
14
+ static breadcrumbWithDictionary(dictionary: NSDictionary<any, any>): SentryBreadcrumb;
15
+
16
+ static captureEnvelope(envelope: SentryEnvelope): void;
17
+
18
+ static captureScreenshots(): NSArray<NSData>;
19
+
20
+ static captureViewHierarchy(): NSData;
21
+
22
+ static collectProfileBetween(startSystemTime: number): NSMutableDictionary<string, any>;
23
+
24
+ static discardProfilerForTrace(traceId: SentryId): void;
25
+
26
+ static envelopeWithData(data: NSData): SentryEnvelope;
27
+
28
+ static getDebugImages(): NSArray<SentryDebugMeta>;
29
+
30
+ static getDebugImagesCrashed(isCrash: boolean): NSArray<SentryDebugMeta>;
31
+
32
+ static getExtraContext(): NSDictionary<any, any>;
33
+
34
+ static getSdkName(): string;
35
+
36
+ static getSdkVersionString(): string;
37
+
38
+ static new(): PrivateSentrySDKOnly; // inherited from NSObject
39
+
40
+ static setSdkName(sdkName: string): void;
41
+
42
+ static setSdkNameAndVersionString(sdkName: string, versionString: string): void;
43
+
44
+ static startProfilerForTrace(traceId: SentryId): number;
45
+
46
+ static storeEnvelope(envelope: SentryEnvelope): void;
47
+
48
+ static userWithDictionary(dictionary: NSDictionary<any, any>): SentryUser;
49
+
50
+ static readonly appStartMeasurement: SentryAppStartMeasurement;
51
+
52
+ static appStartMeasurementHybridSDKMode: boolean;
53
+
54
+ static readonly currentScreenFrames: SentryScreenFrames;
55
+
56
+ static framesTrackingMeasurementHybridSDKMode: boolean;
57
+
58
+ static readonly installationID: string;
59
+
60
+ static readonly isFramesTrackingRunning: boolean;
61
+
62
+ static onAppStartMeasurementAvailable: (p1: SentryAppStartMeasurement) => void;
63
+
64
+ static readonly options: SentryOptions;
65
+ }
66
+
67
+ declare class SentryAppStartMeasurement extends NSObject {
68
+
69
+ static alloc(): SentryAppStartMeasurement; // inherited from NSObject
70
+
71
+ static new(): SentryAppStartMeasurement; // inherited from NSObject
72
+
73
+ readonly appStartTimestamp: Date;
74
+
75
+ readonly didFinishLaunchingTimestamp: Date;
76
+
77
+ readonly duration: number;
78
+
79
+ readonly isPreWarmed: boolean;
80
+
81
+ readonly moduleInitializationTimestamp: Date;
82
+
83
+ readonly runtimeInitTimestamp: Date;
84
+
85
+ readonly sdkStartTimestamp: Date;
86
+
87
+ readonly type: SentryAppStartType;
88
+
89
+ constructor(o: { type: SentryAppStartType; isPreWarmed: boolean; appStartTimestamp: Date; duration: number; runtimeInitTimestamp: Date; moduleInitializationTimestamp: Date; sdkStartTimestamp: Date; didFinishLaunchingTimestamp: Date });
90
+
91
+ initWithTypeIsPreWarmedAppStartTimestampDurationRuntimeInitTimestampModuleInitializationTimestampSdkStartTimestampDidFinishLaunchingTimestamp(type: SentryAppStartType, isPreWarmed: boolean, appStartTimestamp: Date, duration: number, runtimeInitTimestamp: Date, moduleInitializationTimestamp: Date, sdkStartTimestamp: Date, didFinishLaunchingTimestamp: Date): this;
92
+ }
93
+
94
+ declare const enum SentryAppStartType {
95
+
96
+ Warm = 0,
97
+
98
+ Cold = 1,
99
+
100
+ Unknown = 2
101
+ }
102
+
103
+ declare class SentryAttachment extends NSObject {
104
+
105
+ static alloc(): SentryAttachment; // inherited from NSObject
106
+
107
+ static new(): SentryAttachment; // inherited from NSObject
108
+
109
+ readonly contentType: string;
110
+
111
+ readonly data: NSData;
112
+
113
+ readonly filename: string;
114
+
115
+ readonly path: string;
116
+
117
+ constructor(o: { data: NSData; filename: string });
118
+
119
+ constructor(o: { data: NSData; filename: string; contentType: string });
120
+
121
+ constructor(o: { path: string });
122
+
123
+ constructor(o: { path: string; filename: string });
124
+
125
+ constructor(o: { path: string; filename: string; contentType: string });
126
+
127
+ initWithDataFilename(data: NSData, filename: string): this;
128
+
129
+ initWithDataFilenameContentType(data: NSData, filename: string, contentType: string): this;
130
+
131
+ initWithPath(path: string): this;
132
+
133
+ initWithPathFilename(path: string, filename: string): this;
134
+
135
+ initWithPathFilenameContentType(path: string, filename: string, contentType: string): this;
136
+ }
137
+
138
+ declare class SentryBinaryImageCache extends NSObject {
139
+
140
+ static alloc(): SentryBinaryImageCache; // inherited from NSObject
141
+
142
+ static new(): SentryBinaryImageCache; // inherited from NSObject
143
+
144
+ imageByAddress(address: number): SentryBinaryImageInfo;
145
+
146
+ pathForInAppInclude(inAppInclude: string): string;
147
+
148
+ start(): void;
149
+
150
+ stop(): void;
151
+ }
152
+
153
+ declare class SentryBinaryImageInfo extends NSObject {
154
+
155
+ static alloc(): SentryBinaryImageInfo; // inherited from NSObject
156
+
157
+ static new(): SentryBinaryImageInfo; // inherited from NSObject
158
+
159
+ address: number;
160
+
161
+ name: string;
162
+
163
+ size: number;
164
+ }
165
+
166
+ declare class SentryBreadcrumb extends NSObject implements SentrySerializable {
167
+
168
+ static alloc(): SentryBreadcrumb; // inherited from NSObject
169
+
170
+ static new(): SentryBreadcrumb; // inherited from NSObject
171
+
172
+ category: string;
173
+
174
+ data: NSDictionary<string, any>;
175
+
176
+ level: SentryLevel;
177
+
178
+ message: string;
179
+
180
+ timestamp: Date;
181
+
182
+ type: string;
183
+
184
+ readonly debugDescription: string; // inherited from NSObjectProtocol
185
+
186
+ readonly description: string; // inherited from NSObjectProtocol
187
+
188
+ readonly hash: number; // inherited from NSObjectProtocol
189
+
190
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
191
+
192
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
193
+
194
+ readonly; // inherited from NSObjectProtocol
195
+
196
+ constructor(o: { dictionary: NSDictionary<any, any> });
197
+
198
+ constructor(o: { level: SentryLevel; category: string });
199
+
200
+ class(): typeof NSObject;
201
+
202
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
203
+
204
+ hash(): number;
205
+
206
+ initWithDictionary(dictionary: NSDictionary<any, any>): this;
207
+
208
+ initWithLevelCategory(level: SentryLevel, category: string): this;
209
+
210
+ isEqual(object: any): boolean;
211
+
212
+ isEqualToBreadcrumb(breadcrumb: SentryBreadcrumb): boolean;
213
+
214
+ isKindOfClass(aClass: typeof NSObject): boolean;
215
+
216
+ isMemberOfClass(aClass: typeof NSObject): boolean;
217
+
218
+ performSelector(aSelector: string): any;
219
+
220
+ performSelectorWithObject(aSelector: string, object: any): any;
221
+
222
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
223
+
224
+ respondsToSelector(aSelector: string): boolean;
225
+
226
+ retainCount(): number;
227
+
228
+ self(): this;
229
+
230
+ serialize(): NSDictionary<string, any>;
231
+ }
232
+
233
+ declare class SentryClient extends NSObject {
234
+
235
+ static alloc(): SentryClient; // inherited from NSObject
236
+
237
+ static new(): SentryClient; // inherited from NSObject
238
+
239
+ readonly isEnabled: boolean;
240
+
241
+ options: SentryOptions;
242
+
243
+ constructor(o: { options: SentryOptions });
244
+
245
+ captureError(error: NSError): SentryId;
246
+
247
+ captureErrorWithScope(error: NSError, scope: SentryScope): SentryId;
248
+
249
+ captureEvent(event: SentryEvent): SentryId;
250
+
251
+ captureEventWithScope(event: SentryEvent, scope: SentryScope): SentryId;
252
+
253
+ captureException(exception: NSException): SentryId;
254
+
255
+ captureExceptionWithScope(exception: NSException, scope: SentryScope): SentryId;
256
+
257
+ captureMessage(message: string): SentryId;
258
+
259
+ captureMessageWithScope(message: string, scope: SentryScope): SentryId;
260
+
261
+ captureUserFeedback(userFeedback: SentryUserFeedback): void;
262
+
263
+ close(): void;
264
+
265
+ flush(timeout: number): void;
266
+
267
+ initWithOptions(options: SentryOptions): this;
268
+ }
269
+
270
+ declare class SentryCrashExceptionApplication extends NSObject {
271
+
272
+ static alloc(): SentryCrashExceptionApplication; // inherited from NSObject
273
+
274
+ static new(): SentryCrashExceptionApplication; // inherited from NSObject
275
+ }
276
+
277
+ declare class SentryDebugImageProvider extends NSObject {
278
+
279
+ static alloc(): SentryDebugImageProvider; // inherited from NSObject
280
+
281
+ static new(): SentryDebugImageProvider; // inherited from NSObject
282
+
283
+ getDebugImages(): NSArray<SentryDebugMeta>;
284
+
285
+ getDebugImagesCrashed(isCrash: boolean): NSArray<SentryDebugMeta>;
286
+
287
+ getDebugImagesForFrames(frames: NSArray<SentryFrame> | SentryFrame[]): NSArray<SentryDebugMeta>;
288
+
289
+ getDebugImagesForFramesIsCrash(frames: NSArray<SentryFrame> | SentryFrame[], isCrash: boolean): NSArray<SentryDebugMeta>;
290
+
291
+ getDebugImagesForThreads(threads: NSArray<SentryThread> | SentryThread[]): NSArray<SentryDebugMeta>;
292
+
293
+ getDebugImagesForThreadsIsCrash(threads: NSArray<SentryThread> | SentryThread[], isCrash: boolean): NSArray<SentryDebugMeta>;
294
+ }
295
+
296
+ declare class SentryDebugMeta extends NSObject implements SentrySerializable {
297
+
298
+ static alloc(): SentryDebugMeta; // inherited from NSObject
299
+
300
+ static new(): SentryDebugMeta; // inherited from NSObject
301
+
302
+ codeFile: string;
303
+
304
+ debugID: string;
305
+
306
+ imageAddress: string;
307
+
308
+ imageSize: number;
309
+
310
+ imageVmAddress: string;
311
+
312
+ name: string;
313
+
314
+ type: string;
315
+
316
+ uuid: string;
317
+
318
+ readonly debugDescription: string; // inherited from NSObjectProtocol
319
+
320
+ readonly description: string; // inherited from NSObjectProtocol
321
+
322
+ readonly hash: number; // inherited from NSObjectProtocol
323
+
324
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
325
+
326
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
327
+
328
+ readonly; // inherited from NSObjectProtocol
329
+
330
+ class(): typeof NSObject;
331
+
332
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
333
+
334
+ isEqual(object: any): boolean;
335
+
336
+ isKindOfClass(aClass: typeof NSObject): boolean;
337
+
338
+ isMemberOfClass(aClass: typeof NSObject): boolean;
339
+
340
+ performSelector(aSelector: string): any;
341
+
342
+ performSelectorWithObject(aSelector: string, object: any): any;
343
+
344
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
345
+
346
+ respondsToSelector(aSelector: string): boolean;
347
+
348
+ retainCount(): number;
349
+
350
+ self(): this;
351
+
352
+ serialize(): NSDictionary<string, any>;
353
+ }
354
+
355
+ declare class SentryDependencyContainer extends NSObject {
356
+
357
+ static alloc(): SentryDependencyContainer; // inherited from NSObject
358
+
359
+ static new(): SentryDependencyContainer; // inherited from NSObject
360
+
361
+ static reset(): void;
362
+
363
+ static sharedInstance(): SentryDependencyContainer;
364
+
365
+ binaryImageCache: SentryBinaryImageCache;
366
+
367
+ debugImageProvider: SentryDebugImageProvider;
368
+
369
+ metricKitManager: SentryMXManager;
370
+
371
+ random: any;
372
+ }
373
+
374
+ declare class SentryDsn extends NSObject {
375
+
376
+ static alloc(): SentryDsn; // inherited from NSObject
377
+
378
+ static new(): SentryDsn; // inherited from NSObject
379
+
380
+ readonly url: NSURL;
381
+
382
+ constructor(o: { string: string });
383
+
384
+ getEnvelopeEndpoint(): NSURL;
385
+
386
+ getHash(): string;
387
+
388
+ getStoreEndpoint(): NSURL;
389
+
390
+ initWithStringDidFailWithError(dsnString: string): this;
391
+ }
392
+
393
+ declare class SentryEnvelope extends NSObject {
394
+
395
+ static alloc(): SentryEnvelope; // inherited from NSObject
396
+
397
+ static new(): SentryEnvelope; // inherited from NSObject
398
+
399
+ readonly header: SentryEnvelopeHeader;
400
+
401
+ readonly items: NSArray<SentryEnvelopeItem>;
402
+
403
+ constructor(o: { event: SentryEvent });
404
+
405
+ constructor(o: { header: SentryEnvelopeHeader; items: NSArray<SentryEnvelopeItem> | SentryEnvelopeItem[] });
406
+
407
+ constructor(o: { header: SentryEnvelopeHeader; singleItem: SentryEnvelopeItem });
408
+
409
+ constructor(o: { id: SentryId; items: NSArray<SentryEnvelopeItem> | SentryEnvelopeItem[] });
410
+
411
+ constructor(o: { id: SentryId; singleItem: SentryEnvelopeItem });
412
+
413
+ constructor(o: { userFeedback: SentryUserFeedback });
414
+
415
+ initWithEvent(event: SentryEvent): this;
416
+
417
+ initWithHeaderItems(header: SentryEnvelopeHeader, items: NSArray<SentryEnvelopeItem> | SentryEnvelopeItem[]): this;
418
+
419
+ initWithHeaderSingleItem(header: SentryEnvelopeHeader, item: SentryEnvelopeItem): this;
420
+
421
+ initWithIdItems(id: SentryId, items: NSArray<SentryEnvelopeItem> | SentryEnvelopeItem[]): this;
422
+
423
+ initWithIdSingleItem(id: SentryId, item: SentryEnvelopeItem): this;
424
+
425
+ initWithUserFeedback(userFeedback: SentryUserFeedback): this;
426
+ }
427
+
428
+ declare class SentryEnvelopeHeader extends NSObject {
429
+
430
+ static alloc(): SentryEnvelopeHeader; // inherited from NSObject
431
+
432
+ static new(): SentryEnvelopeHeader; // inherited from NSObject
433
+
434
+ readonly eventId: SentryId;
435
+
436
+ sentAt: Date;
437
+
438
+ constructor(o: { id: SentryId });
439
+
440
+ initWithId(eventId: SentryId): this;
441
+ }
442
+
443
+ declare class SentryEnvelopeItem extends NSObject {
444
+
445
+ static alloc(): SentryEnvelopeItem; // inherited from NSObject
446
+
447
+ static new(): SentryEnvelopeItem; // inherited from NSObject
448
+
449
+ readonly data: NSData;
450
+
451
+ readonly header: SentryEnvelopeItemHeader;
452
+
453
+ constructor(o: { attachment: SentryAttachment; maxAttachmentSize: number });
454
+
455
+ constructor(o: { event: SentryEvent });
456
+
457
+ constructor(o: { header: SentryEnvelopeItemHeader; data: NSData });
458
+
459
+ constructor(o: { userFeedback: SentryUserFeedback });
460
+
461
+ initWithAttachmentMaxAttachmentSize(attachment: SentryAttachment, maxAttachmentSize: number): this;
462
+
463
+ initWithEvent(event: SentryEvent): this;
464
+
465
+ initWithHeaderData(header: SentryEnvelopeItemHeader, data: NSData): this;
466
+
467
+ initWithUserFeedback(userFeedback: SentryUserFeedback): this;
468
+ }
469
+
470
+ declare class SentryEnvelopeItemHeader extends NSObject implements SentrySerializable {
471
+
472
+ static alloc(): SentryEnvelopeItemHeader; // inherited from NSObject
473
+
474
+ static new(): SentryEnvelopeItemHeader; // inherited from NSObject
475
+
476
+ readonly contentType: string;
477
+
478
+ readonly filename: string;
479
+
480
+ readonly length: number;
481
+
482
+ readonly type: string;
483
+
484
+ readonly debugDescription: string; // inherited from NSObjectProtocol
485
+
486
+ readonly description: string; // inherited from NSObjectProtocol
487
+
488
+ readonly hash: number; // inherited from NSObjectProtocol
489
+
490
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
491
+
492
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
493
+
494
+ readonly; // inherited from NSObjectProtocol
495
+
496
+ constructor(o: { type: string; length: number });
497
+
498
+ constructor(o: { type: string; length: number; filenname: string; contentType: string });
499
+
500
+ class(): typeof NSObject;
501
+
502
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
503
+
504
+ initWithTypeLength(type: string, length: number): this;
505
+
506
+ initWithTypeLengthFilennameContentType(type: string, length: number, filename: string, contentType: string): this;
507
+
508
+ isEqual(object: any): boolean;
509
+
510
+ isKindOfClass(aClass: typeof NSObject): boolean;
511
+
512
+ isMemberOfClass(aClass: typeof NSObject): boolean;
513
+
514
+ performSelector(aSelector: string): any;
515
+
516
+ performSelectorWithObject(aSelector: string, object: any): any;
517
+
518
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
519
+
520
+ respondsToSelector(aSelector: string): boolean;
521
+
522
+ retainCount(): number;
523
+
524
+ self(): this;
525
+
526
+ serialize(): NSDictionary<string, any>;
527
+ }
528
+
529
+ declare const enum SentryError {
530
+
531
+ kSentryErrorUnknownError = -1,
532
+
533
+ kSentryErrorInvalidDsnError = 100,
534
+
535
+ kSentryErrorSentryCrashNotInstalledError = 101,
536
+
537
+ kSentryErrorInvalidCrashReportError = 102,
538
+
539
+ kSentryErrorCompressionError = 103,
540
+
541
+ kSentryErrorJsonConversionError = 104,
542
+
543
+ kSentryErrorCouldNotFindDirectory = 105,
544
+
545
+ kSentryErrorRequestError = 106,
546
+
547
+ kSentryErrorEventNotSent = 107,
548
+
549
+ kSentryErrorFileIO = 108,
550
+
551
+ kSentryErrorKernel = 109
552
+ }
553
+
554
+ declare let SentryErrorDomain: string;
555
+
556
+ declare class SentryEvent extends NSObject implements SentrySerializable {
557
+
558
+ static alloc(): SentryEvent; // inherited from NSObject
559
+
560
+ static new(): SentryEvent; // inherited from NSObject
561
+
562
+ breadcrumbs: NSArray<SentryBreadcrumb>;
563
+
564
+ context: NSDictionary<string, NSDictionary<string, any>>;
565
+
566
+ debugMeta: NSArray<SentryDebugMeta>;
567
+
568
+ dist: string;
569
+
570
+ environment: string;
571
+
572
+ error: NSError;
573
+
574
+ eventId: SentryId;
575
+
576
+ exceptions: NSArray<SentryException>;
577
+
578
+ extra: NSDictionary<string, any>;
579
+
580
+ fingerprint: NSArray<string>;
581
+
582
+ level: SentryLevel;
583
+
584
+ logger: string;
585
+
586
+ message: SentryMessage;
587
+
588
+ modules: NSDictionary<string, string>;
589
+
590
+ platform: string;
591
+
592
+ releaseName: string;
593
+
594
+ request: SentryRequest;
595
+
596
+ sdk: NSDictionary<string, any>;
597
+
598
+ serverName: string;
599
+
600
+ stacktrace: SentryStacktrace;
601
+
602
+ startTimestamp: Date;
603
+
604
+ tags: NSDictionary<string, string>;
605
+
606
+ threads: NSArray<SentryThread>;
607
+
608
+ timestamp: Date;
609
+
610
+ transaction: string;
611
+
612
+ type: string;
613
+
614
+ user: SentryUser;
615
+
616
+ readonly debugDescription: string; // inherited from NSObjectProtocol
617
+
618
+ readonly description: string; // inherited from NSObjectProtocol
619
+
620
+ readonly hash: number; // inherited from NSObjectProtocol
621
+
622
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
623
+
624
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
625
+
626
+ readonly; // inherited from NSObjectProtocol
627
+
628
+ constructor(o: { error: NSError });
629
+
630
+ constructor(o: { level: SentryLevel });
631
+
632
+ class(): typeof NSObject;
633
+
634
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
635
+
636
+ initWithError(error: NSError): this;
637
+
638
+ initWithLevel(level: SentryLevel): this;
639
+
640
+ isEqual(object: any): boolean;
641
+
642
+ isKindOfClass(aClass: typeof NSObject): boolean;
643
+
644
+ isMemberOfClass(aClass: typeof NSObject): boolean;
645
+
646
+ performSelector(aSelector: string): any;
647
+
648
+ performSelectorWithObject(aSelector: string, object: any): any;
649
+
650
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
651
+
652
+ respondsToSelector(aSelector: string): boolean;
653
+
654
+ retainCount(): number;
655
+
656
+ self(): this;
657
+
658
+ serialize(): NSDictionary<string, any>;
659
+ }
660
+
661
+ declare class SentryException extends NSObject implements SentrySerializable {
662
+
663
+ static alloc(): SentryException; // inherited from NSObject
664
+
665
+ static new(): SentryException; // inherited from NSObject
666
+
667
+ mechanism: SentryMechanism;
668
+
669
+ module: string;
670
+
671
+ stacktrace: SentryStacktrace;
672
+
673
+ threadId: number;
674
+
675
+ type: string;
676
+
677
+ value: string;
678
+
679
+ readonly debugDescription: string; // inherited from NSObjectProtocol
680
+
681
+ readonly description: string; // inherited from NSObjectProtocol
682
+
683
+ readonly hash: number; // inherited from NSObjectProtocol
684
+
685
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
686
+
687
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
688
+
689
+ readonly; // inherited from NSObjectProtocol
690
+
691
+ constructor(o: { value: string; type: string });
692
+
693
+ class(): typeof NSObject;
694
+
695
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
696
+
697
+ initWithValueType(value: string, type: string): this;
698
+
699
+ isEqual(object: any): boolean;
700
+
701
+ isKindOfClass(aClass: typeof NSObject): boolean;
702
+
703
+ isMemberOfClass(aClass: typeof NSObject): boolean;
704
+
705
+ performSelector(aSelector: string): any;
706
+
707
+ performSelectorWithObject(aSelector: string, object: any): any;
708
+
709
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
710
+
711
+ respondsToSelector(aSelector: string): boolean;
712
+
713
+ retainCount(): number;
714
+
715
+ self(): this;
716
+
717
+ serialize(): NSDictionary<string, any>;
718
+ }
719
+
720
+ declare class SentryFrame extends NSObject implements SentrySerializable {
721
+
722
+ static alloc(): SentryFrame; // inherited from NSObject
723
+
724
+ static new(): SentryFrame; // inherited from NSObject
725
+
726
+ columnNumber: number;
727
+
728
+ fileName: string;
729
+
730
+ function: string;
731
+
732
+ imageAddress: string;
733
+
734
+ inApp: number;
735
+
736
+ instruction: number;
737
+
738
+ instructionAddress: string;
739
+
740
+ lineNumber: number;
741
+
742
+ module: string;
743
+
744
+ package: string;
745
+
746
+ platform: string;
747
+
748
+ stackStart: number;
749
+
750
+ symbolAddress: string;
751
+
752
+ readonly debugDescription: string; // inherited from NSObjectProtocol
753
+
754
+ readonly description: string; // inherited from NSObjectProtocol
755
+
756
+ readonly hash: number; // inherited from NSObjectProtocol
757
+
758
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
759
+
760
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
761
+
762
+ readonly; // inherited from NSObjectProtocol
763
+
764
+ class(): typeof NSObject;
765
+
766
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
767
+
768
+ isEqual(object: any): boolean;
769
+
770
+ isKindOfClass(aClass: typeof NSObject): boolean;
771
+
772
+ isMemberOfClass(aClass: typeof NSObject): boolean;
773
+
774
+ performSelector(aSelector: string): any;
775
+
776
+ performSelectorWithObject(aSelector: string, object: any): any;
777
+
778
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
779
+
780
+ respondsToSelector(aSelector: string): boolean;
781
+
782
+ retainCount(): number;
783
+
784
+ self(): this;
785
+
786
+ serialize(): NSDictionary<string, any>;
787
+ }
788
+
789
+ declare class SentryGeo extends NSObject implements NSCopying, SentrySerializable {
790
+
791
+ static alloc(): SentryGeo; // inherited from NSObject
792
+
793
+ static new(): SentryGeo; // inherited from NSObject
794
+
795
+ city: string;
796
+
797
+ countryCode: string;
798
+
799
+ region: string;
800
+
801
+ readonly debugDescription: string; // inherited from NSObjectProtocol
802
+
803
+ readonly description: string; // inherited from NSObjectProtocol
804
+
805
+ readonly hash: number; // inherited from NSObjectProtocol
806
+
807
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
808
+
809
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
810
+
811
+ readonly; // inherited from NSObjectProtocol
812
+
813
+ class(): typeof NSObject;
814
+
815
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
816
+
817
+ copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
818
+
819
+ hash(): number;
820
+
821
+ isEqual(object: any): boolean;
822
+
823
+ isEqualToGeo(geo: SentryGeo): boolean;
824
+
825
+ isKindOfClass(aClass: typeof NSObject): boolean;
826
+
827
+ isMemberOfClass(aClass: typeof NSObject): boolean;
828
+
829
+ performSelector(aSelector: string): any;
830
+
831
+ performSelectorWithObject(aSelector: string, object: any): any;
832
+
833
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
834
+
835
+ respondsToSelector(aSelector: string): boolean;
836
+
837
+ retainCount(): number;
838
+
839
+ self(): this;
840
+
841
+ serialize(): NSDictionary<string, any>;
842
+ }
843
+
844
+ declare class SentryHttpStatusCodeRange extends NSObject {
845
+
846
+ static alloc(): SentryHttpStatusCodeRange; // inherited from NSObject
847
+
848
+ static new(): SentryHttpStatusCodeRange; // inherited from NSObject
849
+
850
+ readonly max: number;
851
+
852
+ readonly min: number;
853
+
854
+ constructor(o: { min: number; max: number });
855
+
856
+ constructor(o: { statusCode: number });
857
+
858
+ initWithMinMax(min: number, max: number): this;
859
+
860
+ initWithStatusCode(statusCode: number): this;
861
+ }
862
+
863
+ declare class SentryHub extends NSObject {
864
+
865
+ static alloc(): SentryHub; // inherited from NSObject
866
+
867
+ static new(): SentryHub; // inherited from NSObject
868
+
869
+ readonly scope: SentryScope;
870
+
871
+ constructor(o: { client: SentryClient; andScope: SentryScope });
872
+
873
+ addBreadcrumb(crumb: SentryBreadcrumb): void;
874
+
875
+ bindClient(client: SentryClient): void;
876
+
877
+ captureError(error: NSError): SentryId;
878
+
879
+ captureErrorWithScope(error: NSError, scope: SentryScope): SentryId;
880
+
881
+ captureEvent(event: SentryEvent): SentryId;
882
+
883
+ captureEventWithScope(event: SentryEvent, scope: SentryScope): SentryId;
884
+
885
+ captureException(exception: NSException): SentryId;
886
+
887
+ captureExceptionWithScope(exception: NSException, scope: SentryScope): SentryId;
888
+
889
+ captureMessage(message: string): SentryId;
890
+
891
+ captureMessageWithScope(message: string, scope: SentryScope): SentryId;
892
+
893
+ captureUserFeedback(userFeedback: SentryUserFeedback): void;
894
+
895
+ close(): void;
896
+
897
+ configureScope(callback: (p1: SentryScope) => void): void;
898
+
899
+ endSession(): void;
900
+
901
+ endSessionWithTimestamp(timestamp: Date): void;
902
+
903
+ flush(timeout: number): void;
904
+
905
+ getClient(): SentryClient;
906
+
907
+ hasIntegration(integrationName: string): boolean;
908
+
909
+ initWithClientAndScope(client: SentryClient, scope: SentryScope): this;
910
+
911
+ isIntegrationInstalled(integrationClass: typeof NSObject): boolean;
912
+
913
+ reportFullyDisplayed(): void;
914
+
915
+ setUser(user: SentryUser): void;
916
+
917
+ startSession(): void;
918
+
919
+ startTransactionWithContext(transactionContext: SentryTransactionContext): SentrySpan;
920
+
921
+ startTransactionWithContextBindToScope(transactionContext: SentryTransactionContext, bindToScope: boolean): SentrySpan;
922
+
923
+ startTransactionWithContextBindToScopeCustomSamplingContext(transactionContext: SentryTransactionContext, bindToScope: boolean, customSamplingContext: NSDictionary<string, any>): SentrySpan;
924
+
925
+ startTransactionWithContextCustomSamplingContext(transactionContext: SentryTransactionContext, customSamplingContext: NSDictionary<string, any>): SentrySpan;
926
+
927
+ startTransactionWithNameOperation(name: string, operation: string): SentrySpan;
928
+
929
+ startTransactionWithNameOperationBindToScope(name: string, operation: string, bindToScope: boolean): SentrySpan;
930
+ }
931
+
932
+ declare class SentryId extends NSObject {
933
+
934
+ static alloc(): SentryId; // inherited from NSObject
935
+
936
+ static new(): SentryId; // inherited from NSObject
937
+
938
+ readonly sentryIdString: string;
939
+
940
+ static readonly empty: SentryId;
941
+
942
+ constructor(o: { UUID: NSUUID });
943
+
944
+ constructor(o: { UUIDString: string });
945
+
946
+ initWithUUID(uuid: NSUUID): this;
947
+
948
+ initWithUUIDString(string: string): this;
949
+ }
950
+
951
+ interface SentryIntegrationProtocol extends NSObjectProtocol {
952
+
953
+ installWithOptions(options: SentryOptions): boolean;
954
+
955
+ uninstall?(): void;
956
+ }
957
+ declare var SentryIntegrationProtocol: {
958
+
959
+ prototype: SentryIntegrationProtocol;
960
+ };
961
+
962
+ declare const enum SentryLevel {
963
+
964
+ kSentryLevelNone = 0,
965
+
966
+ kSentryLevelDebug = 1,
967
+
968
+ kSentryLevelInfo = 2,
969
+
970
+ kSentryLevelWarning = 3,
971
+
972
+ kSentryLevelError = 4,
973
+
974
+ kSentryLevelFatal = 5
975
+ }
976
+
977
+ declare const enum SentryLogLevel {
978
+
979
+ kSentryLogLevelNone = 1,
980
+
981
+ kSentryLogLevelError = 2,
982
+
983
+ kSentryLogLevelDebug = 3,
984
+
985
+ kSentryLogLevelVerbose = 4
986
+ }
987
+
988
+ declare class SentryMeasurementUnit extends NSObject implements NSCopying {
989
+
990
+ static alloc(): SentryMeasurementUnit; // inherited from NSObject
991
+
992
+ static new(): SentryMeasurementUnit; // inherited from NSObject
993
+
994
+ readonly unit: string;
995
+
996
+ static readonly none: SentryMeasurementUnit;
997
+
998
+ constructor(o: { unit: string });
999
+
1000
+ copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
1001
+
1002
+ initWithUnit(unit: string): this;
1003
+ }
1004
+
1005
+ declare class SentryMeasurementUnitDuration extends SentryMeasurementUnit {
1006
+
1007
+ static alloc(): SentryMeasurementUnitDuration; // inherited from NSObject
1008
+
1009
+ static new(): SentryMeasurementUnitDuration; // inherited from NSObject
1010
+
1011
+ static readonly day: SentryMeasurementUnitDuration;
1012
+
1013
+ static readonly hour: SentryMeasurementUnitDuration;
1014
+
1015
+ static readonly microsecond: SentryMeasurementUnitDuration;
1016
+
1017
+ static readonly millisecond: SentryMeasurementUnitDuration;
1018
+
1019
+ static readonly minute: SentryMeasurementUnitDuration;
1020
+
1021
+ static readonly nanosecond: SentryMeasurementUnitDuration;
1022
+
1023
+ static readonly second: SentryMeasurementUnitDuration;
1024
+
1025
+ static readonly week: SentryMeasurementUnitDuration;
1026
+ }
1027
+
1028
+ declare class SentryMeasurementUnitFraction extends SentryMeasurementUnit {
1029
+
1030
+ static alloc(): SentryMeasurementUnitFraction; // inherited from NSObject
1031
+
1032
+ static new(): SentryMeasurementUnitFraction; // inherited from NSObject
1033
+
1034
+ static readonly percent: SentryMeasurementUnitFraction;
1035
+
1036
+ static readonly ratio: SentryMeasurementUnitFraction;
1037
+ }
1038
+
1039
+ declare class SentryMeasurementUnitInformation extends SentryMeasurementUnit {
1040
+
1041
+ static alloc(): SentryMeasurementUnitInformation; // inherited from NSObject
1042
+
1043
+ static new(): SentryMeasurementUnitInformation; // inherited from NSObject
1044
+
1045
+ static readonly bit: SentryMeasurementUnitInformation;
1046
+
1047
+ static readonly byte: SentryMeasurementUnitInformation;
1048
+
1049
+ static readonly exabyte: SentryMeasurementUnitInformation;
1050
+
1051
+ static readonly exbibyte: SentryMeasurementUnitInformation;
1052
+
1053
+ static readonly gibibyte: SentryMeasurementUnitInformation;
1054
+
1055
+ static readonly gigabyte: SentryMeasurementUnitInformation;
1056
+
1057
+ static readonly kibibyte: SentryMeasurementUnitInformation;
1058
+
1059
+ static readonly kilobyte: SentryMeasurementUnitInformation;
1060
+
1061
+ static readonly mebibyte: SentryMeasurementUnitInformation;
1062
+
1063
+ static readonly megabyte: SentryMeasurementUnitInformation;
1064
+
1065
+ static readonly pebibyte: SentryMeasurementUnitInformation;
1066
+
1067
+ static readonly petabyte: SentryMeasurementUnitInformation;
1068
+
1069
+ static readonly tebibyte: SentryMeasurementUnitInformation;
1070
+
1071
+ static readonly terabyte: SentryMeasurementUnitInformation;
1072
+ }
1073
+
1074
+ declare class SentryMechanism extends NSObject implements SentrySerializable {
1075
+
1076
+ static alloc(): SentryMechanism; // inherited from NSObject
1077
+
1078
+ static new(): SentryMechanism; // inherited from NSObject
1079
+
1080
+ data: NSDictionary<string, any>;
1081
+
1082
+ desc: string;
1083
+
1084
+ handled: number;
1085
+
1086
+ helpLink: string;
1087
+
1088
+ meta: SentryMechanismMeta;
1089
+
1090
+ synthetic: number;
1091
+
1092
+ type: string;
1093
+
1094
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1095
+
1096
+ readonly description: string; // inherited from NSObjectProtocol
1097
+
1098
+ readonly hash: number; // inherited from NSObjectProtocol
1099
+
1100
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1101
+
1102
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1103
+
1104
+ readonly; // inherited from NSObjectProtocol
1105
+
1106
+ constructor(o: { type: string });
1107
+
1108
+ class(): typeof NSObject;
1109
+
1110
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1111
+
1112
+ initWithType(type: string): this;
1113
+
1114
+ isEqual(object: any): boolean;
1115
+
1116
+ isKindOfClass(aClass: typeof NSObject): boolean;
1117
+
1118
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1119
+
1120
+ performSelector(aSelector: string): any;
1121
+
1122
+ performSelectorWithObject(aSelector: string, object: any): any;
1123
+
1124
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1125
+
1126
+ respondsToSelector(aSelector: string): boolean;
1127
+
1128
+ retainCount(): number;
1129
+
1130
+ self(): this;
1131
+
1132
+ serialize(): NSDictionary<string, any>;
1133
+ }
1134
+
1135
+ declare class SentryMechanismMeta extends NSObject implements SentrySerializable {
1136
+
1137
+ static alloc(): SentryMechanismMeta; // inherited from NSObject
1138
+
1139
+ static new(): SentryMechanismMeta; // inherited from NSObject
1140
+
1141
+ error: SentryNSError;
1142
+
1143
+ machException: NSDictionary<string, any>;
1144
+
1145
+ signal: NSDictionary<string, any>;
1146
+
1147
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1148
+
1149
+ readonly description: string; // inherited from NSObjectProtocol
1150
+
1151
+ readonly hash: number; // inherited from NSObjectProtocol
1152
+
1153
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1154
+
1155
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1156
+
1157
+ readonly; // inherited from NSObjectProtocol
1158
+
1159
+ class(): typeof NSObject;
1160
+
1161
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1162
+
1163
+ isEqual(object: any): boolean;
1164
+
1165
+ isKindOfClass(aClass: typeof NSObject): boolean;
1166
+
1167
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1168
+
1169
+ performSelector(aSelector: string): any;
1170
+
1171
+ performSelectorWithObject(aSelector: string, object: any): any;
1172
+
1173
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1174
+
1175
+ respondsToSelector(aSelector: string): boolean;
1176
+
1177
+ retainCount(): number;
1178
+
1179
+ self(): this;
1180
+
1181
+ serialize(): NSDictionary<string, any>;
1182
+ }
1183
+
1184
+ declare class SentryMessage extends NSObject implements SentrySerializable {
1185
+
1186
+ static alloc(): SentryMessage; // inherited from NSObject
1187
+
1188
+ static new(): SentryMessage; // inherited from NSObject
1189
+
1190
+ readonly formatted: string;
1191
+
1192
+ message: string;
1193
+
1194
+ params: NSArray<string>;
1195
+
1196
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1197
+
1198
+ readonly description: string; // inherited from NSObjectProtocol
1199
+
1200
+ readonly hash: number; // inherited from NSObjectProtocol
1201
+
1202
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1203
+
1204
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1205
+
1206
+ readonly; // inherited from NSObjectProtocol
1207
+
1208
+ constructor(o: { formatted: string });
1209
+
1210
+ class(): typeof NSObject;
1211
+
1212
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1213
+
1214
+ initWithFormatted(formatted: string): this;
1215
+
1216
+ isEqual(object: any): boolean;
1217
+
1218
+ isKindOfClass(aClass: typeof NSObject): boolean;
1219
+
1220
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1221
+
1222
+ performSelector(aSelector: string): any;
1223
+
1224
+ performSelectorWithObject(aSelector: string, object: any): any;
1225
+
1226
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1227
+
1228
+ respondsToSelector(aSelector: string): boolean;
1229
+
1230
+ retainCount(): number;
1231
+
1232
+ self(): this;
1233
+
1234
+ serialize(): NSDictionary<string, any>;
1235
+ }
1236
+
1237
+ declare class SentryNSError extends NSObject implements SentrySerializable {
1238
+
1239
+ static alloc(): SentryNSError; // inherited from NSObject
1240
+
1241
+ static new(): SentryNSError; // inherited from NSObject
1242
+
1243
+ code: number;
1244
+
1245
+ domain: string;
1246
+
1247
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1248
+
1249
+ readonly description: string; // inherited from NSObjectProtocol
1250
+
1251
+ readonly hash: number; // inherited from NSObjectProtocol
1252
+
1253
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1254
+
1255
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1256
+
1257
+ readonly; // inherited from NSObjectProtocol
1258
+
1259
+ constructor(o: { domain: string; code: number });
1260
+
1261
+ class(): typeof NSObject;
1262
+
1263
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1264
+
1265
+ initWithDomainCode(domain: string, code: number): this;
1266
+
1267
+ isEqual(object: any): boolean;
1268
+
1269
+ isKindOfClass(aClass: typeof NSObject): boolean;
1270
+
1271
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1272
+
1273
+ performSelector(aSelector: string): any;
1274
+
1275
+ performSelectorWithObject(aSelector: string, object: any): any;
1276
+
1277
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1278
+
1279
+ respondsToSelector(aSelector: string): boolean;
1280
+
1281
+ retainCount(): number;
1282
+
1283
+ self(): this;
1284
+
1285
+ serialize(): NSDictionary<string, any>;
1286
+ }
1287
+
1288
+ declare class SentryOptions extends NSObject {
1289
+
1290
+ static alloc(): SentryOptions; // inherited from NSObject
1291
+
1292
+ static defaultIntegrations(): NSArray<string>;
1293
+
1294
+ static new(): SentryOptions; // inherited from NSObject
1295
+
1296
+ appHangTimeoutInterval: number;
1297
+
1298
+ attachScreenshot: boolean;
1299
+
1300
+ attachStacktrace: boolean;
1301
+
1302
+ attachViewHierarchy: boolean;
1303
+
1304
+ beforeBreadcrumb: (p1: SentryBreadcrumb) => SentryBreadcrumb;
1305
+
1306
+ beforeSend: (p1: SentryEvent) => SentryEvent;
1307
+
1308
+ cacheDirectoryPath: string;
1309
+
1310
+ debug: boolean;
1311
+
1312
+ diagnosticLevel: SentryLevel;
1313
+
1314
+ dist: string;
1315
+
1316
+ dsn: string;
1317
+
1318
+ enableAppHangTracking: boolean;
1319
+
1320
+ enableAutoBreadcrumbTracking: boolean;
1321
+
1322
+ enableAutoPerformanceTracing: boolean;
1323
+
1324
+ enableAutoSessionTracking: boolean;
1325
+
1326
+ enableCaptureFailedRequests: boolean;
1327
+
1328
+ enableCoreDataTracing: boolean;
1329
+
1330
+ enableCrashHandler: boolean;
1331
+
1332
+ enableFileIOTracing: boolean;
1333
+
1334
+ enableMetricKit: boolean;
1335
+
1336
+ enableNetworkBreadcrumbs: boolean;
1337
+
1338
+ enableNetworkTracking: boolean;
1339
+
1340
+ enablePerformanceV2: boolean;
1341
+
1342
+ enablePreWarmedAppStartTracing: boolean;
1343
+
1344
+ enableProfiling: boolean;
1345
+
1346
+ enableSwizzling: boolean;
1347
+
1348
+ enableTimeToFullDisplayTracing: boolean;
1349
+
1350
+ enableTracing: boolean;
1351
+
1352
+ enableUIViewControllerTracing: boolean;
1353
+
1354
+ enableUserInteractionTracing: boolean;
1355
+
1356
+ enableWatchdogTerminationTracking: boolean;
1357
+
1358
+ enabled: boolean;
1359
+
1360
+ environment: string;
1361
+
1362
+ failedRequestStatusCodes: NSArray<SentryHttpStatusCodeRange>;
1363
+
1364
+ failedRequestTargets: NSArray<any>;
1365
+
1366
+ idleTimeout: number;
1367
+
1368
+ readonly inAppExcludes: NSArray<string>;
1369
+
1370
+ readonly inAppIncludes: NSArray<string>;
1371
+
1372
+ initialScope: (p1: SentryScope) => SentryScope;
1373
+
1374
+ integrations: NSArray<string>;
1375
+
1376
+ readonly isProfilingEnabled: boolean;
1377
+
1378
+ readonly isTracingEnabled: boolean;
1379
+
1380
+ maxAttachmentSize: number;
1381
+
1382
+ maxBreadcrumbs: number;
1383
+
1384
+ maxCacheItems: number;
1385
+
1386
+ onCrashedLastRun: (p1: SentryEvent) => void;
1387
+
1388
+ parsedDsn: SentryDsn;
1389
+
1390
+ profilesSampleRate: number;
1391
+
1392
+ profilesSampler: (p1: SentrySamplingContext) => number;
1393
+
1394
+ releaseName: string;
1395
+
1396
+ sampleRate: number;
1397
+
1398
+ sendClientReports: boolean;
1399
+
1400
+ sendDefaultPii: boolean;
1401
+
1402
+ sessionTrackingIntervalMillis: number;
1403
+
1404
+ shutdownTimeInterval: number;
1405
+
1406
+ swiftAsyncStacktraces: boolean;
1407
+
1408
+ tracePropagationTargets: NSArray<any>;
1409
+
1410
+ tracesSampleRate: number;
1411
+
1412
+ tracesSampler: (p1: SentrySamplingContext) => number;
1413
+
1414
+ urlSessionDelegate: NSURLSessionDelegate;
1415
+
1416
+ constructor(o: { dict: NSDictionary<string, any> });
1417
+
1418
+ addInAppExclude(inAppExclude: string): void;
1419
+
1420
+ addInAppInclude(inAppInclude: string): void;
1421
+
1422
+ initWithDictDidFailWithError(options: NSDictionary<string, any>): this;
1423
+ }
1424
+
1425
+ declare class SentryRequest extends NSObject implements SentrySerializable {
1426
+
1427
+ static alloc(): SentryRequest; // inherited from NSObject
1428
+
1429
+ static new(): SentryRequest; // inherited from NSObject
1430
+
1431
+ bodySize: number;
1432
+
1433
+ cookies: string;
1434
+
1435
+ fragment: string;
1436
+
1437
+ headers: NSDictionary<string, string>;
1438
+
1439
+ method: string;
1440
+
1441
+ queryString: string;
1442
+
1443
+ url: string;
1444
+
1445
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1446
+
1447
+ readonly description: string; // inherited from NSObjectProtocol
1448
+
1449
+ readonly hash: number; // inherited from NSObjectProtocol
1450
+
1451
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1452
+
1453
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1454
+
1455
+ readonly; // inherited from NSObjectProtocol
1456
+
1457
+ class(): typeof NSObject;
1458
+
1459
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1460
+
1461
+ isEqual(object: any): boolean;
1462
+
1463
+ isKindOfClass(aClass: typeof NSObject): boolean;
1464
+
1465
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1466
+
1467
+ performSelector(aSelector: string): any;
1468
+
1469
+ performSelectorWithObject(aSelector: string, object: any): any;
1470
+
1471
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1472
+
1473
+ respondsToSelector(aSelector: string): boolean;
1474
+
1475
+ retainCount(): number;
1476
+
1477
+ self(): this;
1478
+
1479
+ serialize(): NSDictionary<string, any>;
1480
+ }
1481
+
1482
+ declare class SentrySDK extends NSObject {
1483
+
1484
+ static addBreadcrumb(crumb: SentryBreadcrumb): void;
1485
+
1486
+ static alloc(): SentrySDK; // inherited from NSObject
1487
+
1488
+ static captureError(error: NSError): SentryId;
1489
+
1490
+ static captureErrorWithScope(error: NSError, scope: SentryScope): SentryId;
1491
+
1492
+ static captureErrorWithScopeBlock(error: NSError, block: (p1: SentryScope) => void): SentryId;
1493
+
1494
+ static captureEvent(event: SentryEvent): SentryId;
1495
+
1496
+ static captureEventWithScope(event: SentryEvent, scope: SentryScope): SentryId;
1497
+
1498
+ static captureEventWithScopeBlock(event: SentryEvent, block: (p1: SentryScope) => void): SentryId;
1499
+
1500
+ static captureException(exception: NSException): SentryId;
1501
+
1502
+ static captureExceptionWithScope(exception: NSException, scope: SentryScope): SentryId;
1503
+
1504
+ static captureExceptionWithScopeBlock(exception: NSException, block: (p1: SentryScope) => void): SentryId;
1505
+
1506
+ static captureMessage(message: string): SentryId;
1507
+
1508
+ static captureMessageWithScope(message: string, scope: SentryScope): SentryId;
1509
+
1510
+ static captureMessageWithScopeBlock(message: string, block: (p1: SentryScope) => void): SentryId;
1511
+
1512
+ static captureUserFeedback(userFeedback: SentryUserFeedback): void;
1513
+
1514
+ static close(): void;
1515
+
1516
+ static configureScope(callback: (p1: SentryScope) => void): void;
1517
+
1518
+ static crash(): void;
1519
+
1520
+ static endSession(): void;
1521
+
1522
+ static flush(timeout: number): void;
1523
+
1524
+ static new(): SentrySDK; // inherited from NSObject
1525
+
1526
+ static reportFullyDisplayed(): void;
1527
+
1528
+ static setUser(user: SentryUser): void;
1529
+
1530
+ static startSession(): void;
1531
+
1532
+ static startTransactionWithContext(transactionContext: SentryTransactionContext): SentrySpan;
1533
+
1534
+ static startTransactionWithContextBindToScope(transactionContext: SentryTransactionContext, bindToScope: boolean): SentrySpan;
1535
+
1536
+ static startTransactionWithContextBindToScopeCustomSamplingContext(transactionContext: SentryTransactionContext, bindToScope: boolean, customSamplingContext: NSDictionary<string, any>): SentrySpan;
1537
+
1538
+ static startTransactionWithContextCustomSamplingContext(transactionContext: SentryTransactionContext, customSamplingContext: NSDictionary<string, any>): SentrySpan;
1539
+
1540
+ static startTransactionWithNameOperation(name: string, operation: string): SentrySpan;
1541
+
1542
+ static startTransactionWithNameOperationBindToScope(name: string, operation: string, bindToScope: boolean): SentrySpan;
1543
+
1544
+ static startWithConfigureOptions(configureOptions: (p1: SentryOptions) => void): void;
1545
+
1546
+ static startWithOptions(options: SentryOptions): void;
1547
+
1548
+ static readonly crashedLastRun: boolean;
1549
+
1550
+ static readonly isEnabled: boolean;
1551
+
1552
+ static readonly span: SentrySpan;
1553
+ }
1554
+
1555
+ declare const enum SentrySampleDecision {
1556
+
1557
+ kSentrySampleDecisionUndecided = 0,
1558
+
1559
+ kSentrySampleDecisionYes = 1,
1560
+
1561
+ kSentrySampleDecisionNo = 2
1562
+ }
1563
+
1564
+ declare class SentrySamplingContext extends NSObject {
1565
+
1566
+ static alloc(): SentrySamplingContext; // inherited from NSObject
1567
+
1568
+ static new(): SentrySamplingContext; // inherited from NSObject
1569
+
1570
+ readonly customSamplingContext: NSDictionary<string, any>;
1571
+
1572
+ readonly transactionContext: SentryTransactionContext;
1573
+
1574
+ constructor(o: { transactionContext: SentryTransactionContext });
1575
+
1576
+ constructor(o: { transactionContext: SentryTransactionContext; customSamplingContext: NSDictionary<string, any> });
1577
+
1578
+ initWithTransactionContext(transactionContext: SentryTransactionContext): this;
1579
+
1580
+ initWithTransactionContextCustomSamplingContext(transactionContext: SentryTransactionContext, customSamplingContext: NSDictionary<string, any>): this;
1581
+ }
1582
+
1583
+ declare class SentryScope extends NSObject implements SentrySerializable {
1584
+
1585
+ static alloc(): SentryScope; // inherited from NSObject
1586
+
1587
+ static new(): SentryScope; // inherited from NSObject
1588
+
1589
+ span: SentrySpan;
1590
+
1591
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1592
+
1593
+ readonly description: string; // inherited from NSObjectProtocol
1594
+
1595
+ readonly hash: number; // inherited from NSObjectProtocol
1596
+
1597
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1598
+
1599
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1600
+
1601
+ readonly; // inherited from NSObjectProtocol
1602
+
1603
+ constructor(o: { maxBreadcrumbs: number });
1604
+
1605
+ constructor(o: { scope: SentryScope });
1606
+
1607
+ add(crumb: SentryBreadcrumb): void;
1608
+
1609
+ addAttachment(attachment: SentryAttachment): void;
1610
+
1611
+ addBreadcrumb(crumb: SentryBreadcrumb): void;
1612
+
1613
+ class(): typeof NSObject;
1614
+
1615
+ clear(): void;
1616
+
1617
+ clearAttachments(): void;
1618
+
1619
+ clearBreadcrumbs(): void;
1620
+
1621
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1622
+
1623
+ includeAttachment(attachment: SentryAttachment): void;
1624
+
1625
+ initWithMaxBreadcrumbs(maxBreadcrumbs: number): this;
1626
+
1627
+ initWithScope(scope: SentryScope): this;
1628
+
1629
+ isEqual(object: any): boolean;
1630
+
1631
+ isKindOfClass(aClass: typeof NSObject): boolean;
1632
+
1633
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1634
+
1635
+ performSelector(aSelector: string): any;
1636
+
1637
+ performSelectorWithObject(aSelector: string, object: any): any;
1638
+
1639
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1640
+
1641
+ removeContextForKey(key: string): void;
1642
+
1643
+ removeExtraForKey(key: string): void;
1644
+
1645
+ removeTagForKey(key: string): void;
1646
+
1647
+ respondsToSelector(aSelector: string): boolean;
1648
+
1649
+ retainCount(): number;
1650
+
1651
+ self(): this;
1652
+
1653
+ serialize(): NSDictionary<string, any>;
1654
+
1655
+ setContextValueForKey(value: NSDictionary<string, any>, key: string): void;
1656
+
1657
+ setDist(dist: string): void;
1658
+
1659
+ setEnvironment(environment: string): void;
1660
+
1661
+ setExtraValueForKey(value: any, key: string): void;
1662
+
1663
+ setExtras(extras: NSDictionary<string, any>): void;
1664
+
1665
+ setFingerprint(fingerprint: NSArray<string> | string[]): void;
1666
+
1667
+ setLevel(level: SentryLevel): void;
1668
+
1669
+ setTagValueForKey(value: string, key: string): void;
1670
+
1671
+ setTags(tags: NSDictionary<string, string>): void;
1672
+
1673
+ setUser(user: SentryUser): void;
1674
+
1675
+ useSpan(callback: (p1: SentrySpan) => void): void;
1676
+ }
1677
+
1678
+ declare class SentryScreenFrames extends NSObject implements NSCopying {
1679
+
1680
+ static alloc(): SentryScreenFrames; // inherited from NSObject
1681
+
1682
+ static new(): SentryScreenFrames; // inherited from NSObject
1683
+
1684
+ readonly frameRateTimestamps: NSArray<NSDictionary<string, number>>;
1685
+
1686
+ readonly frozen: number;
1687
+
1688
+ readonly frozenFrameTimestamps: NSArray<NSDictionary<string, number>>;
1689
+
1690
+ readonly slow: number;
1691
+
1692
+ readonly slowFrameTimestamps: NSArray<NSDictionary<string, number>>;
1693
+
1694
+ readonly total: number;
1695
+
1696
+ constructor(o: { total: number; frozen: number; slow: number });
1697
+
1698
+ constructor(o: { total: number; frozen: number; slow: number; slowFrameTimestamps: NSArray<NSDictionary<string, number>> | NSDictionary<string, number>[]; frozenFrameTimestamps: NSArray<NSDictionary<string, number>> | NSDictionary<string, number>[]; frameRateTimestamps: NSArray<NSDictionary<string, number>> | NSDictionary<string, number>[] });
1699
+
1700
+ copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
1701
+
1702
+ initWithTotalFrozenSlow(total: number, frozen: number, slow: number): this;
1703
+
1704
+ initWithTotalFrozenSlowSlowFrameTimestampsFrozenFrameTimestampsFrameRateTimestamps(total: number, frozen: number, slow: number, slowFrameTimestamps: NSArray<NSDictionary<string, number>> | NSDictionary<string, number>[], frozenFrameTimestamps: NSArray<NSDictionary<string, number>> | NSDictionary<string, number>[], frameRateTimestamps: NSArray<NSDictionary<string, number>> | NSDictionary<string, number>[]): this;
1705
+ }
1706
+
1707
+ interface SentrySerializable extends NSObjectProtocol {
1708
+
1709
+ serialize(): NSDictionary<string, any>;
1710
+ }
1711
+ declare var SentrySerializable: {
1712
+
1713
+ prototype: SentrySerializable;
1714
+ };
1715
+
1716
+ interface SentrySpan extends SentrySerializable {
1717
+
1718
+ data: NSDictionary<string, any>;
1719
+
1720
+ isFinished: boolean;
1721
+
1722
+ operation: string;
1723
+
1724
+ origin: string;
1725
+
1726
+ parentSpanId: SentrySpanId;
1727
+
1728
+ sampled: SentrySampleDecision;
1729
+
1730
+ spanDescription: string;
1731
+
1732
+ spanId: SentrySpanId;
1733
+
1734
+ startTimestamp: Date;
1735
+
1736
+ status: SentrySpanStatus;
1737
+
1738
+ tags: NSDictionary<string, string>;
1739
+
1740
+ timestamp: Date;
1741
+
1742
+ traceId: SentryId;
1743
+
1744
+ finish(): void;
1745
+
1746
+ finishWithStatus(status: SentrySpanStatus): void;
1747
+
1748
+ removeDataForKey(key: string): void;
1749
+
1750
+ removeTagForKey(key: string): void;
1751
+
1752
+ setDataValueForKey(value: any, key: string): void;
1753
+
1754
+ setExtraValueForKey(value: any, key: string): void;
1755
+
1756
+ setMeasurementValue(name: string, value: number): void;
1757
+
1758
+ setMeasurementValueUnit(name: string, value: number, unit: SentryMeasurementUnit): void;
1759
+
1760
+ setTagValueForKey(value: string, key: string): void;
1761
+
1762
+ startChildWithOperation(operation: string): SentrySpan;
1763
+
1764
+ startChildWithOperationDescription(operation: string, description: string): SentrySpan;
1765
+
1766
+ toTraceHeader(): SentryTraceHeader;
1767
+ }
1768
+ declare var SentrySpan: {
1769
+
1770
+ prototype: SentrySpan;
1771
+ };
1772
+
1773
+ declare class SentrySpanContext extends NSObject implements SentrySerializable {
1774
+
1775
+ static alloc(): SentrySpanContext; // inherited from NSObject
1776
+
1777
+ static new(): SentrySpanContext; // inherited from NSObject
1778
+
1779
+ readonly operation: string;
1780
+
1781
+ origin: string;
1782
+
1783
+ readonly parentSpanId: SentrySpanId;
1784
+
1785
+ readonly sampled: SentrySampleDecision;
1786
+
1787
+ readonly spanDescription: string;
1788
+
1789
+ readonly spanId: SentrySpanId;
1790
+
1791
+ readonly traceId: SentryId;
1792
+
1793
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1794
+
1795
+ readonly description: string; // inherited from NSObjectProtocol
1796
+
1797
+ readonly hash: number; // inherited from NSObjectProtocol
1798
+
1799
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1800
+
1801
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1802
+
1803
+ readonly; // inherited from NSObjectProtocol
1804
+
1805
+ constructor(o: { operation: string });
1806
+
1807
+ constructor(o: { operation: string; sampled: SentrySampleDecision });
1808
+
1809
+ constructor(o: { traceId: SentryId; spanId: SentrySpanId; parentId: SentrySpanId; operation: string; sampled: SentrySampleDecision });
1810
+
1811
+ constructor(o: { traceId: SentryId; spanId: SentrySpanId; parentId: SentrySpanId; operation: string; spanDescription: string; sampled: SentrySampleDecision });
1812
+
1813
+ class(): typeof NSObject;
1814
+
1815
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1816
+
1817
+ initWithOperation(operation: string): this;
1818
+
1819
+ initWithOperationSampled(operation: string, sampled: SentrySampleDecision): this;
1820
+
1821
+ initWithTraceIdSpanIdParentIdOperationSampled(traceId: SentryId, spanId: SentrySpanId, parentId: SentrySpanId, operation: string, sampled: SentrySampleDecision): this;
1822
+
1823
+ initWithTraceIdSpanIdParentIdOperationSpanDescriptionSampled(traceId: SentryId, spanId: SentrySpanId, parentId: SentrySpanId, operation: string, description: string, sampled: SentrySampleDecision): this;
1824
+
1825
+ isEqual(object: any): boolean;
1826
+
1827
+ isKindOfClass(aClass: typeof NSObject): boolean;
1828
+
1829
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1830
+
1831
+ performSelector(aSelector: string): any;
1832
+
1833
+ performSelectorWithObject(aSelector: string, object: any): any;
1834
+
1835
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1836
+
1837
+ respondsToSelector(aSelector: string): boolean;
1838
+
1839
+ retainCount(): number;
1840
+
1841
+ self(): this;
1842
+
1843
+ serialize(): NSDictionary<string, any>;
1844
+ }
1845
+
1846
+ declare class SentrySpanId extends NSObject implements NSCopying {
1847
+
1848
+ static alloc(): SentrySpanId; // inherited from NSObject
1849
+
1850
+ static new(): SentrySpanId; // inherited from NSObject
1851
+
1852
+ readonly sentrySpanIdString: string;
1853
+
1854
+ static readonly empty: SentrySpanId;
1855
+
1856
+ constructor(o: { UUID: NSUUID });
1857
+
1858
+ constructor(o: { value: string });
1859
+
1860
+ copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
1861
+
1862
+ initWithUUID(uuid: NSUUID): this;
1863
+
1864
+ initWithValue(value: string): this;
1865
+ }
1866
+
1867
+ declare const enum SentrySpanStatus {
1868
+
1869
+ kSentrySpanStatusUndefined = 0,
1870
+
1871
+ kSentrySpanStatusOk = 1,
1872
+
1873
+ kSentrySpanStatusDeadlineExceeded = 2,
1874
+
1875
+ kSentrySpanStatusUnauthenticated = 3,
1876
+
1877
+ kSentrySpanStatusPermissionDenied = 4,
1878
+
1879
+ kSentrySpanStatusNotFound = 5,
1880
+
1881
+ kSentrySpanStatusResourceExhausted = 6,
1882
+
1883
+ kSentrySpanStatusInvalidArgument = 7,
1884
+
1885
+ kSentrySpanStatusUnimplemented = 8,
1886
+
1887
+ kSentrySpanStatusUnavailable = 9,
1888
+
1889
+ kSentrySpanStatusInternalError = 10,
1890
+
1891
+ kSentrySpanStatusUnknownError = 11,
1892
+
1893
+ kSentrySpanStatusCancelled = 12,
1894
+
1895
+ kSentrySpanStatusAlreadyExists = 13,
1896
+
1897
+ kSentrySpanStatusFailedPrecondition = 14,
1898
+
1899
+ kSentrySpanStatusAborted = 15,
1900
+
1901
+ kSentrySpanStatusOutOfRange = 16,
1902
+
1903
+ kSentrySpanStatusDataLoss = 17
1904
+ }
1905
+
1906
+ declare class SentryStacktrace extends NSObject implements SentrySerializable {
1907
+
1908
+ static alloc(): SentryStacktrace; // inherited from NSObject
1909
+
1910
+ static new(): SentryStacktrace; // inherited from NSObject
1911
+
1912
+ frames: NSArray<SentryFrame>;
1913
+
1914
+ registers: NSDictionary<string, string>;
1915
+
1916
+ snapshot: number;
1917
+
1918
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1919
+
1920
+ readonly description: string; // inherited from NSObjectProtocol
1921
+
1922
+ readonly hash: number; // inherited from NSObjectProtocol
1923
+
1924
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1925
+
1926
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1927
+
1928
+ readonly; // inherited from NSObjectProtocol
1929
+
1930
+ constructor(o: { frames: NSArray<SentryFrame> | SentryFrame[]; registers: NSDictionary<string, string> });
1931
+
1932
+ class(): typeof NSObject;
1933
+
1934
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1935
+
1936
+ fixDuplicateFrames(): void;
1937
+
1938
+ initWithFramesRegisters(frames: NSArray<SentryFrame> | SentryFrame[], registers: NSDictionary<string, string>): this;
1939
+
1940
+ isEqual(object: any): boolean;
1941
+
1942
+ isKindOfClass(aClass: typeof NSObject): boolean;
1943
+
1944
+ isMemberOfClass(aClass: typeof NSObject): boolean;
1945
+
1946
+ performSelector(aSelector: string): any;
1947
+
1948
+ performSelectorWithObject(aSelector: string, object: any): any;
1949
+
1950
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
1951
+
1952
+ respondsToSelector(aSelector: string): boolean;
1953
+
1954
+ retainCount(): number;
1955
+
1956
+ self(): this;
1957
+
1958
+ serialize(): NSDictionary<string, any>;
1959
+ }
1960
+
1961
+ declare class SentryThread extends NSObject implements SentrySerializable {
1962
+
1963
+ static alloc(): SentryThread; // inherited from NSObject
1964
+
1965
+ static new(): SentryThread; // inherited from NSObject
1966
+
1967
+ crashed: number;
1968
+
1969
+ current: number;
1970
+
1971
+ isMain: number;
1972
+
1973
+ name: string;
1974
+
1975
+ stacktrace: SentryStacktrace;
1976
+
1977
+ threadId: number;
1978
+
1979
+ readonly debugDescription: string; // inherited from NSObjectProtocol
1980
+
1981
+ readonly description: string; // inherited from NSObjectProtocol
1982
+
1983
+ readonly hash: number; // inherited from NSObjectProtocol
1984
+
1985
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
1986
+
1987
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
1988
+
1989
+ readonly; // inherited from NSObjectProtocol
1990
+
1991
+ constructor(o: { threadId: number });
1992
+
1993
+ class(): typeof NSObject;
1994
+
1995
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
1996
+
1997
+ initWithThreadId(threadId: number): this;
1998
+
1999
+ isEqual(object: any): boolean;
2000
+
2001
+ isKindOfClass(aClass: typeof NSObject): boolean;
2002
+
2003
+ isMemberOfClass(aClass: typeof NSObject): boolean;
2004
+
2005
+ performSelector(aSelector: string): any;
2006
+
2007
+ performSelectorWithObject(aSelector: string, object: any): any;
2008
+
2009
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
2010
+
2011
+ respondsToSelector(aSelector: string): boolean;
2012
+
2013
+ retainCount(): number;
2014
+
2015
+ self(): this;
2016
+
2017
+ serialize(): NSDictionary<string, any>;
2018
+ }
2019
+
2020
+ declare class SentryTraceHeader extends NSObject {
2021
+
2022
+ static alloc(): SentryTraceHeader; // inherited from NSObject
2023
+
2024
+ static new(): SentryTraceHeader; // inherited from NSObject
2025
+
2026
+ readonly sampled: SentrySampleDecision;
2027
+
2028
+ readonly spanId: SentrySpanId;
2029
+
2030
+ readonly traceId: SentryId;
2031
+
2032
+ constructor(o: { traceId: SentryId; spanId: SentrySpanId; sampled: SentrySampleDecision });
2033
+
2034
+ initWithTraceIdSpanIdSampled(traceId: SentryId, spanId: SentrySpanId, sampled: SentrySampleDecision): this;
2035
+
2036
+ value(): string;
2037
+ }
2038
+
2039
+ declare class SentryTransactionContext extends SentrySpanContext {
2040
+
2041
+ static alloc(): SentryTransactionContext; // inherited from NSObject
2042
+
2043
+ static new(): SentryTransactionContext; // inherited from NSObject
2044
+
2045
+ readonly name: string;
2046
+
2047
+ readonly nameSource: SentryTransactionNameSource;
2048
+
2049
+ parentSampled: SentrySampleDecision;
2050
+
2051
+ sampleRate: number;
2052
+
2053
+ constructor(o: { name: string; operation: string });
2054
+
2055
+ constructor(o: { name: string; operation: string; sampled: SentrySampleDecision });
2056
+
2057
+ constructor(o: { name: string; operation: string; traceId: SentryId; spanId: SentrySpanId; parentSpanId: SentrySpanId; parentSampled: SentrySampleDecision });
2058
+
2059
+ initWithNameOperation(name: string, operation: string): this;
2060
+
2061
+ initWithNameOperationSampled(name: string, operation: string, sampled: SentrySampleDecision): this;
2062
+
2063
+ initWithNameOperationTraceIdSpanIdParentSpanIdParentSampled(name: string, operation: string, traceId: SentryId, spanId: SentrySpanId, parentSpanId: SentrySpanId, parentSampled: SentrySampleDecision): this;
2064
+ }
2065
+
2066
+ declare const enum SentryTransactionNameSource {
2067
+
2068
+ kSentryTransactionNameSourceCustom = 0,
2069
+
2070
+ kSentryTransactionNameSourceUrl = 1,
2071
+
2072
+ kSentryTransactionNameSourceRoute = 2,
2073
+
2074
+ kSentryTransactionNameSourceView = 3,
2075
+
2076
+ kSentryTransactionNameSourceComponent = 4,
2077
+
2078
+ kSentryTransactionNameSourceTask = 5
2079
+ }
2080
+
2081
+ declare class SentryUser extends NSObject implements NSCopying, SentrySerializable {
2082
+
2083
+ static alloc(): SentryUser; // inherited from NSObject
2084
+
2085
+ static new(): SentryUser; // inherited from NSObject
2086
+
2087
+ data: NSDictionary<string, any>;
2088
+
2089
+ email: string;
2090
+
2091
+ geo: SentryGeo;
2092
+
2093
+ ipAddress: string;
2094
+
2095
+ name: string;
2096
+
2097
+ segment: string;
2098
+
2099
+ userId: string;
2100
+
2101
+ username: string;
2102
+
2103
+ readonly debugDescription: string; // inherited from NSObjectProtocol
2104
+
2105
+ readonly description: string; // inherited from NSObjectProtocol
2106
+
2107
+ readonly hash: number; // inherited from NSObjectProtocol
2108
+
2109
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
2110
+
2111
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
2112
+
2113
+ readonly; // inherited from NSObjectProtocol
2114
+
2115
+ constructor(o: { dictionary: NSDictionary<any, any> });
2116
+
2117
+ constructor(o: { userId: string });
2118
+
2119
+ class(): typeof NSObject;
2120
+
2121
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
2122
+
2123
+ copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
2124
+
2125
+ hash(): number;
2126
+
2127
+ initWithDictionary(dictionary: NSDictionary<any, any>): this;
2128
+
2129
+ initWithUserId(userId: string): this;
2130
+
2131
+ isEqual(object: any): boolean;
2132
+
2133
+ isEqualToUser(user: SentryUser): boolean;
2134
+
2135
+ isKindOfClass(aClass: typeof NSObject): boolean;
2136
+
2137
+ isMemberOfClass(aClass: typeof NSObject): boolean;
2138
+
2139
+ performSelector(aSelector: string): any;
2140
+
2141
+ performSelectorWithObject(aSelector: string, object: any): any;
2142
+
2143
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
2144
+
2145
+ respondsToSelector(aSelector: string): boolean;
2146
+
2147
+ retainCount(): number;
2148
+
2149
+ self(): this;
2150
+
2151
+ serialize(): NSDictionary<string, any>;
2152
+ }
2153
+
2154
+ declare class SentryUserFeedback extends NSObject implements SentrySerializable {
2155
+
2156
+ static alloc(): SentryUserFeedback; // inherited from NSObject
2157
+
2158
+ static new(): SentryUserFeedback; // inherited from NSObject
2159
+
2160
+ comments: string;
2161
+
2162
+ email: string;
2163
+
2164
+ readonly eventId: SentryId;
2165
+
2166
+ name: string;
2167
+
2168
+ readonly debugDescription: string; // inherited from NSObjectProtocol
2169
+
2170
+ readonly description: string; // inherited from NSObjectProtocol
2171
+
2172
+ readonly hash: number; // inherited from NSObjectProtocol
2173
+
2174
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
2175
+
2176
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
2177
+
2178
+ readonly; // inherited from NSObjectProtocol
2179
+
2180
+ constructor(o: { eventId: SentryId });
2181
+
2182
+ class(): typeof NSObject;
2183
+
2184
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
2185
+
2186
+ initWithEventId(eventId: SentryId): this;
2187
+
2188
+ isEqual(object: any): boolean;
2189
+
2190
+ isKindOfClass(aClass: typeof NSObject): boolean;
2191
+
2192
+ isMemberOfClass(aClass: typeof NSObject): boolean;
2193
+
2194
+ performSelector(aSelector: string): any;
2195
+
2196
+ performSelectorWithObject(aSelector: string, object: any): any;
2197
+
2198
+ performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
2199
+
2200
+ respondsToSelector(aSelector: string): boolean;
2201
+
2202
+ retainCount(): number;
2203
+
2204
+ self(): this;
2205
+
2206
+ serialize(): NSDictionary<string, any>;
2207
+ }
2208
+
2209
+ declare let SentryVersionNumber: number;
2210
+
2211
+ declare let SentryVersionNumberVar: number;
2212
+
2213
+ declare let SentryVersionString: interop.Reference<number>;
2214
+
2215
+ declare let SentryVersionStringVar: interop.Reference<number>;
2216
+
2217
+ declare let defaultMaxBreadcrumbs: number;
2218
+
2219
+ declare let kSentrySpanStatusNameAborted: string;
2220
+
2221
+ declare let kSentrySpanStatusNameAlreadyExists: string;
2222
+
2223
+ declare let kSentrySpanStatusNameCancelled: string;
2224
+
2225
+ declare let kSentrySpanStatusNameDataLoss: string;
2226
+
2227
+ declare let kSentrySpanStatusNameDeadlineExceeded: string;
2228
+
2229
+ declare let kSentrySpanStatusNameFailedPrecondition: string;
2230
+
2231
+ declare let kSentrySpanStatusNameInternalError: string;
2232
+
2233
+ declare let kSentrySpanStatusNameInvalidArgument: string;
2234
+
2235
+ declare let kSentrySpanStatusNameNotFound: string;
2236
+
2237
+ declare let kSentrySpanStatusNameOk: string;
2238
+
2239
+ declare let kSentrySpanStatusNameOutOfRange: string;
2240
+
2241
+ declare let kSentrySpanStatusNamePermissionDenied: string;
2242
+
2243
+ declare let kSentrySpanStatusNameResourceExhausted: string;
2244
+
2245
+ declare let kSentrySpanStatusNameUnauthenticated: string;
2246
+
2247
+ declare let kSentrySpanStatusNameUnavailable: string;
2248
+
2249
+ declare let kSentrySpanStatusNameUndefined: string;
2250
+
2251
+ declare let kSentrySpanStatusNameUnimplemented: string;
2252
+
2253
+ declare let kSentrySpanStatusNameUnknownError: string;
2254
+
2255
+ declare function nameForSentrySpanStatus(status: SentrySpanStatus): string;