@everframe/react-native 1.3.0 → 1.4.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.
- package/EverframeRN.podspec +2 -2
- package/README.md +183 -0
- package/android/build.gradle.kts +1 -1
- package/android/src/main/java/dev/everframe/rn/EverframeModule.kt +122 -1
- package/android/src/main/java/dev/everframe/rn/RnInteractionEventObserver.kt +69 -0
- package/android/src/main/java/dev/everframe/rn/RnInteractionEventRegistration.kt +127 -0
- package/android/src/main/java/dev/everframe/rn/RnInteractionTargetAdapter.kt +33 -0
- package/android/src/main/java/dev/everframe/rn/RnInteractionTargetRegistration.kt +72 -0
- package/dist/NativeEverframe.d.ts +18 -0
- package/dist/chunk-FZHLCD3Z.js +1 -0
- package/dist/index.d.ts +35 -734
- package/dist/index.js +30 -30
- package/dist/index.web.d.ts +26 -3
- package/dist/index.web.js +1 -1
- package/dist/integrations/console.js +1 -1
- package/dist/integrations/react-navigation.js +1 -1
- package/dist/integrations/react.js +1 -1
- package/dist/launch-BvE4IjRk.d.ts +1090 -0
- package/ios/Sources/EverframeBridge.swift +29 -2
- package/ios/Sources/EverframeModule.mm +115 -6
- package/ios/Sources/RnDevtoolsOrigin.h +7 -0
- package/ios/Sources/RnDevtoolsOrigin.mm +36 -0
- package/ios/Sources/RnInteractionEventRegistration.swift +141 -0
- package/ios/Sources/RnInteractionTargetRegistration.swift +107 -0
- package/package.json +6 -5
- package/src/NativeEverframe.ts +31 -0
- package/dist/chunk-MIWWEGLO.js +0 -1
- package/dist/promise-rejection-types-CiyBTz7v.d.ts +0 -99
package/dist/index.d.ts
CHANGED
|
@@ -2,744 +2,18 @@ import * as React from 'react';
|
|
|
2
2
|
import { EverframeUserSpec, ConfigOpts } from './NativeEverframe.js';
|
|
3
3
|
export { Rect, Spec } from './NativeEverframe.js';
|
|
4
4
|
import { E as EverframeIntegration } from './types-D5e4kWaw.js';
|
|
5
|
-
import { R as ReportDeliveryStatus, E as ErrorCaptureStatus, P as PromiseRejectionStatus } from './
|
|
6
|
-
export {
|
|
5
|
+
import { R as ReportDeliveryStatus, E as ErrorCaptureStatus, P as PromiseRejectionStatus, a as ReporterOpenOptions, b as ReporterResult, c as ReporterTrigger, I as InteractionPolicyOptions, V as VitalsPlayerEventType, d as InteractionTargetAnnotation, e as InteractionHookOptions, C as ControlChangeInput, S as ScrollInput } from './launch-BvE4IjRk.js';
|
|
6
|
+
export { A as AttachmentRef, f as ErrorCaptureCounters, g as ErrorCaptureOutcome, h as ErrorCapturePath, i as EverframeNotMountedError, j as EverframeReporterDisabledError, H as HelperType, L as LaunchContext, k as PermissionResult, l as PromiseRejectionCounters, m as RejectionReason, n as ReportCaptureOutcome, o as ReportCapturePath, p as ReportCapturePathStatus, q as ReportDeliveryReason, r as ReportEnvelope, s as ReportQueueOperation, t as ReportQueueStatus, u as ReportStorageFailure, v as ReportTransportOrigin, w as ReportTransportOutcome, x as ReportTransportStatus, U as UINode, y as UITree, z as observePermissionRequest, B as recordLaunchContext } from './launch-BvE4IjRk.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { ViewProps, EventSubscription } from 'react-native';
|
|
9
9
|
|
|
10
|
-
type JsonScalar = string | number | boolean | null;
|
|
11
|
-
type JsonValue = JsonScalar | JsonValue[] | JsonObject;
|
|
12
|
-
type JsonObject = {
|
|
13
|
-
[key: string]: JsonValue;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
declare const ReportEnvelope: z.ZodObject<{
|
|
17
|
-
protocolVersion: z.ZodLiteral<"1.0">;
|
|
18
|
-
reportId: z.ZodString;
|
|
19
|
-
submittedAt: z.ZodString;
|
|
20
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
error: "error";
|
|
22
|
-
manual: "manual";
|
|
23
|
-
crash: "crash";
|
|
24
|
-
diagnostic: "diagnostic";
|
|
25
|
-
}>>;
|
|
26
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
27
|
-
sdk: z.ZodObject<{
|
|
28
|
-
name: z.ZodEnum<{
|
|
29
|
-
"everframe-react": "everframe-react";
|
|
30
|
-
"everframe-web": "everframe-web";
|
|
31
|
-
"everframe-react-native": "everframe-react-native";
|
|
32
|
-
"everframe-flutter": "everframe-flutter";
|
|
33
|
-
"everframe-kmp": "everframe-kmp";
|
|
34
|
-
"everframe-ios": "everframe-ios";
|
|
35
|
-
"everframe-android": "everframe-android";
|
|
36
|
-
"everframe-roku": "everframe-roku";
|
|
37
|
-
"everframe-vega": "everframe-vega";
|
|
38
|
-
}>;
|
|
39
|
-
version: z.ZodString;
|
|
40
|
-
platform: z.ZodEnum<{
|
|
41
|
-
web: "web";
|
|
42
|
-
tizen: "tizen";
|
|
43
|
-
webos: "webos";
|
|
44
|
-
vega: "vega";
|
|
45
|
-
vidaa: "vidaa";
|
|
46
|
-
titanos: "titanos";
|
|
47
|
-
roku: "roku";
|
|
48
|
-
android: "android";
|
|
49
|
-
ios: "ios";
|
|
50
|
-
tvos: "tvos";
|
|
51
|
-
androidtv: "androidtv";
|
|
52
|
-
}>;
|
|
53
|
-
formFactor: z.ZodEnum<{
|
|
54
|
-
phone: "phone";
|
|
55
|
-
tablet: "tablet";
|
|
56
|
-
desktop: "desktop";
|
|
57
|
-
tv: "tv";
|
|
58
|
-
}>;
|
|
59
|
-
}, z.core.$loose>;
|
|
60
|
-
reporter: z.ZodObject<{
|
|
61
|
-
title: z.ZodString;
|
|
62
|
-
description: z.ZodString;
|
|
63
|
-
user: z.ZodOptional<z.ZodObject<{
|
|
64
|
-
id: z.ZodOptional<z.ZodString>;
|
|
65
|
-
email: z.ZodOptional<z.ZodString>;
|
|
66
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$loose>>;
|
|
68
|
-
}, z.core.$loose>;
|
|
69
|
-
captures: z.ZodObject<{
|
|
70
|
-
screenshot: z.ZodBoolean;
|
|
71
|
-
uiTree: z.ZodBoolean;
|
|
72
|
-
focus: z.ZodBoolean;
|
|
73
|
-
logs: z.ZodBoolean;
|
|
74
|
-
network: z.ZodBoolean;
|
|
75
|
-
breadcrumbs: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
}, z.core.$loose>;
|
|
77
|
-
captureControl: z.ZodObject<{
|
|
78
|
-
included: z.ZodArray<z.ZodString>;
|
|
79
|
-
excluded: z.ZodArray<z.ZodString>;
|
|
80
|
-
degradedReason: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, z.core.$loose>;
|
|
82
|
-
payload: z.ZodObject<{
|
|
83
|
-
focus: z.ZodOptional<z.ZodObject<{
|
|
84
|
-
path: z.ZodArray<z.ZodNumber>;
|
|
85
|
-
componentPath: z.ZodString;
|
|
86
|
-
source: z.ZodEnum<{
|
|
87
|
-
mouse: "mouse";
|
|
88
|
-
keyboard: "keyboard";
|
|
89
|
-
remote: "remote";
|
|
90
|
-
touch: "touch";
|
|
91
|
-
programmatic: "programmatic";
|
|
92
|
-
}>;
|
|
93
|
-
cursor: z.ZodOptional<z.ZodObject<{
|
|
94
|
-
x: z.ZodNumber;
|
|
95
|
-
y: z.ZodNumber;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
logs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
99
|
-
network: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
100
|
-
breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
-
t: z.ZodNumber;
|
|
102
|
-
seq: z.ZodNumber;
|
|
103
|
-
kind: z.ZodEnum<{
|
|
104
|
-
custom: "custom";
|
|
105
|
-
error: "error";
|
|
106
|
-
navigation: "navigation";
|
|
107
|
-
tap: "tap";
|
|
108
|
-
console: "console";
|
|
109
|
-
network: "network";
|
|
110
|
-
lifecycle: "lifecycle";
|
|
111
|
-
}>;
|
|
112
|
-
level: z.ZodOptional<z.ZodEnum<{
|
|
113
|
-
error: "error";
|
|
114
|
-
debug: "debug";
|
|
115
|
-
info: "info";
|
|
116
|
-
warn: "warn";
|
|
117
|
-
}>>;
|
|
118
|
-
message: z.ZodString;
|
|
119
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
120
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
-
}, z.core.$loose>>>;
|
|
122
|
-
networkBodies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
123
|
-
ref: z.ZodNumber;
|
|
124
|
-
t: z.ZodNumber;
|
|
125
|
-
reqBody: z.ZodOptional<z.ZodString>;
|
|
126
|
-
resBody: z.ZodOptional<z.ZodString>;
|
|
127
|
-
reqBodyTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
resBodyTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
-
reqBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
resBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
131
|
-
reqHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
|
-
resHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
133
|
-
reqBodySkipped: z.ZodOptional<z.ZodEnum<{
|
|
134
|
-
error: "error";
|
|
135
|
-
unsupported: "unsupported";
|
|
136
|
-
"content-type": "content-type";
|
|
137
|
-
}>>;
|
|
138
|
-
resBodySkipped: z.ZodOptional<z.ZodEnum<{
|
|
139
|
-
error: "error";
|
|
140
|
-
unsupported: "unsupported";
|
|
141
|
-
"content-type": "content-type";
|
|
142
|
-
}>>;
|
|
143
|
-
}, z.core.$loose>>>;
|
|
144
|
-
vitals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
|
-
kind: z.ZodLiteral<"sample">;
|
|
146
|
-
t: z.ZodNumber;
|
|
147
|
-
cpu: z.ZodOptional<z.ZodNumber>;
|
|
148
|
-
mem: z.ZodNumber;
|
|
149
|
-
extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
150
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
-
kind: z.ZodLiteral<"player">;
|
|
152
|
-
t: z.ZodNumber;
|
|
153
|
-
type: z.ZodEnum<{
|
|
154
|
-
error: "error";
|
|
155
|
-
play: "play";
|
|
156
|
-
pause: "pause";
|
|
157
|
-
seek: "seek";
|
|
158
|
-
buffer_start: "buffer_start";
|
|
159
|
-
buffer_end: "buffer_end";
|
|
160
|
-
bitrate_change: "bitrate_change";
|
|
161
|
-
rate_change: "rate_change";
|
|
162
|
-
startup: "startup";
|
|
163
|
-
dropped_frames: "dropped_frames";
|
|
164
|
-
source_change: "source_change";
|
|
165
|
-
player_attach: "player_attach";
|
|
166
|
-
player_detach: "player_detach";
|
|
167
|
-
drm: "drm";
|
|
168
|
-
quality_change: "quality_change";
|
|
169
|
-
stats: "stats";
|
|
170
|
-
}>;
|
|
171
|
-
playerId: z.ZodOptional<z.ZodString>;
|
|
172
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
173
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
-
kind: z.ZodLiteral<"custom">;
|
|
176
|
-
t: z.ZodNumber;
|
|
177
|
-
name: z.ZodString;
|
|
178
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
179
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
-
playerId: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, z.core.$strip>], "kind">>>;
|
|
182
|
-
resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
|
-
t: z.ZodNumber;
|
|
184
|
-
cpu: z.ZodOptional<z.ZodNumber>;
|
|
185
|
-
mem: z.ZodNumber;
|
|
186
|
-
extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
187
|
-
}, z.core.$strip>>>;
|
|
188
|
-
annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
189
|
-
redactions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
190
|
-
extra: z.ZodOptional<z.ZodString>;
|
|
191
|
-
crash: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
causeChain: z.ZodOptional<z.ZodObject<{
|
|
193
|
-
causes: z.ZodArray<z.ZodObject<{
|
|
194
|
-
exceptionType: z.ZodString;
|
|
195
|
-
message: z.ZodString;
|
|
196
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
197
|
-
raw: z.ZodString;
|
|
198
|
-
file: z.ZodOptional<z.ZodString>;
|
|
199
|
-
function: z.ZodOptional<z.ZodString>;
|
|
200
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
201
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
202
|
-
}, z.core.$strip>>;
|
|
203
|
-
framesTruncated: z.ZodBoolean;
|
|
204
|
-
}, z.core.$strip>>;
|
|
205
|
-
truncated: z.ZodBoolean;
|
|
206
|
-
}, z.core.$strip>>;
|
|
207
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
208
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
209
|
-
error: "error";
|
|
210
|
-
info: "info";
|
|
211
|
-
warning: "warning";
|
|
212
|
-
}>>;
|
|
213
|
-
context: z.ZodOptional<z.ZodString>;
|
|
214
|
-
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
215
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
-
}, z.core.$strict>>;
|
|
217
|
-
jsBundle: z.ZodOptional<z.ZodObject<{
|
|
218
|
-
engine: z.ZodLiteral<"hermes">;
|
|
219
|
-
platform: z.ZodEnum<{
|
|
220
|
-
vega: "vega";
|
|
221
|
-
android: "android";
|
|
222
|
-
ios: "ios";
|
|
223
|
-
}>;
|
|
224
|
-
buildId: z.ZodString;
|
|
225
|
-
bundleName: z.ZodString;
|
|
226
|
-
}, z.core.$strip>>;
|
|
227
|
-
jvm: z.ZodOptional<z.ZodObject<{
|
|
228
|
-
mappingId: z.ZodOptional<z.ZodString>;
|
|
229
|
-
causes: z.ZodArray<z.ZodObject<{
|
|
230
|
-
exceptionType: z.ZodString;
|
|
231
|
-
message: z.ZodString;
|
|
232
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
233
|
-
raw: z.ZodString;
|
|
234
|
-
file: z.ZodOptional<z.ZodString>;
|
|
235
|
-
function: z.ZodOptional<z.ZodString>;
|
|
236
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
237
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
238
|
-
}, z.core.$loose>>;
|
|
239
|
-
framesTruncated: z.ZodBoolean;
|
|
240
|
-
}, z.core.$strip>>;
|
|
241
|
-
causesTruncated: z.ZodBoolean;
|
|
242
|
-
}, z.core.$strip>>;
|
|
243
|
-
native: z.ZodOptional<z.ZodObject<{
|
|
244
|
-
releaseHealthEvidence: z.ZodOptional<z.ZodObject<{
|
|
245
|
-
version: z.ZodLiteral<1>;
|
|
246
|
-
attribution: z.ZodLiteral<"immutable_fatal_context">;
|
|
247
|
-
contextId: z.ZodString;
|
|
248
|
-
exposure: z.ZodObject<{
|
|
249
|
-
loadedBuildId: z.ZodNullable<z.ZodString>;
|
|
250
|
-
loadedBundleStatus: z.ZodEnum<{
|
|
251
|
-
unknown: "unknown";
|
|
252
|
-
known: "known";
|
|
253
|
-
not_applicable: "not_applicable";
|
|
254
|
-
}>;
|
|
255
|
-
exposureId: z.ZodString;
|
|
256
|
-
processLaunchId: z.ZodString;
|
|
257
|
-
startedAt: z.ZodISODateTime;
|
|
258
|
-
app: z.ZodObject<{
|
|
259
|
-
version: z.ZodString;
|
|
260
|
-
build: z.ZodNullable<z.ZodString>;
|
|
261
|
-
debug: z.ZodBoolean;
|
|
262
|
-
}, z.core.$strict>;
|
|
263
|
-
}, z.core.$strict>;
|
|
264
|
-
}, z.core.$strict>>;
|
|
265
|
-
platform: z.ZodLiteral<"apple">;
|
|
266
|
-
timestampMicros: z.ZodString;
|
|
267
|
-
crashedThreadIndex: z.ZodNumber;
|
|
268
|
-
framesIncomplete: z.ZodBoolean;
|
|
269
|
-
imagesIncomplete: z.ZodBoolean;
|
|
270
|
-
images: z.ZodArray<z.ZodObject<{
|
|
271
|
-
uuid: z.ZodString;
|
|
272
|
-
name: z.ZodString;
|
|
273
|
-
loadAddress: z.ZodString;
|
|
274
|
-
vmAddress: z.ZodOptional<z.ZodString>;
|
|
275
|
-
size: z.ZodString;
|
|
276
|
-
cpuType: z.ZodNumber;
|
|
277
|
-
cpuSubtype: z.ZodNumber;
|
|
278
|
-
architecture: z.ZodEnum<{
|
|
279
|
-
unknown: "unknown";
|
|
280
|
-
arm64e: "arm64e";
|
|
281
|
-
arm64: "arm64";
|
|
282
|
-
x86_64: "x86_64";
|
|
283
|
-
x86_64h: "x86_64h";
|
|
284
|
-
}>;
|
|
285
|
-
}, z.core.$strip>>;
|
|
286
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
287
|
-
instructionAddress: z.ZodString;
|
|
288
|
-
imageIndex: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
imageOffset: z.ZodOptional<z.ZodString>;
|
|
290
|
-
}, z.core.$strip>>;
|
|
291
|
-
error: z.ZodObject<{
|
|
292
|
-
signalNumber: z.ZodOptional<z.ZodNumber>;
|
|
293
|
-
signalCode: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
machException: z.ZodOptional<z.ZodNumber>;
|
|
295
|
-
machCode: z.ZodOptional<z.ZodString>;
|
|
296
|
-
machSubcode: z.ZodOptional<z.ZodString>;
|
|
297
|
-
faultAddress: z.ZodOptional<z.ZodString>;
|
|
298
|
-
}, z.core.$strip>;
|
|
299
|
-
}, z.core.$strip>>;
|
|
300
|
-
androidNative: z.ZodOptional<z.ZodObject<{
|
|
301
|
-
source: z.ZodEnum<{
|
|
302
|
-
"android-exit-info": "android-exit-info";
|
|
303
|
-
"android-native-handler": "android-native-handler";
|
|
304
|
-
}>;
|
|
305
|
-
abi: z.ZodEnum<{
|
|
306
|
-
x86_64: "x86_64";
|
|
307
|
-
"armeabi-v7a": "armeabi-v7a";
|
|
308
|
-
"arm64-v8a": "arm64-v8a";
|
|
309
|
-
x86: "x86";
|
|
310
|
-
riscv64: "riscv64";
|
|
311
|
-
}>;
|
|
312
|
-
crashedThreadId: z.ZodNumber;
|
|
313
|
-
framesIncomplete: z.ZodBoolean;
|
|
314
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
315
|
-
pc: z.ZodString;
|
|
316
|
-
relativePc: z.ZodString;
|
|
317
|
-
module: z.ZodOptional<z.ZodString>;
|
|
318
|
-
buildId: z.ZodOptional<z.ZodString>;
|
|
319
|
-
}, z.core.$strip>>;
|
|
320
|
-
signalNumber: z.ZodOptional<z.ZodNumber>;
|
|
321
|
-
signalCode: z.ZodOptional<z.ZodNumber>;
|
|
322
|
-
}, z.core.$strip>>;
|
|
323
|
-
exceptionType: z.ZodString;
|
|
324
|
-
message: z.ZodString;
|
|
325
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
326
|
-
raw: z.ZodString;
|
|
327
|
-
file: z.ZodOptional<z.ZodString>;
|
|
328
|
-
function: z.ZodOptional<z.ZodString>;
|
|
329
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
330
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
331
|
-
}, z.core.$loose>>;
|
|
332
|
-
threadName: z.ZodOptional<z.ZodString>;
|
|
333
|
-
mechanism: z.ZodString;
|
|
334
|
-
handled: z.ZodBoolean;
|
|
335
|
-
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
-
occurredAt: z.ZodString;
|
|
337
|
-
fingerprint: z.ZodString;
|
|
338
|
-
}, z.core.$loose>>;
|
|
339
|
-
diagnostic: z.ZodOptional<z.ZodObject<{
|
|
340
|
-
version: z.ZodLiteral<1>;
|
|
341
|
-
evidenceId: z.ZodString;
|
|
342
|
-
processLaunchId: z.ZodString;
|
|
343
|
-
nativeExposure: z.ZodOptional<z.ZodObject<{
|
|
344
|
-
loadedBuildId: z.ZodNullable<z.ZodString>;
|
|
345
|
-
loadedBundleStatus: z.ZodEnum<{
|
|
346
|
-
unknown: "unknown";
|
|
347
|
-
known: "known";
|
|
348
|
-
not_applicable: "not_applicable";
|
|
349
|
-
}>;
|
|
350
|
-
exposureId: z.ZodString;
|
|
351
|
-
processLaunchId: z.ZodString;
|
|
352
|
-
startedAt: z.ZodISODateTime;
|
|
353
|
-
app: z.ZodObject<{
|
|
354
|
-
version: z.ZodString;
|
|
355
|
-
build: z.ZodNullable<z.ZodString>;
|
|
356
|
-
debug: z.ZodBoolean;
|
|
357
|
-
}, z.core.$strict>;
|
|
358
|
-
}, z.core.$strict>>;
|
|
359
|
-
kind: z.ZodLiteral<"process_exit">;
|
|
360
|
-
provenance: z.ZodLiteral<"android_application_exit_info">;
|
|
361
|
-
scope: z.ZodLiteral<"os_process">;
|
|
362
|
-
outcome: z.ZodLiteral<"terminated">;
|
|
363
|
-
cause: z.ZodEnum<{
|
|
364
|
-
unknown: "unknown";
|
|
365
|
-
anr: "anr";
|
|
366
|
-
native_crash: "native_crash";
|
|
367
|
-
java_crash: "java_crash";
|
|
368
|
-
system_low_memory: "system_low_memory";
|
|
369
|
-
user_requested: "user_requested";
|
|
370
|
-
system_other: "system_other";
|
|
371
|
-
}>;
|
|
372
|
-
occurredAt: z.ZodString;
|
|
373
|
-
collectedAt: z.ZodString;
|
|
374
|
-
attribution: z.ZodObject<{
|
|
375
|
-
process: z.ZodLiteral<"exact_os_token">;
|
|
376
|
-
release: z.ZodLiteral<"frozen">;
|
|
377
|
-
session: z.ZodLiteral<"unavailable">;
|
|
378
|
-
webExposure: z.ZodLiteral<"unavailable">;
|
|
379
|
-
}, z.core.$strict>;
|
|
380
|
-
android: z.ZodObject<{
|
|
381
|
-
apiLevel: z.ZodNumber;
|
|
382
|
-
reason: z.ZodNumber;
|
|
383
|
-
pid: z.ZodNumber;
|
|
384
|
-
importance: z.ZodOptional<z.ZodNumber>;
|
|
385
|
-
pssKb: z.ZodOptional<z.ZodNumber>;
|
|
386
|
-
rssKb: z.ZodOptional<z.ZodNumber>;
|
|
387
|
-
description: z.ZodOptional<z.ZodString>;
|
|
388
|
-
mappingId: z.ZodOptional<z.ZodString>;
|
|
389
|
-
}, z.core.$strict>;
|
|
390
|
-
trace: z.ZodObject<{
|
|
391
|
-
status: z.ZodEnum<{
|
|
392
|
-
unavailable: "unavailable";
|
|
393
|
-
available: "available";
|
|
394
|
-
malformed: "malformed";
|
|
395
|
-
unsupported: "unsupported";
|
|
396
|
-
not_requested: "not_requested";
|
|
397
|
-
}>;
|
|
398
|
-
format: z.ZodEnum<{
|
|
399
|
-
none: "none";
|
|
400
|
-
android_anr_text: "android_anr_text";
|
|
401
|
-
android_tombstone: "android_tombstone";
|
|
402
|
-
}>;
|
|
403
|
-
truncated: z.ZodBoolean;
|
|
404
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
405
|
-
function: z.ZodString;
|
|
406
|
-
file: z.ZodOptional<z.ZodString>;
|
|
407
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
408
|
-
}, z.core.$strict>>;
|
|
409
|
-
}, z.core.$strict>;
|
|
410
|
-
}, z.core.$strict>>;
|
|
411
|
-
appleDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
412
|
-
version: z.ZodLiteral<1>;
|
|
413
|
-
evidenceId: z.ZodString;
|
|
414
|
-
ownershipId: z.ZodString;
|
|
415
|
-
kind: z.ZodEnum<{
|
|
416
|
-
hang_batch: "hang_batch";
|
|
417
|
-
app_exit_summary: "app_exit_summary";
|
|
418
|
-
}>;
|
|
419
|
-
provenance: z.ZodLiteral<"apple_metrickit">;
|
|
420
|
-
scope: z.ZodLiteral<"reporting_interval">;
|
|
421
|
-
outcome: z.ZodLiteral<"unknown">;
|
|
422
|
-
interval: z.ZodObject<{
|
|
423
|
-
begin: z.ZodString;
|
|
424
|
-
end: z.ZodString;
|
|
425
|
-
}, z.core.$strict>;
|
|
426
|
-
collectedAt: z.ZodString;
|
|
427
|
-
attribution: z.ZodObject<{
|
|
428
|
-
process: z.ZodLiteral<"unavailable">;
|
|
429
|
-
release: z.ZodLiteral<"frozen">;
|
|
430
|
-
session: z.ZodLiteral<"unavailable">;
|
|
431
|
-
webExposure: z.ZodLiteral<"unavailable">;
|
|
432
|
-
}, z.core.$strict>;
|
|
433
|
-
apple: z.ZodObject<{
|
|
434
|
-
applicationVersion: z.ZodString;
|
|
435
|
-
applicationBuild: z.ZodString;
|
|
436
|
-
osVersion: z.ZodString;
|
|
437
|
-
}, z.core.$strict>;
|
|
438
|
-
truncated: z.ZodBoolean;
|
|
439
|
-
hangs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
|
-
durationMs: z.ZodNumber;
|
|
441
|
-
stack: z.ZodObject<{
|
|
442
|
-
status: z.ZodEnum<{
|
|
443
|
-
unavailable: "unavailable";
|
|
444
|
-
available: "available";
|
|
445
|
-
malformed: "malformed";
|
|
446
|
-
oversized: "oversized";
|
|
447
|
-
}>;
|
|
448
|
-
truncated: z.ZodBoolean;
|
|
449
|
-
frames: z.ZodArray<z.ZodObject<{
|
|
450
|
-
binaryUUID: z.ZodString;
|
|
451
|
-
binaryName: z.ZodString;
|
|
452
|
-
address: z.ZodString;
|
|
453
|
-
offset: z.ZodString;
|
|
454
|
-
}, z.core.$strict>>;
|
|
455
|
-
}, z.core.$strict>;
|
|
456
|
-
}, z.core.$strict>>>;
|
|
457
|
-
exits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
458
|
-
state: z.ZodEnum<{
|
|
459
|
-
background: "background";
|
|
460
|
-
foreground: "foreground";
|
|
461
|
-
}>;
|
|
462
|
-
reason: z.ZodEnum<{
|
|
463
|
-
normal: "normal";
|
|
464
|
-
memory_resource_limit: "memory_resource_limit";
|
|
465
|
-
bad_access: "bad_access";
|
|
466
|
-
abnormal: "abnormal";
|
|
467
|
-
illegal_instruction: "illegal_instruction";
|
|
468
|
-
watchdog: "watchdog";
|
|
469
|
-
cpu_resource_limit: "cpu_resource_limit";
|
|
470
|
-
memory_pressure: "memory_pressure";
|
|
471
|
-
suspended_locked_file: "suspended_locked_file";
|
|
472
|
-
background_task_timeout: "background_task_timeout";
|
|
473
|
-
}>;
|
|
474
|
-
count: z.ZodNumber;
|
|
475
|
-
}, z.core.$strict>>>;
|
|
476
|
-
}, z.core.$strict>>;
|
|
477
|
-
recoveredStall: z.ZodOptional<z.ZodObject<{
|
|
478
|
-
version: z.ZodLiteral<1>;
|
|
479
|
-
evidenceId: z.ZodString;
|
|
480
|
-
kind: z.ZodLiteral<"recovered_main_thread_stall">;
|
|
481
|
-
provenance: z.ZodLiteral<"android_main_looper_probe">;
|
|
482
|
-
outcome: z.ZodLiteral<"recovered">;
|
|
483
|
-
scope: z.ZodLiteral<"main_looper">;
|
|
484
|
-
queuedAt: z.ZodString;
|
|
485
|
-
recoveredAt: z.ZodString;
|
|
486
|
-
probeDelayMs: z.ZodNumber;
|
|
487
|
-
thresholdMs: z.ZodLiteral<5000>;
|
|
488
|
-
sampleIntervalMs: z.ZodLiteral<1000>;
|
|
489
|
-
clock: z.ZodLiteral<"uptime">;
|
|
490
|
-
eligibility: z.ZodLiteral<"foreground-debugger-checked-v1">;
|
|
491
|
-
trace: z.ZodLiteral<"not_collected">;
|
|
492
|
-
attribution: z.ZodObject<{
|
|
493
|
-
release: z.ZodLiteral<"frozen">;
|
|
494
|
-
session: z.ZodLiteral<"unavailable">;
|
|
495
|
-
webExposure: z.ZodLiteral<"unavailable">;
|
|
496
|
-
nativeExposure: z.ZodLiteral<"unavailable">;
|
|
497
|
-
}, z.core.$strict>;
|
|
498
|
-
android: z.ZodObject<{
|
|
499
|
-
apiLevel: z.ZodNumber;
|
|
500
|
-
}, z.core.$strict>;
|
|
501
|
-
}, z.core.$strict>>;
|
|
502
|
-
inferredTermination: z.ZodOptional<z.ZodObject<{
|
|
503
|
-
version: z.ZodLiteral<1>;
|
|
504
|
-
evidenceId: z.ZodString;
|
|
505
|
-
processLaunchId: z.ZodString;
|
|
506
|
-
nativeExposure: z.ZodOptional<z.ZodObject<{
|
|
507
|
-
loadedBuildId: z.ZodNullable<z.ZodString>;
|
|
508
|
-
loadedBundleStatus: z.ZodEnum<{
|
|
509
|
-
unknown: "unknown";
|
|
510
|
-
known: "known";
|
|
511
|
-
not_applicable: "not_applicable";
|
|
512
|
-
}>;
|
|
513
|
-
exposureId: z.ZodString;
|
|
514
|
-
processLaunchId: z.ZodString;
|
|
515
|
-
startedAt: z.ZodISODateTime;
|
|
516
|
-
app: z.ZodObject<{
|
|
517
|
-
version: z.ZodString;
|
|
518
|
-
build: z.ZodNullable<z.ZodString>;
|
|
519
|
-
debug: z.ZodBoolean;
|
|
520
|
-
}, z.core.$strict>;
|
|
521
|
-
}, z.core.$strict>>;
|
|
522
|
-
kind: z.ZodLiteral<"process_exit">;
|
|
523
|
-
provenance: z.ZodEnum<{
|
|
524
|
-
apple_next_launch_inference: "apple_next_launch_inference";
|
|
525
|
-
}>;
|
|
526
|
-
scope: z.ZodLiteral<"os_process">;
|
|
527
|
-
outcome: z.ZodLiteral<"terminated">;
|
|
528
|
-
rules: z.ZodEnum<{
|
|
529
|
-
"apple-foreground-v1": "apple-foreground-v1";
|
|
530
|
-
}>;
|
|
531
|
-
cause: z.ZodEnum<{
|
|
532
|
-
low_memory: "low_memory";
|
|
533
|
-
unresponsive: "unresponsive";
|
|
534
|
-
unexplained: "unexplained";
|
|
535
|
-
}>;
|
|
536
|
-
lastSeenAt: z.ZodString;
|
|
537
|
-
collectedAt: z.ZodString;
|
|
538
|
-
attribution: z.ZodObject<{
|
|
539
|
-
process: z.ZodEnum<{
|
|
540
|
-
sdk_run_record: "sdk_run_record";
|
|
541
|
-
}>;
|
|
542
|
-
release: z.ZodLiteral<"frozen">;
|
|
543
|
-
session: z.ZodLiteral<"unavailable">;
|
|
544
|
-
webExposure: z.ZodLiteral<"unavailable">;
|
|
545
|
-
}, z.core.$strict>;
|
|
546
|
-
apple: z.ZodObject<{
|
|
547
|
-
appState: z.ZodEnum<{
|
|
548
|
-
active: "active";
|
|
549
|
-
inactive: "inactive";
|
|
550
|
-
launching: "launching";
|
|
551
|
-
}>;
|
|
552
|
-
footprintKb: z.ZodOptional<z.ZodNumber>;
|
|
553
|
-
availableKb: z.ZodOptional<z.ZodNumber>;
|
|
554
|
-
memorySampledAt: z.ZodOptional<z.ZodString>;
|
|
555
|
-
memoryWarnings: z.ZodNumber;
|
|
556
|
-
lastMemoryWarningAt: z.ZodOptional<z.ZodString>;
|
|
557
|
-
memoryPressure: z.ZodEnum<{
|
|
558
|
-
warning: "warning";
|
|
559
|
-
normal: "normal";
|
|
560
|
-
critical: "critical";
|
|
561
|
-
}>;
|
|
562
|
-
mainThreadStallMs: z.ZodOptional<z.ZodNumber>;
|
|
563
|
-
thermalState: z.ZodEnum<{
|
|
564
|
-
critical: "critical";
|
|
565
|
-
nominal: "nominal";
|
|
566
|
-
fair: "fair";
|
|
567
|
-
serious: "serious";
|
|
568
|
-
}>;
|
|
569
|
-
}, z.core.$strict>;
|
|
570
|
-
}, z.core.$strict>>;
|
|
571
|
-
}, z.core.$loose>;
|
|
572
|
-
context: z.ZodObject<{
|
|
573
|
-
app: z.ZodObject<{
|
|
574
|
-
name: z.ZodString;
|
|
575
|
-
version: z.ZodString;
|
|
576
|
-
build: z.ZodOptional<z.ZodString>;
|
|
577
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
578
|
-
}, z.core.$loose>;
|
|
579
|
-
device: z.ZodObject<{
|
|
580
|
-
os: z.ZodString;
|
|
581
|
-
osVersion: z.ZodString;
|
|
582
|
-
model: z.ZodOptional<z.ZodString>;
|
|
583
|
-
screenSize: z.ZodObject<{
|
|
584
|
-
width: z.ZodNumber;
|
|
585
|
-
height: z.ZodNumber;
|
|
586
|
-
}, z.core.$strip>;
|
|
587
|
-
pixelRatio: z.ZodNumber;
|
|
588
|
-
locale: z.ZodString;
|
|
589
|
-
timezone: z.ZodString;
|
|
590
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
591
|
-
}, z.core.$loose>;
|
|
592
|
-
route: z.ZodOptional<z.ZodString>;
|
|
593
|
-
}, z.core.$loose>;
|
|
594
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
595
|
-
partName: z.ZodString;
|
|
596
|
-
kind: z.ZodEnum<{
|
|
597
|
-
screenshot: "screenshot";
|
|
598
|
-
"annotated-screenshot": "annotated-screenshot";
|
|
599
|
-
video: "video";
|
|
600
|
-
audio: "audio";
|
|
601
|
-
"session-replay": "session-replay";
|
|
602
|
-
"dom-snapshot": "dom-snapshot";
|
|
603
|
-
other: "other";
|
|
604
|
-
}>;
|
|
605
|
-
contentType: z.ZodString;
|
|
606
|
-
byteLength: z.ZodNumber;
|
|
607
|
-
sha256: z.ZodString;
|
|
608
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
609
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
610
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
611
|
-
rrweb: "rrweb";
|
|
612
|
-
"everframe-vtree-v1": "everframe-vtree-v1";
|
|
613
|
-
"everframe-video-v1": "everframe-video-v1";
|
|
614
|
-
"traceitx-vtree-v1": "traceitx-vtree-v1";
|
|
615
|
-
"traceitx-video-v1": "traceitx-video-v1";
|
|
616
|
-
}>>;
|
|
617
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
618
|
-
replayStartEpochMs: z.ZodOptional<z.ZodNumber>;
|
|
619
|
-
}, z.core.$strip>>;
|
|
620
|
-
}, z.core.$loose>;
|
|
621
|
-
type ReportEnvelope = z.infer<typeof ReportEnvelope>;
|
|
622
|
-
|
|
623
|
-
interface UINode {
|
|
624
|
-
componentType: string;
|
|
625
|
-
componentName?: string | undefined;
|
|
626
|
-
identifiers: Record<string, string>;
|
|
627
|
-
rect: {
|
|
628
|
-
x: number;
|
|
629
|
-
y: number;
|
|
630
|
-
width: number;
|
|
631
|
-
height: number;
|
|
632
|
-
};
|
|
633
|
-
safeProps: Record<string, string | number | boolean>;
|
|
634
|
-
children: UINode[];
|
|
635
|
-
sensitive?: boolean | undefined;
|
|
636
|
-
nodeKind?: 'compose' | 'view' | 'dom' | undefined;
|
|
637
|
-
}
|
|
638
|
-
declare const UINode: z.ZodType<UINode>;
|
|
639
|
-
declare const UITree: z.ZodObject<{
|
|
640
|
-
root: z.ZodType<UINode, unknown, z.core.$ZodTypeInternals<UINode, unknown>>;
|
|
641
|
-
capturedAt: z.ZodString;
|
|
642
|
-
rendererHint: z.ZodEnum<{
|
|
643
|
-
android: "android";
|
|
644
|
-
dom: "dom";
|
|
645
|
-
"rn-paper": "rn-paper";
|
|
646
|
-
"rn-fabric": "rn-fabric";
|
|
647
|
-
uikit: "uikit";
|
|
648
|
-
}>;
|
|
649
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
650
|
-
}, z.core.$strip>;
|
|
651
|
-
type UITree = z.infer<typeof UITree>;
|
|
652
|
-
declare const AttachmentRef: z.ZodObject<{
|
|
653
|
-
partName: z.ZodString;
|
|
654
|
-
kind: z.ZodEnum<{
|
|
655
|
-
screenshot: "screenshot";
|
|
656
|
-
"annotated-screenshot": "annotated-screenshot";
|
|
657
|
-
video: "video";
|
|
658
|
-
audio: "audio";
|
|
659
|
-
"session-replay": "session-replay";
|
|
660
|
-
"dom-snapshot": "dom-snapshot";
|
|
661
|
-
other: "other";
|
|
662
|
-
}>;
|
|
663
|
-
contentType: z.ZodString;
|
|
664
|
-
byteLength: z.ZodNumber;
|
|
665
|
-
sha256: z.ZodString;
|
|
666
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
667
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
668
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
669
|
-
rrweb: "rrweb";
|
|
670
|
-
"everframe-vtree-v1": "everframe-vtree-v1";
|
|
671
|
-
"everframe-video-v1": "everframe-video-v1";
|
|
672
|
-
"traceitx-vtree-v1": "traceitx-vtree-v1";
|
|
673
|
-
"traceitx-video-v1": "traceitx-video-v1";
|
|
674
|
-
}>>;
|
|
675
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
676
|
-
replayStartEpochMs: z.ZodOptional<z.ZodNumber>;
|
|
677
|
-
}, z.core.$strip>;
|
|
678
|
-
type AttachmentRef = z.infer<typeof AttachmentRef>;
|
|
679
|
-
declare const VitalsPlayerEventType: z.ZodEnum<{
|
|
680
|
-
error: "error";
|
|
681
|
-
play: "play";
|
|
682
|
-
pause: "pause";
|
|
683
|
-
seek: "seek";
|
|
684
|
-
buffer_start: "buffer_start";
|
|
685
|
-
buffer_end: "buffer_end";
|
|
686
|
-
bitrate_change: "bitrate_change";
|
|
687
|
-
rate_change: "rate_change";
|
|
688
|
-
startup: "startup";
|
|
689
|
-
dropped_frames: "dropped_frames";
|
|
690
|
-
source_change: "source_change";
|
|
691
|
-
player_attach: "player_attach";
|
|
692
|
-
player_detach: "player_detach";
|
|
693
|
-
drm: "drm";
|
|
694
|
-
quality_change: "quality_change";
|
|
695
|
-
stats: "stats";
|
|
696
|
-
}>;
|
|
697
|
-
type VitalsPlayerEventType = z.infer<typeof VitalsPlayerEventType>;
|
|
698
|
-
|
|
699
10
|
interface JsBundleConfig {
|
|
700
11
|
buildId: string;
|
|
701
12
|
bundleName: string;
|
|
702
13
|
}
|
|
703
14
|
|
|
704
|
-
/**
|
|
705
|
-
|
|
706
|
-
* Mirrors the native NSDictionary / WritableMap shape produced by the iOS
|
|
707
|
-
* (`EverframeBridge.openReporter`) and Android (`EverframeModule.openReporter`)
|
|
708
|
-
* bridges. The `status` field is one of:
|
|
709
|
-
* - 'submitted' — envelope shipped successfully (reportId populated)
|
|
710
|
-
* - 'queued' — envelope persisted for retry (reportId populated)
|
|
711
|
-
* - 'cancelled' — user dismissed the reporter without submitting
|
|
712
|
-
*/
|
|
713
|
-
type ReporterResult = {
|
|
714
|
-
status: 'submitted';
|
|
715
|
-
reportId: string;
|
|
716
|
-
} | {
|
|
717
|
-
status: 'queued';
|
|
718
|
-
reportId: string;
|
|
719
|
-
} | {
|
|
720
|
-
status: 'cancelled';
|
|
721
|
-
reason?: string;
|
|
722
|
-
};
|
|
723
|
-
/**
|
|
724
|
-
* Thrown when `open()` is called from a top-level (non-component) site
|
|
725
|
-
* before a `<EverframeProvider>` has mounted. Components reading via
|
|
726
|
-
* `useEverframe()` see a same-class error.
|
|
727
|
-
*/
|
|
728
|
-
declare class EverframeNotMountedError extends Error {
|
|
729
|
-
readonly name = "EverframeNotMountedError";
|
|
730
|
-
constructor(message?: string);
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* Rejected by `open()` when the host turned the reporter off
|
|
734
|
-
* (`reporter: { disabled: true }`, a crash-only session). The session keeps
|
|
735
|
-
* this for its whole life, including after a companion bond upgrades it:
|
|
736
|
-
* reports then come through the companion, not through `open()`. Same name
|
|
737
|
-
* as the web SDK's error of the same purpose.
|
|
738
|
-
*/
|
|
739
|
-
declare class EverframeReporterDisabledError extends Error {
|
|
740
|
-
readonly name = "EverframeReporterDisabledError";
|
|
741
|
-
constructor(message?: string);
|
|
742
|
-
}
|
|
15
|
+
/** Small diagnostic labels, not personal data. */
|
|
16
|
+
type StateValue = string | number | boolean;
|
|
743
17
|
|
|
744
18
|
declare const ErrorSeverity: z.ZodEnum<{
|
|
745
19
|
error: "error";
|
|
@@ -809,7 +83,10 @@ interface EverframeContextValue {
|
|
|
809
83
|
* matches sdk-react. Rejects with `EverframeReporterDisabledError` when the
|
|
810
84
|
* config sets `reporter: { disabled: true }`.
|
|
811
85
|
*/
|
|
812
|
-
open(): Promise<ReporterResult>;
|
|
86
|
+
open(options?: ReporterOpenOptions): Promise<ReporterResult>;
|
|
87
|
+
/** Mark a host-owned reporter interval. Does not attribute prior native input. */
|
|
88
|
+
markReporterOpened(trigger: ReporterTrigger): Promise<void>;
|
|
89
|
+
markReporterClosed(): Promise<void>;
|
|
813
90
|
sensitive: {
|
|
814
91
|
register(tag: number, rect: {
|
|
815
92
|
x: number;
|
|
@@ -887,6 +164,9 @@ interface EverframeContextValue {
|
|
|
887
164
|
* argument to clear. Unverified: a label, never a credential.
|
|
888
165
|
*/
|
|
889
166
|
setUser(user?: EverframeUserSpec): void;
|
|
167
|
+
/** Record a bounded diagnostic label for reports in the current native session. */
|
|
168
|
+
setState(key: string, value: StateValue): void;
|
|
169
|
+
clearState(key: string): void;
|
|
890
170
|
}
|
|
891
171
|
/** Bounded coverage status only; does not install an observer or report delivery. */
|
|
892
172
|
declare function getPromiseRejectionStatus(): PromiseRejectionStatus;
|
|
@@ -895,7 +175,7 @@ declare function getPromiseRejectionStatus(): PromiseRejectionStatus;
|
|
|
895
175
|
* `useEverframe().open()`. This re-export exists for non-component call
|
|
896
176
|
* sites (global error handlers, deep-link handlers, native event bridges).
|
|
897
177
|
*/
|
|
898
|
-
declare function open(): Promise<ReporterResult>;
|
|
178
|
+
declare function open(options?: ReporterOpenOptions): Promise<ReporterResult>;
|
|
899
179
|
/** Top-level `setExtra` for non-component call sites. No-op if no provider mounted. */
|
|
900
180
|
declare function setExtra(value: string): void;
|
|
901
181
|
declare function setExtra(value: Record<string, unknown>): void;
|
|
@@ -926,6 +206,11 @@ declare function captureException(error: unknown, options?: CaptureExceptionOpti
|
|
|
926
206
|
declare function getErrorCaptureStatus(): ErrorCaptureStatus;
|
|
927
207
|
/** Cached native delivery observations, independent of JS admission. */
|
|
928
208
|
declare function getReportDeliveryStatus(): ReportDeliveryStatus;
|
|
209
|
+
/** No-op without a mounted provider. Values are labels, not personal data. */
|
|
210
|
+
declare function setState(key: string, value: StateValue): void;
|
|
211
|
+
declare function clearState(key: string): void;
|
|
212
|
+
declare function markReporterOpened(trigger: ReporterTrigger): Promise<void>;
|
|
213
|
+
declare function markReporterClosed(): Promise<void>;
|
|
929
214
|
|
|
930
215
|
/**
|
|
931
216
|
* Runtime configuration — the host-facing `EverframeProvider config` shape.
|
|
@@ -953,7 +238,7 @@ declare function getReportDeliveryStatus(): ReportDeliveryStatus;
|
|
|
953
238
|
* review instruction, left as pre-existing behavior rather than folded in
|
|
954
239
|
* here.
|
|
955
240
|
*/
|
|
956
|
-
interface RuntimeConfig extends Omit<ConfigOpts, 'sdkVersion' | 'installIdentifierDisabled' | 'crashReportingDisabled' | 'companionBadgeEnabled' | 'companionBadgePosition' | 'shakeToReportEnabled' | 'reporterDisabled' | 'themeBackground' | 'themeSurface' | 'themeBorder' | 'themeText' | 'themeTextMuted' | 'themeAccent' | 'themeAccentForeground' | 'themeDestructive' | 'vitalsEnabled' | 'vitalsSampleRate' | 'vitalsCaptureSourceQuery' | 'releaseHealthEnabled' | 'releaseHealthLoadedBuildId' | 'releaseHealthUserId' | 'releaseHealthIncludeDebugBuilds'> {
|
|
241
|
+
interface RuntimeConfig extends Omit<ConfigOpts, 'sdkVersion' | 'interactionsJson' | 'installIdentifierDisabled' | 'crashReportingDisabled' | 'companionBadgeEnabled' | 'companionBadgePosition' | 'shakeToReportEnabled' | 'reporterDisabled' | 'themeBackground' | 'themeSurface' | 'themeBorder' | 'themeText' | 'themeTextMuted' | 'themeAccent' | 'themeAccentForeground' | 'themeDestructive' | 'vitalsEnabled' | 'vitalsSampleRate' | 'vitalsCaptureSourceQuery' | 'releaseHealthEnabled' | 'releaseHealthLoadedBuildId' | 'releaseHealthUserId' | 'releaseHealthIncludeDebugBuilds'> {
|
|
957
242
|
/**
|
|
958
243
|
* Per-app SDK key (publishable, not secret). Required on the host-facing
|
|
959
244
|
* config — narrows the bridge `ConfigOpts.sdkKey?` to required so a missing
|
|
@@ -961,6 +246,8 @@ interface RuntimeConfig extends Omit<ConfigOpts, 'sdkVersion' | 'installIdentifi
|
|
|
961
246
|
* optional (extractBridgeConfig builds `{}`); only this host surface requires it.
|
|
962
247
|
*/
|
|
963
248
|
sdkKey: string;
|
|
249
|
+
/** Local value/URL allowlists; structural interaction evidence is on by default. */
|
|
250
|
+
interactions?: InteractionPolicyOptions;
|
|
964
251
|
appName?: string;
|
|
965
252
|
/** Exact loaded Hermes bundle identity, independent of the native app build. */
|
|
966
253
|
jsBundle?: JsBundleConfig;
|
|
@@ -1395,4 +682,18 @@ declare namespace companion {
|
|
|
1395
682
|
export { type companion_CompanionAttachChallenge as CompanionAttachChallenge, type companion_CompanionState as CompanionState, companion_getEmitter as getEmitter, companion_onAttachChallenge as onAttachChallenge, companion_onAttachedUserName as onAttachedUserName, companion_onCode as onCode, companion_onPairUrl as onPairUrl, companion_onResolvedName as onResolvedName, companion_onRunning as onRunning, companion_onState as onState, companion_start as start, companion_stop as stop, companion_useCompanion as useCompanion };
|
|
1396
683
|
}
|
|
1397
684
|
|
|
1398
|
-
|
|
685
|
+
/** Optional semantic metadata on an existing native host ref. Reporting works without it. */
|
|
686
|
+
declare function useEverframeTarget<T>(annotation?: InteractionTargetAnnotation): React.RefCallback<T>;
|
|
687
|
+
|
|
688
|
+
/** Annotates an existing native host; legacy evidence helpers are compatibility no-ops. */
|
|
689
|
+
declare function useEverframeInteraction<T>(options?: InteractionHookOptions): {
|
|
690
|
+
ref: (host: T | null) => void;
|
|
691
|
+
textChanged: (_text: string, _input?: {
|
|
692
|
+
composing?: boolean;
|
|
693
|
+
reason?: "change" | "end" | "submit";
|
|
694
|
+
}) => void;
|
|
695
|
+
controlChanged: (_change: ControlChangeInput) => void;
|
|
696
|
+
scrollSettled: (_change: ScrollInput) => void;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
export { type CaptureExceptionOptions, type CompanionState, ConfigOpts, ControlChangeInput, type DeviceMetadata, EXTRA_MAX_CHARS, ErrorCaptureStatus, type EverframeContextValue, EverframeIntegration, EverframeProvider, type EverframeProviderProps, EverframeScreen, type EverframeScreenProps, EverframeSensitive, EverframeUserSpec, type HostPlayerEventType, InteractionHookOptions, InteractionPolicyOptions, InteractionTargetAnnotation, type PlayerHandle, type PlayerStats, PromiseRejectionStatus, ReportDeliveryStatus, type ReportDraft, ReporterOpenOptions, ReporterResult, ReporterTrigger, ScrollInput, EverframeSensitive as Sensitive, type StateValue, type TrackPlayerOptions, VitalsPlayerEventType, addBreadcrumb, captureException, clearState, companion, getErrorCaptureStatus, getPromiseRejectionStatus, getReportDeliveryStatus, markReporterClosed, markReporterOpened, open, recordScreen, setExtra, setState, setUser, trackPlayer, trackVitals, useCompanion, useEverframe, useEverframeInteraction, useEverframeScreen, useEverframeSensitiveRef, useEverframeTarget, useTrackPlayer };
|