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