@testerpaykit/expo 1.2.0 → 2.0.1
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/CHANGELOG.md +56 -0
- package/README.md +33 -0
- package/dist/index.d.mts +377 -76
- package/dist/index.d.ts +377 -76
- package/dist/index.js +3717 -1831
- package/dist/index.mjs +3686 -1795
- package/package.json +7 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _testerpaykit_api_client from '@testerpaykit/api-client';
|
|
2
|
-
import { SessionEventInput, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportPayload, BugReportResponse, TaskListResponse, TesterTask, TesterPayKitApiClient, AnonymousLoginResponse, BugReportType, BugSeverity, BugCategory, MyBugReportSummary, NotificationsResult, TesterSessionEndReason, TesterProfile, TesterPoints, ChecklistTask, ChecklistStepResult, EarningsSummary, PayoutRecord } from '@testerpaykit/api-client';
|
|
3
|
-
export { BugCategory, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportType, BugSeverity, EarningsSummary, EnrollmentResponse, MyBugReportSummary, MyBugReportsResponse, NotificationsResult, PayoutRecord, TaskListFilter, TaskListResponse, TesterPoints, TesterProfile, TesterTask, TpkNotification } from '@testerpaykit/api-client';
|
|
2
|
+
import { SessionEventInput, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportPayload, BugReportResponse, TaskListResponse, TesterTask, TesterPayKitApiClient, WorkCommand, CompensationWallet, PaidAssignment, AnonymousLoginResponse, BugReportType, BugSeverity, BugCategory, MyBugReportSummary, NotificationsResult, TesterSessionEndReason, PushRegistration, TesterProfile, TesterPoints, ChecklistTask, ChecklistStepResult, EarningsSummary, PayoutRecord } from '@testerpaykit/api-client';
|
|
3
|
+
export { BugCategory, BugReportAttachmentInput, BugReportAttachmentResponse, BugReportType, BugSeverity, CompensationWallet, EarningsSummary, EnrollmentResponse, MoneyEntry, MyBugReportSummary, MyBugReportsResponse, NotificationsResult, PaidAssignment, PayoutRecord, PushRegistration, TaskListFilter, TaskListResponse, TesterPoints, TesterProfile, TesterTask, TpkNotification, WorkCommand } from '@testerpaykit/api-client';
|
|
4
4
|
import { RemoteAiSession } from '@testerpaykit/core';
|
|
5
5
|
import React, { RefObject, ReactNode } from 'react';
|
|
6
6
|
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
@@ -70,23 +70,94 @@ interface BreadcrumbsOptions {
|
|
|
70
70
|
/** Max entries to keep in the ring. Default 50. */
|
|
71
71
|
maxEntries?: number;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Two views on the same entries: the ring buffer ([snapshot], [recent])
|
|
75
|
+
* is the context every report ships; the pending list
|
|
76
|
+
* ([pendingSnapshot] / [markPendingFlushed]) is what the session
|
|
77
|
+
* timeline has not received yet. A flush (also the one on app
|
|
78
|
+
* background) only empties the pending list — the context must survive
|
|
79
|
+
* it, or the first report after a backgrounding arrives with screen
|
|
80
|
+
* "unknown" and no breadcrumbs (TinIdeas on a real iPhone, 2026-11-06).
|
|
81
|
+
*/
|
|
73
82
|
declare class Breadcrumbs {
|
|
74
83
|
private readonly maxEntries;
|
|
75
84
|
private readonly buffer;
|
|
76
85
|
private readonly pending;
|
|
86
|
+
private screen;
|
|
87
|
+
private static readonly MAX_PENDING;
|
|
77
88
|
constructor(options?: BreadcrumbsOptions);
|
|
78
89
|
/** Record a breadcrumb. Drops the oldest if past capacity. */
|
|
79
90
|
record(crumb: Omit<Breadcrumb, 't'>): void;
|
|
91
|
+
/**
|
|
92
|
+
* The screen the app shows now: the last navigation breadcrumb. Kept
|
|
93
|
+
* apart from the ring, so it survives the ring overflowing (hosts
|
|
94
|
+
* report a screen only when it changes) and [clear].
|
|
95
|
+
*/
|
|
96
|
+
get currentScreen(): string | undefined;
|
|
97
|
+
/** The last [limit] breadcrumbs, oldest first — what a report ships. */
|
|
98
|
+
recent(limit?: number): Breadcrumb[];
|
|
80
99
|
/** Snapshot of the current buffer (cloned). */
|
|
81
100
|
snapshot(): Breadcrumb[];
|
|
82
101
|
/** Breadcrumbs not yet flushed to the session timeline endpoint. */
|
|
83
102
|
pendingSnapshot(): Breadcrumb[];
|
|
84
103
|
/** Mark the oldest pending breadcrumbs as successfully flushed. */
|
|
85
104
|
markPendingFlushed(count?: number): void;
|
|
86
|
-
/** Clear the buffer
|
|
105
|
+
/** Clear the buffer. [currentScreen] stays: the app still shows it. */
|
|
87
106
|
clear(): void;
|
|
88
107
|
}
|
|
89
108
|
|
|
109
|
+
/**
|
|
110
|
+
* A report's `deviceSnapshot` in the keys the server and the MCP tools
|
|
111
|
+
* read (`platform`, `os`, `osVersion`, `model`, `locale`) — the same
|
|
112
|
+
* shape the Flutter SDK sends. `model` is the marketing name when known
|
|
113
|
+
* ("iPhone 15 Pro"), `modelId` the hardware identifier ("iPhone16,1").
|
|
114
|
+
* Unknown values are left out, never faked.
|
|
115
|
+
*/
|
|
116
|
+
interface DeviceSnapshot {
|
|
117
|
+
platform: 'ios' | 'android' | 'web' | 'macos' | 'windows';
|
|
118
|
+
os: string;
|
|
119
|
+
osVersion?: string;
|
|
120
|
+
model?: string;
|
|
121
|
+
modelId?: string;
|
|
122
|
+
manufacturer?: string;
|
|
123
|
+
isPhysicalDevice?: boolean;
|
|
124
|
+
locale?: string;
|
|
125
|
+
capturedAt: string;
|
|
126
|
+
}
|
|
127
|
+
interface AppSnapshot {
|
|
128
|
+
version?: string;
|
|
129
|
+
buildNumber?: string;
|
|
130
|
+
bundleId?: string;
|
|
131
|
+
buildMode: 'debug' | 'profile' | 'release';
|
|
132
|
+
/**
|
|
133
|
+
* Screen path that led to the bug — chronological, consecutive-deduped,
|
|
134
|
+
* newest last (the final entry is the screen the bug happened on).
|
|
135
|
+
* Mirrors the Flutter SDK's appSnapshot.navigationPath; the server +
|
|
136
|
+
* `tpk bug context` surface it as the navigation flow.
|
|
137
|
+
*/
|
|
138
|
+
navigationPath?: string[];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Best-effort snapshot of the device. Uses expo-device when available
|
|
142
|
+
* (marketing name as `model`, `modelId` "iPhone16,1" on iOS, the device
|
|
143
|
+
* code on Android); falls back to react-native's Platform.
|
|
144
|
+
*/
|
|
145
|
+
declare function getDeviceSnapshot(): Promise<DeviceSnapshot>;
|
|
146
|
+
/**
|
|
147
|
+
* Best-effort snapshot of the host app. Uses expo-application when
|
|
148
|
+
* available; falls back to a build-mode-only object.
|
|
149
|
+
*/
|
|
150
|
+
declare function getAppSnapshot(buildMode?: AppSnapshot['buildMode']): Promise<AppSnapshot>;
|
|
151
|
+
|
|
152
|
+
interface ReportContext {
|
|
153
|
+
/** The last screen the app reported, `unknown` when none was. */
|
|
154
|
+
currentScreen: string;
|
|
155
|
+
deviceSnapshot: DeviceSnapshot;
|
|
156
|
+
appSnapshot: Record<string, unknown>;
|
|
157
|
+
/** Oldest first, as the server reads them. */
|
|
158
|
+
breadcrumbs: Breadcrumb[];
|
|
159
|
+
}
|
|
160
|
+
|
|
90
161
|
interface CrashHandlerOptions {
|
|
91
162
|
/** Called when a crash is captured. Return value awaited. */
|
|
92
163
|
onCrash: (info: CrashInfo) => Promise<void> | void;
|
|
@@ -471,6 +542,42 @@ declare function deriveTaskProgress(res: TaskListResponse): TaskProgress;
|
|
|
471
542
|
*/
|
|
472
543
|
declare function findAssignmentForTask(tasks: TesterTask[], key: string): TesterTask | null;
|
|
473
544
|
|
|
545
|
+
/** Total agreed working time, including reading/reporting outside app screens.
|
|
546
|
+
* This preview is never an approved balance. The server validates every receipt. */
|
|
547
|
+
declare function workSeconds(a: PaidAssignment, serverNow: number): number;
|
|
548
|
+
type Api = Pick<TesterPayKitApiClient, 'getCompensation' | 'recordPaidWork'>;
|
|
549
|
+
interface SavedWork {
|
|
550
|
+
command: WorkCommand;
|
|
551
|
+
savedAt: string;
|
|
552
|
+
}
|
|
553
|
+
declare class CompensationClient {
|
|
554
|
+
private api;
|
|
555
|
+
private storage;
|
|
556
|
+
private scope;
|
|
557
|
+
private inflight;
|
|
558
|
+
private acting;
|
|
559
|
+
private rejectedRequest;
|
|
560
|
+
constructor(api: Api, storage: TpkStorage, scope: string);
|
|
561
|
+
private get pendingKey();
|
|
562
|
+
private get walletKey();
|
|
563
|
+
private get savedWorkKey();
|
|
564
|
+
private get clockKey();
|
|
565
|
+
pending(): Promise<WorkCommand | null>;
|
|
566
|
+
flush(): Promise<void>;
|
|
567
|
+
load(): Promise<{
|
|
568
|
+
wallet: CompensationWallet;
|
|
569
|
+
offline: boolean;
|
|
570
|
+
pending: WorkCommand | null;
|
|
571
|
+
conflict: boolean;
|
|
572
|
+
savedWork: SavedWork[];
|
|
573
|
+
clockOffset: number;
|
|
574
|
+
}>;
|
|
575
|
+
act(a: PaidAssignment, action: WorkCommand['action'], seconds?: number, note?: string): Promise<void>;
|
|
576
|
+
/** Explicit reconciliation only after a definitive server rejection. Keep
|
|
577
|
+
* the original work visible for clarification; never silently discard it. */
|
|
578
|
+
resolveConflict(): Promise<void>;
|
|
579
|
+
}
|
|
580
|
+
|
|
474
581
|
interface TpkExpoConfig {
|
|
475
582
|
/** Project UUID — bootstrap via `tpk project create` first. */
|
|
476
583
|
projectId: string;
|
|
@@ -535,7 +642,18 @@ interface SubmitBugInput {
|
|
|
535
642
|
*/
|
|
536
643
|
transcript?: string;
|
|
537
644
|
sourceLanguage?: string;
|
|
645
|
+
/** Extra keys merged into the report's `appSnapshot` (e.g. the
|
|
646
|
+
* session-end rating as `sessionFeedback`). */
|
|
647
|
+
appSnapshot?: Record<string, unknown>;
|
|
538
648
|
}
|
|
649
|
+
/**
|
|
650
|
+
* Whether this install may see the TesterPayKit widget (Uli,
|
|
651
|
+
* 2026-11-06): `ready` only for a confirmed number AND an admin's
|
|
652
|
+
* approval, in every build. `hidden` otherwise — also offline without a
|
|
653
|
+
* cached confirmation. The wrapper shows its FAB, gestures and tester
|
|
654
|
+
* sheets only while `ready`.
|
|
655
|
+
*/
|
|
656
|
+
type TpkAccess = 'hidden' | 'ready';
|
|
539
657
|
interface EndSessionInput {
|
|
540
658
|
reason?: TesterSessionEndReason;
|
|
541
659
|
bugsFound?: number;
|
|
@@ -558,8 +676,12 @@ interface FlushTelemetryResult {
|
|
|
558
676
|
* - `queued` Saved offline, will retry on next flush.
|
|
559
677
|
* - `failedPermanent` Server returned 4xx — payload is rejected,
|
|
560
678
|
* won't retry.
|
|
679
|
+
* - `phoneRequired` 403 phone_required: the tester has no confirmed
|
|
680
|
+
* DE/AT/CH number yet (migration 077). Not queued.
|
|
681
|
+
* - `approvalRequired` 403 approval_required: the account still waits
|
|
682
|
+
* for an admin's approval. Not queued.
|
|
561
683
|
*/
|
|
562
|
-
type SubmitBugOutcome = 'uploaded' | 'deduplicated' | 'queued' | 'failedPermanent';
|
|
684
|
+
type SubmitBugOutcome = 'uploaded' | 'deduplicated' | 'queued' | 'failedPermanent' | 'phoneRequired' | 'approvalRequired';
|
|
563
685
|
/**
|
|
564
686
|
* Result of [TpkExpo.submitBug]. Drives the host UI message —
|
|
565
687
|
* see [SubmitBugOutcome] for the exact mapping.
|
|
@@ -624,12 +746,21 @@ declare class TpkExpo {
|
|
|
624
746
|
liveStateProvider: (() => unknown) | null;
|
|
625
747
|
/** The project this client reports into. */
|
|
626
748
|
get projectId(): string;
|
|
749
|
+
private compensationClient;
|
|
750
|
+
get compensation(): CompensationClient;
|
|
627
751
|
private readonly sessionEvents;
|
|
628
752
|
private uninstallDurableSync;
|
|
629
753
|
private uninstallTaskBinding;
|
|
630
754
|
private readonly capturedCrashes;
|
|
631
755
|
private readonly submittedCrashes;
|
|
632
756
|
private crashFlush;
|
|
757
|
+
private accessValue;
|
|
758
|
+
private handleValue;
|
|
759
|
+
/** Bumped by a tester-gate 403: a check that started before it must
|
|
760
|
+
* not bring a stale "ready" back. */
|
|
761
|
+
private accessGeneration;
|
|
762
|
+
private readonly accessListeners;
|
|
763
|
+
private verificationPresenter;
|
|
633
764
|
private constructor();
|
|
634
765
|
/** Active server session id. Updated by init or rotate. Used to route telemetry. */
|
|
635
766
|
sessionId: string;
|
|
@@ -672,12 +803,9 @@ declare class TpkExpo {
|
|
|
672
803
|
*/
|
|
673
804
|
getSessionStats(filter?: PeriodFilter): SessionStatsSnapshot;
|
|
674
805
|
/**
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
* testerpaykit_core PayoutCalculator.engagedMinutes (parity with the
|
|
679
|
-
* Flutter SDK's activity-gated earnings). Drive an honest in-app
|
|
680
|
-
* earnings estimate from this instead of raw foreground time.
|
|
806
|
+
* Legacy interaction-weighted diagnostic. The buffer is cleared after
|
|
807
|
+
* flushing; this value is not paid time and must not create money claims.
|
|
808
|
+
* Paid assignments use the durable compensation account instead.
|
|
681
809
|
*/
|
|
682
810
|
getEngagedMinutes(filter?: PeriodFilter): number;
|
|
683
811
|
/**
|
|
@@ -689,6 +817,89 @@ declare class TpkExpo {
|
|
|
689
817
|
status?: string;
|
|
690
818
|
limit?: number;
|
|
691
819
|
}): Promise<MyBugReportSummary[]>;
|
|
820
|
+
/**
|
|
821
|
+
* Whether this install may report yet (migrations 075 + 077: a
|
|
822
|
+
* confirmed DE/AT/CH number AND an admin's approval).
|
|
823
|
+
* - `verified`: number confirmed and approved (cached once both hold).
|
|
824
|
+
* - `required`: ask for the number now.
|
|
825
|
+
* - `awaitingApproval`: number confirmed, approval still pending.
|
|
826
|
+
* Never cached.
|
|
827
|
+
* - `unknown`: offline / not signed in, nothing cached.
|
|
828
|
+
*
|
|
829
|
+
* A cached confirmation answers `verified` without a network call.
|
|
830
|
+
* With `revalidate` the profile is asked anyway: a definite "not (any
|
|
831
|
+
* more)" drops the cache, offline keeps it.
|
|
832
|
+
*/
|
|
833
|
+
phoneStatus(options?: {
|
|
834
|
+
revalidate?: boolean;
|
|
835
|
+
}): Promise<'verified' | 'required' | 'awaitingApproval' | 'unknown'>;
|
|
836
|
+
private loginRecovery;
|
|
837
|
+
/**
|
|
838
|
+
* Drop a login the server no longer accepts, with its session and phone
|
|
839
|
+
* state, and log in anonymously again, like a first start. Concurrent
|
|
840
|
+
* callers share one login. False when the fresh login failed too.
|
|
841
|
+
*/
|
|
842
|
+
private recoverDeadLogin;
|
|
843
|
+
/** See [TpkAccess]. */
|
|
844
|
+
get access(): TpkAccess;
|
|
845
|
+
/** The tester's handle ("moinsen-uli") while access is ready and the
|
|
846
|
+
* server gave one; null otherwise. */
|
|
847
|
+
get handle(): string | null;
|
|
848
|
+
/** Called whenever [access] or [handle] changes. Returns the unsubscribe. */
|
|
849
|
+
onAccessChange(listener: () => void): () => void;
|
|
850
|
+
/**
|
|
851
|
+
* Re-derives [access] from the phone status and returns it. By default
|
|
852
|
+
* the server is asked even when "ready" is cached (a revoked approval
|
|
853
|
+
* hides the widget; offline keeps the cached answer).
|
|
854
|
+
* `revalidate: false` answers from the cache when there is one.
|
|
855
|
+
*/
|
|
856
|
+
refreshAccess(options?: {
|
|
857
|
+
revalidate?: boolean;
|
|
858
|
+
}): Promise<TpkAccess>;
|
|
859
|
+
/**
|
|
860
|
+
* Lets a person become a visible tester from the host's own UI (e.g. a
|
|
861
|
+
* "Become a tester" entry): the mounted TesterPayKitWrapper opens the
|
|
862
|
+
* phone sheet when the number is not confirmed yet and says so when
|
|
863
|
+
* the approval is still pending. Returns the resulting [access]; when
|
|
864
|
+
* it is `ready` the widget appears. Without a mounted wrapper it only
|
|
865
|
+
* re-checks.
|
|
866
|
+
*/
|
|
867
|
+
openVerification(): Promise<TpkAccess>;
|
|
868
|
+
/** @internal — the wrapper registers the sheet [openVerification] opens. */
|
|
869
|
+
setVerificationPresenter(present: (() => Promise<void>) | null): void;
|
|
870
|
+
/** A 403 from the tester gate: hide the widget until cleared again. */
|
|
871
|
+
private onTesterGate;
|
|
872
|
+
/** Startup: a cached confirmation shows the widget before the network. */
|
|
873
|
+
private accessFromCache;
|
|
874
|
+
private setAccess;
|
|
875
|
+
/**
|
|
876
|
+
* Sends the SMS code. `unavailable` means the server cannot send SMS
|
|
877
|
+
* (no provider yet) — the host should let the report through.
|
|
878
|
+
*/
|
|
879
|
+
startPhone(phone: string): Promise<{
|
|
880
|
+
ok: true;
|
|
881
|
+
verificationId: string;
|
|
882
|
+
devCode?: string;
|
|
883
|
+
} | {
|
|
884
|
+
ok: false;
|
|
885
|
+
reason: 'invalid' | 'tooMany' | 'unavailable' | 'network';
|
|
886
|
+
}>;
|
|
887
|
+
/**
|
|
888
|
+
* Confirms the code, bound to this device (hashed device key +
|
|
889
|
+
* platform, migration 077). `awaitingApproval` is true when the server
|
|
890
|
+
* says the person is not approved yet — the host must not open the
|
|
891
|
+
* report then. Only a confirmed AND approved state is remembered.
|
|
892
|
+
* `deviceNotAllowed`: the number is already confirmed on another
|
|
893
|
+
* device; an admin has to allow this one.
|
|
894
|
+
*/
|
|
895
|
+
confirmPhone(verificationId: string, code: string): Promise<{
|
|
896
|
+
ok: true;
|
|
897
|
+
handle: string;
|
|
898
|
+
awaitingApproval: boolean;
|
|
899
|
+
} | {
|
|
900
|
+
ok: false;
|
|
901
|
+
reason: 'wrong' | 'expired' | 'tooMany' | 'deviceNotAllowed' | 'network';
|
|
902
|
+
}>;
|
|
692
903
|
/**
|
|
693
904
|
* This tester's in-app notifications (newest first) + the unread count —
|
|
694
905
|
* powers the "Nachrichten" inbox. Mirrors the Flutter SDK.
|
|
@@ -807,12 +1018,79 @@ declare class TpkExpo {
|
|
|
807
1018
|
dispose(): void;
|
|
808
1019
|
/** Build a bug-report payload — exposed so tests can introspect. */
|
|
809
1020
|
buildPayload(input: SubmitBugInput): Promise<BugReportPayload>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Where the tester is now, for a report: the current screen (the
|
|
1023
|
+
* caller's, else the last navigation breadcrumb), the last 20
|
|
1024
|
+
* breadcrumbs, device and app. Every report path (bug sheet, voice,
|
|
1025
|
+
* shake, general and session feedback, crash) goes through
|
|
1026
|
+
* [buildPayload], which uses this. Never throws.
|
|
1027
|
+
*/
|
|
1028
|
+
captureReportContext(currentScreen?: string): Promise<ReportContext>;
|
|
810
1029
|
/** Persist crash context before attempting a best-effort upload. */
|
|
811
1030
|
private captureCrash;
|
|
812
1031
|
/** Auto-built crash submit — called from the cached crash flusher. */
|
|
813
1032
|
private submitCrashReport;
|
|
814
1033
|
}
|
|
815
1034
|
|
|
1035
|
+
/** The label every play-money amount carries (pilot: real bookings, no payout). */
|
|
1036
|
+
declare function playMoneyLabel(de: boolean): string;
|
|
1037
|
+
interface MoneyOverviewProps {
|
|
1038
|
+
tpk: Pick<TpkExpo, 'ready' | 'projectId' | 'compensation'> & {
|
|
1039
|
+
api: Pick<TpkExpo['api'], 'getPayoutAccount' | 'createPayoutAccountLink'>;
|
|
1040
|
+
};
|
|
1041
|
+
entryId?: string | null;
|
|
1042
|
+
onStartWork?: () => void;
|
|
1043
|
+
onEnableNotifications?: () => Promise<boolean>;
|
|
1044
|
+
}
|
|
1045
|
+
declare function MoneyOverview({ tpk, entryId, onStartWork, onEnableNotifications }: MoneyOverviewProps): React.JSX.Element;
|
|
1046
|
+
|
|
1047
|
+
type Response = {
|
|
1048
|
+
notification: {
|
|
1049
|
+
request: {
|
|
1050
|
+
identifier: string;
|
|
1051
|
+
content: {
|
|
1052
|
+
data?: Record<string, unknown>;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
type Subscription = {
|
|
1058
|
+
remove(): void;
|
|
1059
|
+
};
|
|
1060
|
+
/** Pass the host's expo-notifications module. This adapter never replaces the
|
|
1061
|
+
* host's global notification handler or requests permission on app launch. */
|
|
1062
|
+
interface ExpoNotificationsPort {
|
|
1063
|
+
getPermissionsAsync(): Promise<{
|
|
1064
|
+
granted: boolean;
|
|
1065
|
+
}>;
|
|
1066
|
+
requestPermissionsAsync(): Promise<{
|
|
1067
|
+
granted: boolean;
|
|
1068
|
+
}>;
|
|
1069
|
+
getExpoPushTokenAsync(options: {
|
|
1070
|
+
projectId: string;
|
|
1071
|
+
}): Promise<{
|
|
1072
|
+
data: string;
|
|
1073
|
+
}>;
|
|
1074
|
+
addPushTokenListener(listener: () => void): Subscription;
|
|
1075
|
+
addNotificationResponseReceivedListener(listener: (response: Response) => void): Subscription;
|
|
1076
|
+
getLastNotificationResponseAsync(): Promise<Response | null>;
|
|
1077
|
+
clearLastNotificationResponseAsync?(): Promise<void>;
|
|
1078
|
+
setNotificationChannelAsync?(id: string, options: {
|
|
1079
|
+
name: string;
|
|
1080
|
+
importance: number;
|
|
1081
|
+
}): Promise<unknown>;
|
|
1082
|
+
}
|
|
1083
|
+
interface CompensationPushAdapter {
|
|
1084
|
+
register(requestPermission: boolean): Promise<PushRegistration | null>;
|
|
1085
|
+
subscribe(onEntry: (id: string) => void, onTokenChanged: () => void): () => void;
|
|
1086
|
+
}
|
|
1087
|
+
declare function createCompensationPushAdapter(options: {
|
|
1088
|
+
notifications: ExpoNotificationsPort;
|
|
1089
|
+
storage: TpkStorage;
|
|
1090
|
+
appId: string;
|
|
1091
|
+
expoProjectId: string;
|
|
1092
|
+
}): CompensationPushAdapter;
|
|
1093
|
+
|
|
816
1094
|
declare const INTERACTION_NAV_WEIGHT = 3;
|
|
817
1095
|
declare const MIN_INTERACTIONS_PER_ACTIVE_MINUTE = 4;
|
|
818
1096
|
interface EngagedMinutesInput {
|
|
@@ -892,8 +1170,22 @@ interface FloatingFeedbackButtonProps {
|
|
|
892
1170
|
onReportBug: () => void;
|
|
893
1171
|
/** Tap "Feedback". Required — general (non-bug) tester feedback. */
|
|
894
1172
|
onGeneralFeedback: () => void;
|
|
895
|
-
/** Tap "My Workboard" — opens the TesterDashboard.
|
|
896
|
-
|
|
1173
|
+
/** Tap "My Workboard" — opens the TesterDashboard. Hidden when omitted
|
|
1174
|
+
* (the wrapper omits it unless the host enabled the dashboard). */
|
|
1175
|
+
onViewDashboard?: () => void;
|
|
1176
|
+
/** Tap "Mein Geld" — the money overview. Hidden when omitted. */
|
|
1177
|
+
onShowMyMoney?: () => void;
|
|
1178
|
+
/** The tester's handle, shown as "Du bist …" at the top of the menu. */
|
|
1179
|
+
testerHandle?: string | null;
|
|
1180
|
+
/** Called after the first-tap tour (if any) on a tap that would open
|
|
1181
|
+
* the menu. Returns true when it took the tap (the daily briefing is
|
|
1182
|
+
* showing; it calls `openMenu` on "Los geht's"). A throw never blocks
|
|
1183
|
+
* the menu. */
|
|
1184
|
+
onDailyBriefing?: (openMenu: () => void) => Promise<boolean>;
|
|
1185
|
+
/** The first-tap tour takes this tap (no briefing on top of it today). */
|
|
1186
|
+
onTourShown?: () => void;
|
|
1187
|
+
/** The menu opened (refresh counts, checklist). */
|
|
1188
|
+
onMenuOpened?: () => void;
|
|
897
1189
|
/** Tap "End Session" — typically opens SessionEndDialog. */
|
|
898
1190
|
onEndSession: () => void;
|
|
899
1191
|
/** Tap "My Retests". When omitted, the row is hidden. */
|
|
@@ -906,13 +1198,14 @@ interface FloatingFeedbackButtonProps {
|
|
|
906
1198
|
* current status). When omitted, the row is hidden. */
|
|
907
1199
|
onShowMyBugs?: () => void;
|
|
908
1200
|
/** Tap "Session Details" — opens the SessionDetailsSheet (taps, screens,
|
|
909
|
-
*
|
|
1201
|
+
* buffered activity diagnostics). When omitted, hidden. */
|
|
910
1202
|
onShowSessionDetails?: () => void;
|
|
911
1203
|
/** Tap "Nachrichten" — opens the NotificationsSheet (server-pull inbox).
|
|
912
1204
|
* When omitted, the row is hidden. */
|
|
913
1205
|
onShowMessages?: () => void;
|
|
914
|
-
/** Unread-notification count shown next to "Nachrichten"
|
|
915
|
-
*
|
|
1206
|
+
/** Unread-notification count shown next to "Nachrichten" and as a
|
|
1207
|
+
* yellow badge on the FAB itself (distinct from `notificationCount`,
|
|
1208
|
+
* which is the cached-crash count). */
|
|
916
1209
|
unreadMessageCount?: number;
|
|
917
1210
|
/** Tap "🤖 Auto Test (AI)" — opens the AI-tester surface that lets
|
|
918
1211
|
* a server-side LLM drive the app for the next N actions. When
|
|
@@ -953,15 +1246,12 @@ interface FloatingFeedbackButtonProps {
|
|
|
953
1246
|
x: number;
|
|
954
1247
|
y: number;
|
|
955
1248
|
};
|
|
956
|
-
/**
|
|
957
|
-
*
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
earningsPerMinuteRate?: number;
|
|
963
|
-
/** ISO-4217 currency code. Default 'EUR' (DACH-first). */
|
|
964
|
-
earningsCurrency?: string;
|
|
1249
|
+
/** Confirmed server balance only (the ledger). Omit when no verified
|
|
1250
|
+
* balance is available. There are no local estimates. */
|
|
1251
|
+
confirmedEarnings?: {
|
|
1252
|
+
amountCents: number;
|
|
1253
|
+
currency: string;
|
|
1254
|
+
};
|
|
965
1255
|
/** Outer style override. */
|
|
966
1256
|
style?: StyleProp<ViewStyle>;
|
|
967
1257
|
testID?: string;
|
|
@@ -974,7 +1264,7 @@ interface FloatingFeedbackButtonProps {
|
|
|
974
1264
|
* wiring. A failed/absent storage degrades gracefully. */
|
|
975
1265
|
tourStorage?: OnboardingStorage;
|
|
976
1266
|
}
|
|
977
|
-
declare function FloatingFeedbackButton({ onReportBug, onGeneralFeedback, onViewDashboard, onEndSession, onShowRetests, retestCount, onShowDebugLogs, onShowMyBugs, onShowSessionDetails, onShowMessages, unreadMessageCount, onAutoTest, onShowChecklist, checklistCount, onSendToClaude, onToggleLiveLink, liveLinkConnected, onLongPressVoiceBug, onFlushCachedCrashes, notificationCount, position,
|
|
1267
|
+
declare function FloatingFeedbackButton({ onReportBug, onGeneralFeedback, onViewDashboard, onShowMyMoney, testerHandle, onDailyBriefing, onTourShown, onMenuOpened, onEndSession, onShowRetests, retestCount, onShowDebugLogs, onShowMyBugs, onShowSessionDetails, onShowMessages, unreadMessageCount, onAutoTest, onShowChecklist, checklistCount, onSendToClaude, onToggleLiveLink, liveLinkConnected, onLongPressVoiceBug, onFlushCachedCrashes, notificationCount, position, confirmedEarnings, style, testID, enableFirstTapTour, tourStorage, }: FloatingFeedbackButtonProps): React.ReactElement;
|
|
978
1268
|
|
|
979
1269
|
type AttachmentKind = 'screenshot' | 'image' | 'video' | 'audio' | 'screen-recording' | 'log' | 'json' | 'other';
|
|
980
1270
|
interface BugReportAttachmentDraft {
|
|
@@ -1050,7 +1340,8 @@ interface BugReportSheetProps {
|
|
|
1050
1340
|
/**
|
|
1051
1341
|
* Fires after [submitBugReportDraft] returns. Receives the
|
|
1052
1342
|
* [SubmitBugResult] so the host can show honest UI per-outcome
|
|
1053
|
-
* (queued / uploaded / deduplicated / failedPermanent
|
|
1343
|
+
* (queued / uploaded / deduplicated / failedPermanent /
|
|
1344
|
+
* phoneRequired / approvalRequired) — fixes the
|
|
1054
1345
|
* 2026-05-28 "green ✓ on offline" bug.
|
|
1055
1346
|
*/
|
|
1056
1347
|
onSubmitted?: (result: SubmitBugResult) => void;
|
|
@@ -1069,45 +1360,15 @@ interface BugReportSheetProps {
|
|
|
1069
1360
|
/** Max attachments + total size, mirrors Flutter's safeguards. */
|
|
1070
1361
|
maxAttachments?: number;
|
|
1071
1362
|
maxTotalSizeMB?: number;
|
|
1363
|
+
/** The tester's handle — shown as "Du meldest als …" under the title. */
|
|
1364
|
+
reporterHandle?: string | null;
|
|
1072
1365
|
style?: StyleProp<ViewStyle>;
|
|
1073
1366
|
}
|
|
1074
1367
|
declare function createBugReportDraft(input?: CreateBugReportDraftInput): BugReportDraft;
|
|
1075
1368
|
declare function canSubmitBugReportDraft(draft: BugReportDraft): boolean;
|
|
1076
1369
|
declare function submitBugReportDraft(tpk: Pick<TpkExpo, 'submitBug' | 'attachToBugReport'>, draft: BugReportDraft): Promise<SubmitBugResult>;
|
|
1077
1370
|
type StepIndex = 0 | 1 | 2 | 3 | 4;
|
|
1078
|
-
declare function BugReportSheet({ visible, tpk, currentScreen, captureRootRef, autoCaptureOnOpen, onOpenVoiceBug, onClose, onSubmitted, onError, defaultSeverity, initialDraft: initialDraftPatch, initialStep, maxAttachments, maxTotalSizeMB, style, }: BugReportSheetProps): React.ReactElement;
|
|
1079
|
-
|
|
1080
|
-
interface DeviceSnapshot {
|
|
1081
|
-
platform: 'ios' | 'android' | 'web' | 'macos' | 'windows';
|
|
1082
|
-
osVersion?: string;
|
|
1083
|
-
model?: string;
|
|
1084
|
-
manufacturer?: string;
|
|
1085
|
-
isPhysicalDevice?: boolean;
|
|
1086
|
-
locale?: string;
|
|
1087
|
-
}
|
|
1088
|
-
interface AppSnapshot {
|
|
1089
|
-
version?: string;
|
|
1090
|
-
buildNumber?: string;
|
|
1091
|
-
bundleId?: string;
|
|
1092
|
-
buildMode: 'debug' | 'profile' | 'release';
|
|
1093
|
-
/**
|
|
1094
|
-
* Screen path that led to the bug — chronological, consecutive-deduped,
|
|
1095
|
-
* newest last (the final entry is the screen the bug happened on).
|
|
1096
|
-
* Mirrors the Flutter SDK's appSnapshot.navigationPath; the server +
|
|
1097
|
-
* `tpk bug context` surface it as the navigation flow.
|
|
1098
|
-
*/
|
|
1099
|
-
navigationPath?: string[];
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Best-effort snapshot of the device. Uses expo-device when
|
|
1103
|
-
* available; falls back to react-native's Platform.
|
|
1104
|
-
*/
|
|
1105
|
-
declare function getDeviceSnapshot(): Promise<DeviceSnapshot>;
|
|
1106
|
-
/**
|
|
1107
|
-
* Best-effort snapshot of the host app. Uses expo-application when
|
|
1108
|
-
* available; falls back to a build-mode-only object.
|
|
1109
|
-
*/
|
|
1110
|
-
declare function getAppSnapshot(buildMode?: AppSnapshot['buildMode']): Promise<AppSnapshot>;
|
|
1371
|
+
declare function BugReportSheet({ visible, tpk, currentScreen, captureRootRef, autoCaptureOnOpen, onOpenVoiceBug, onClose, onSubmitted, onError, defaultSeverity, initialDraft: initialDraftPatch, initialStep, maxAttachments, maxTotalSizeMB, reporterHandle, style, }: BugReportSheetProps): React.ReactElement;
|
|
1111
1372
|
|
|
1112
1373
|
interface InstallNetworkCaptureOptions {
|
|
1113
1374
|
breadcrumbs: Breadcrumbs;
|
|
@@ -1613,12 +1874,26 @@ interface GeneralFeedbackDialogProps {
|
|
|
1613
1874
|
}
|
|
1614
1875
|
declare function GeneralFeedbackDialog({ visible, tpk, currentScreen, onClose, onSubmitted, onError, style, }: GeneralFeedbackDialogProps): React.ReactElement;
|
|
1615
1876
|
|
|
1877
|
+
interface PhoneConfirmSheetProps {
|
|
1878
|
+
visible: boolean;
|
|
1879
|
+
tpk: Pick<TpkExpo, 'startPhone' | 'confirmPhone'> | null;
|
|
1880
|
+
/**
|
|
1881
|
+
* Confirmed (handle) or skipped because SMS is unavailable (null).
|
|
1882
|
+
* `awaitingApproval`: confirmed, but the account still waits for
|
|
1883
|
+
* approval — the host must not open the report.
|
|
1884
|
+
*/
|
|
1885
|
+
onDone: (handle: string | null, awaitingApproval?: boolean) => void;
|
|
1886
|
+
/** Tester closed the sheet: the report does not open. */
|
|
1887
|
+
onCancel: () => void;
|
|
1888
|
+
}
|
|
1889
|
+
declare function PhoneConfirmSheet({ visible, tpk, onDone, onCancel, }: PhoneConfirmSheetProps): React.ReactElement;
|
|
1890
|
+
|
|
1616
1891
|
type MaterialIconName = string;
|
|
1617
1892
|
/**
|
|
1618
1893
|
* Semantic icon names used by the SDK. Map to MaterialIcons glyph
|
|
1619
1894
|
* names by default; consumers can override via TpkIconsContext.
|
|
1620
1895
|
*/
|
|
1621
|
-
type TpkIconName = 'bug_report' | 'feedback' | 'dashboard' | 'session_end' | 'voice' | 'voice_off' | 'close' | 'check' | 'star_filled' | 'star_outline' | 'camera' | 'image' | 'attachment' | 'music_note' | 'language' | 'rocket' | 'lightbulb' | 'trend_up' | 'frown' | 'smile' | 'palette' | 'speed_slow' | 'crash' | 'sparkle' | 'cloud_upload' | 'refresh' | 'edit_pen' | 'shape_rect' | 'shape_circle' | 'shape_arrow' | 'text' | 'blur' | 'link' | 'link_off' | 'send';
|
|
1896
|
+
type TpkIconName = 'bug_report' | 'feedback' | 'dashboard' | 'session_end' | 'voice' | 'voice_off' | 'close' | 'check' | 'star_filled' | 'star_outline' | 'camera' | 'image' | 'attachment' | 'music_note' | 'language' | 'rocket' | 'lightbulb' | 'trend_up' | 'frown' | 'smile' | 'palette' | 'speed_slow' | 'crash' | 'sparkle' | 'cloud_upload' | 'refresh' | 'edit_pen' | 'shape_rect' | 'shape_circle' | 'shape_arrow' | 'text' | 'blur' | 'link' | 'link_off' | 'send' | 'person' | 'money';
|
|
1622
1897
|
type TpkIconOverrideMap = Partial<Record<TpkIconName, MaterialIconName>>;
|
|
1623
1898
|
declare function TpkIconsProvider({ icons, children, }: {
|
|
1624
1899
|
icons: TpkIconOverrideMap;
|
|
@@ -1688,6 +1963,12 @@ interface TpkStrings {
|
|
|
1688
1963
|
menuDebugLogs: string;
|
|
1689
1964
|
menuEndSession: string;
|
|
1690
1965
|
menuSessionEarnings: string;
|
|
1966
|
+
menuMyMoney: string;
|
|
1967
|
+
menuYouAre: (handle: string) => string;
|
|
1968
|
+
unreadBadgeA11y: (count: number) => string;
|
|
1969
|
+
verifyOfflineTitle: string;
|
|
1970
|
+
verifyOffline: string;
|
|
1971
|
+
verifiedNow: string;
|
|
1691
1972
|
menuOpen: string;
|
|
1692
1973
|
menuClose: string;
|
|
1693
1974
|
reportTitle: string;
|
|
@@ -1758,6 +2039,11 @@ interface TpkStrings {
|
|
|
1758
2039
|
reviewAttachments: string;
|
|
1759
2040
|
reviewEmpty: string;
|
|
1760
2041
|
errorRejected: string;
|
|
2042
|
+
/** 403 phone_required (migration 077). */
|
|
2043
|
+
errorPhoneRequired: string;
|
|
2044
|
+
/** 403 approval_required — also the wrapper's waiting notice. */
|
|
2045
|
+
awaitingApproval: string;
|
|
2046
|
+
awaitingApprovalTitle: string;
|
|
1761
2047
|
errorFailed: string;
|
|
1762
2048
|
errorAttachmentLimit: (max: number) => string;
|
|
1763
2049
|
errorAttachmentSize: (maxMB: number) => string;
|
|
@@ -1926,6 +2212,7 @@ interface VoiceBugStrings {
|
|
|
1926
2212
|
idleDescription?: string;
|
|
1927
2213
|
recordingHeadline?: string;
|
|
1928
2214
|
recordingDescription?: string;
|
|
2215
|
+
recordingLimitNotice?: string;
|
|
1929
2216
|
processingHeadline?: string;
|
|
1930
2217
|
processingDescription?: string;
|
|
1931
2218
|
errorHeadline?: string;
|
|
@@ -1954,7 +2241,7 @@ interface VoiceBugInputSheetProps {
|
|
|
1954
2241
|
* (Bug / Feature / Idea / Issue). The host typically passes both
|
|
1955
2242
|
* on to BugReportSheet's initialDraft prop. */
|
|
1956
2243
|
onExtracted: (result: VoiceExtractResult, classification: VoiceClassification) => void;
|
|
1957
|
-
/** Max recording length in seconds. Default
|
|
2244
|
+
/** Max recording length in seconds. Default 180. */
|
|
1958
2245
|
maxSeconds?: number;
|
|
1959
2246
|
/** Accent colour for the mic + active chip. Default `#D83232`
|
|
1960
2247
|
* (bug-red). Hosts that want a brand-tint can override. */
|
|
@@ -1994,10 +2281,12 @@ interface VoiceBugInputSheetProps {
|
|
|
1994
2281
|
captureScreen?: () => Promise<string | null>;
|
|
1995
2282
|
/** Screen name sent along with a quick action (model context). */
|
|
1996
2283
|
currentScreen?: string;
|
|
2284
|
+
/** The tester's handle — shown as "Du meldest als …" in the sheet. */
|
|
2285
|
+
reporterHandle?: string | null;
|
|
1997
2286
|
style?: StyleProp<ViewStyle>;
|
|
1998
2287
|
testID?: string;
|
|
1999
2288
|
}
|
|
2000
|
-
declare function VoiceBugInputSheet({ visible, tpk, onCancel, onExtracted, maxSeconds, accentColor, sheetOpacity, voiceLanguage, strings, captureScreen, currentScreen, style, testID, }: VoiceBugInputSheetProps): React.ReactElement;
|
|
2289
|
+
declare function VoiceBugInputSheet({ visible, tpk, onCancel, onExtracted, maxSeconds, accentColor, sheetOpacity, voiceLanguage, strings, captureScreen, currentScreen, reporterHandle, style, testID, }: VoiceBugInputSheetProps): React.ReactElement;
|
|
2001
2290
|
/** Maps the sheet's classification onto the BugReportSheet's
|
|
2002
2291
|
* BugReportType union. Exported so the host can call it when
|
|
2003
2292
|
* building the initialDraft for the bug sheet. */
|
|
@@ -2042,12 +2331,8 @@ interface SessionDetailsSheetProps {
|
|
|
2042
2331
|
visible: boolean;
|
|
2043
2332
|
tpk: TpkExpo | null;
|
|
2044
2333
|
onClose: () => void;
|
|
2045
|
-
/** Earnings model (defaults match the FAB header + Flutter screen). */
|
|
2046
|
-
earningsBaseAmount?: number;
|
|
2047
|
-
earningsPerMinuteRate?: number;
|
|
2048
|
-
earningsCurrency?: string;
|
|
2049
2334
|
}
|
|
2050
|
-
declare function SessionDetailsSheet({ visible, tpk, onClose,
|
|
2335
|
+
declare function SessionDetailsSheet({ visible, tpk, onClose, }: SessionDetailsSheetProps): React.ReactElement;
|
|
2051
2336
|
|
|
2052
2337
|
interface StatusStyle {
|
|
2053
2338
|
label: string;
|
|
@@ -2062,13 +2347,14 @@ declare function bugSeverityLabel(severity?: string | null, language?: TpkLangua
|
|
|
2062
2347
|
|
|
2063
2348
|
interface NotificationsSheetProps {
|
|
2064
2349
|
visible: boolean;
|
|
2065
|
-
tpk: TpkExpo | null;
|
|
2350
|
+
tpk: Pick<TpkExpo, 'getNotifications' | 'markNotificationsRead'> | null;
|
|
2066
2351
|
onClose: () => void;
|
|
2067
2352
|
/** Called with the new unread count after load + after marking read, so
|
|
2068
2353
|
* the host can refresh the FAB badge. */
|
|
2069
2354
|
onUnreadChange?: (count: number) => void;
|
|
2355
|
+
onMoneyEntry?: (entryId: string) => void;
|
|
2070
2356
|
}
|
|
2071
|
-
declare function NotificationsSheet({ visible, tpk, onClose, onUnreadChange, }: NotificationsSheetProps): React.ReactElement;
|
|
2357
|
+
declare function NotificationsSheet({ visible, tpk, onClose, onUnreadChange, onMoneyEntry, }: NotificationsSheetProps): React.ReactElement;
|
|
2072
2358
|
|
|
2073
2359
|
interface InviteCodeScreenProps {
|
|
2074
2360
|
visible: boolean;
|
|
@@ -2084,8 +2370,9 @@ declare function InviteCodeScreen({ visible, tpk, onSuccess, onClose, projectNam
|
|
|
2084
2370
|
|
|
2085
2371
|
interface TesterPayKitWrapperProps {
|
|
2086
2372
|
children: ReactNode;
|
|
2087
|
-
/** Initialized TpkExpo client.
|
|
2088
|
-
*
|
|
2373
|
+
/** Initialized TpkExpo client. The widget (FAB, shake, sheets) only
|
|
2374
|
+
* appears while `tpk.access === 'ready'`: a confirmed number and an
|
|
2375
|
+
* approval. Without a client nothing from TPK is shown. */
|
|
2089
2376
|
tpk: TpkExpo | null;
|
|
2090
2377
|
/** Master switch. When false the wrapper renders `children`
|
|
2091
2378
|
* unchanged — same shape as Flutter's `enableWrapper: false`
|
|
@@ -2108,7 +2395,18 @@ interface TesterPayKitWrapperProps {
|
|
|
2108
2395
|
retestCount?: number;
|
|
2109
2396
|
/** Replaces the built-in retest sheet. */
|
|
2110
2397
|
onShowRetests?: () => void;
|
|
2398
|
+
/** Replaces the built-in "My work" overview behind the dashboard entry. */
|
|
2111
2399
|
onViewDashboard?: () => void;
|
|
2400
|
+
/** Whether the menu offers the tester dashboard ("My work"). Default
|
|
2401
|
+
* true, like the Flutter SDK's `enableTesterDashboard`. */
|
|
2402
|
+
enableTesterDashboard?: boolean;
|
|
2403
|
+
/** False for unpaid tests: no amounts in the menu and the daily
|
|
2404
|
+
* briefing, no bug-bonus hint after sending. Presentation only.
|
|
2405
|
+
* Default true. */
|
|
2406
|
+
showCompensation?: boolean;
|
|
2407
|
+
/** Whether the menu offers "Debug Logs" (with `onShowDebugLogs`).
|
|
2408
|
+
* Default: development builds only (`__DEV__`). */
|
|
2409
|
+
showDebugLogs?: boolean;
|
|
2112
2410
|
/** Initial position of the floating feedback button (top-left corner
|
|
2113
2411
|
* of the 56×56 FAB). Default (16, 100). Testers can still drag it —
|
|
2114
2412
|
* this only sets where it starts, e.g. bottom-left above a host tab
|
|
@@ -2144,10 +2442,12 @@ interface TesterPayKitWrapperProps {
|
|
|
2144
2442
|
enableLiveLink?: boolean;
|
|
2145
2443
|
/** Currently active route — flows through to bug reports. */
|
|
2146
2444
|
currentScreen?: string;
|
|
2147
|
-
/** When the session started —
|
|
2445
|
+
/** When the session started — provides context for the
|
|
2148
2446
|
* duration tile on SessionEndDialog. Auto-stamps to mount-time
|
|
2149
2447
|
* if omitted. */
|
|
2150
2448
|
sessionStartedAt?: Date;
|
|
2449
|
+
/** Optional host notification integration; permission is requested only from the money screen. */
|
|
2450
|
+
compensationPush?: CompensationPushAdapter;
|
|
2151
2451
|
/** Optional brand-tint overrides. Unset tokens fall back to the
|
|
2152
2452
|
* bug-red + slate defaults. See `TpkTheme` for the four
|
|
2153
2453
|
* supported tokens. */
|
|
@@ -2158,7 +2458,7 @@ interface TesterPayKitWrapperProps {
|
|
|
2158
2458
|
language?: TpkLanguage;
|
|
2159
2459
|
testID?: string;
|
|
2160
2460
|
}
|
|
2161
|
-
declare function TesterPayKitWrapper({ children, tpk, enableWrapper, enableShake, shakeThresholdG, style, onShowDebugLogs, notificationCount, onFlushCachedCrashes, retestCount, onShowRetests, onViewDashboard, buttonPosition, currentScreen, sessionStartedAt, aiCoordinatorToken, aiRemoteTrigger, aiRemotePollSeconds, enableLiveLink, aiProjectId, aiApiBaseUrl, theme, language, testID, }: TesterPayKitWrapperProps): React.ReactElement;
|
|
2461
|
+
declare function TesterPayKitWrapper({ children, tpk, enableWrapper, enableShake, shakeThresholdG, style, onShowDebugLogs, notificationCount, onFlushCachedCrashes, retestCount, onShowRetests, onViewDashboard, enableTesterDashboard, showCompensation, showDebugLogs, buttonPosition, currentScreen, sessionStartedAt, compensationPush, aiCoordinatorToken, aiRemoteTrigger, aiRemotePollSeconds, enableLiveLink, aiProjectId, aiApiBaseUrl, theme, language, testID, }: TesterPayKitWrapperProps): React.ReactElement;
|
|
2162
2462
|
|
|
2163
2463
|
type LiveLinkStatus = 'off' | 'connecting' | 'connected';
|
|
2164
2464
|
/** The part of the WebSocket API the link uses (lets tests fake it). */
|
|
@@ -2240,7 +2540,8 @@ type Rect = {
|
|
|
2240
2540
|
/**
|
|
2241
2541
|
* Everything readable below `root`, top-to-bottom. Entries that measure
|
|
2242
2542
|
* as zero-sized or outside the window (detached / hidden screens) are
|
|
2243
|
-
* dropped
|
|
2543
|
+
* dropped. Unmeasurable entries are omitted because their visibility cannot
|
|
2544
|
+
* be verified.
|
|
2244
2545
|
*/
|
|
2245
2546
|
declare function readScreenTexts(root: FiberLike | null): Promise<ScreenText[]>;
|
|
2246
2547
|
|
|
@@ -2657,5 +2958,5 @@ declare function useTpkEarnings(tpk: TpkExpo | null, options?: {
|
|
|
2657
2958
|
payoutLimit?: number;
|
|
2658
2959
|
}): UseEarningsResult;
|
|
2659
2960
|
|
|
2660
|
-
export { ANNOTATION_PALETTE, AttachmentQueue, Breadcrumbs, BugReportSheet, ChecklistPanel, CrashQueue, DEFAULT_STYLE, DEFAULT_TPK_THEME, DENY_LABEL_PATTERNS, ExpoStorage, FloatingFeedbackButton, GeneralFeedbackDialog, INTERACTION_NAV_WEIGHT, InviteCodeScreen, LiveNoteDialog, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MyBugsSheet, NotificationsSheet, ONBOARDING_DONE_STORAGE_KEY, RetestSheet, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, SessionDetailsSheet, SessionEndDialog, SubmitQueue, TPK_STRINGS, TaskAnnotationRegistry, TesterDashboard, TesterPayKitProvider, TesterPayKitWrapper, TpkAnnotated, TpkAnnotationOverlay, TpkExpo, TpkIcon, TpkIconsProvider, TpkLanguageProvider, TpkLiveLink, TpkOnboarding, TpkSensitive, TpkTalker, TpkThemeProvider, TpkWelcomeSheet, VoiceBugInputSheet, VoiceNoteRecorder, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, WidgetDiscovery, WidgetTour, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureLiveSnapshot, captureView, classificationToBugType, createBugReportDraft, deriveTaskProgress, detectDeviceLanguage, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, formatTpkMoney, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, loadChecklist, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, parseLiveAction, parseVersionRange, pathToSvgD, quickDraftBug, readLiveState, readScreenTexts, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, runLiveAction, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, toStepResults, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkLanguage, useTpkStrings, useTpkTheme, useTr, versionSatisfies, widgetDiscovery, withNativeCapture };
|
|
2661
|
-
export type { AnnotatedElementInfo, AnnotatedScreenshotResult, AnnotationColor, AnnotationEvent, AnnotationEventType, AnnotationInteraction, AnnotationListener, AnnotationShape, AnnotationStyle, AnnotationTool, AppSnapshot, ArrowShape, AttachmentQueueFlushOptions, BlurShape, Breadcrumb, BugFix, BugReportDraft, BugReportSheetProps, BuildInfo, CachedCrash, CaptureViewOptions, ChecklistPanelProps, CircleShape, CompletionTrigger, CrashHandlerOptions, CrashInfo, CreateBugReportDraftInput, DashboardData, DeviceSnapshot, DiscoverOptions, EarningsData, EngagedMinutesInput, FeedbackCategory, FloatingFeedbackButtonProps, FlushTelemetryResult, FocusArea, GeneralFeedbackDialogProps, InstallNetworkCaptureOptions, InteractionBounds, InteractionType, InviteCodeScreenProps, LiveAction, LiveActionEnv, LiveActionResult, LiveLinkStatus, LiveNoteDialogProps, LiveSnapshotSource, LiveSocket, MyBugsSheetProps, NotificationsSheetProps, OnboardingStorage, PathShape, PeriodFilter, Point, QueueFlushOptions, QueueFlushResult, QuickActionKind, RecordInteractionDetails, RecordingOptions, RecordingResult, RecordingState, RectShape, RegisterAnnotationInput, ReleaseNote, RetestSheetProps, ScreenText, ScreenshotAnnotationEditorProps, ScreenshotResult, SensitiveMaskingMode, SessionDetailsSheetProps, SessionEndDialogProps, SessionEndStats, SessionStatsSnapshot, StatusStyle, StepDraft, SubmitBugInput, TaskAnnotation, TaskInteractionSummary, TaskProgress, TesterDashboardProps, TesterPayKitContextValue, TesterPayKitProviderProps, TesterPayKitWrapperProps, TextShape, TpkAnnotatedProps, TpkAnnotationOverlayHandle, TpkAnnotationOverlayProps, TpkExpoConfig, TpkIconName, TpkIconOverrideMap, TpkIconProps, TpkLanguage, TpkLiveLinkOptions, TpkLogEntry, TpkLogLevel, TpkOnboardingProps, TpkSensitiveProps, TpkStorage, TpkStrings, TpkTalkerListener, TpkTalkerOptions, TpkTheme, TpkWelcomeSheetProps, UseDashboardResult, UseEarningsResult, UseShakeOptions, UseTaskAnnotationOptions, UseTaskAnnotationResult, VersionRange, VoiceBugInputSheetProps, VoiceBugStrings, VoiceClassification, VoiceExtractAudio, VoiceExtractResult, VoiceNoteFileReader, VoiceNoteRecorderLike, VoiceNoteRecorderOptions, VoiceNoteResult, VoiceNoteState, WelcomeAckStorage, WelcomeBrief, WelcomeTask, WidgetInfo, WidgetTourProps };
|
|
2961
|
+
export { ANNOTATION_PALETTE, AttachmentQueue, Breadcrumbs, BugReportSheet, ChecklistPanel, CompensationClient, CrashQueue, DEFAULT_STYLE, DEFAULT_TPK_THEME, DENY_LABEL_PATTERNS, ExpoStorage, FloatingFeedbackButton, GeneralFeedbackDialog, INTERACTION_NAV_WEIGHT, InviteCodeScreen, LiveNoteDialog, MIN_INTERACTIONS_PER_ACTIVE_MINUTE, MoneyOverview, MyBugsSheet, NotificationsSheet, ONBOARDING_DONE_STORAGE_KEY, PhoneConfirmSheet, RetestSheet, SCREENSHOT_CONSENT_STORAGE_KEY, ScreenRecorder, ScreenshotAnnotationEditor, SessionDetailsSheet, SessionEndDialog, SubmitQueue, TPK_STRINGS, TaskAnnotationRegistry, TesterDashboard, TesterPayKitProvider, TesterPayKitWrapper, TpkAnnotated, TpkAnnotationOverlay, TpkExpo, TpkIcon, TpkIconsProvider, TpkLanguageProvider, TpkLiveLink, TpkOnboarding, TpkSensitive, TpkTalker, TpkThemeProvider, TpkWelcomeSheet, VoiceBugInputSheet, VoiceNoteRecorder, WELCOME_ACK_STORAGE_KEY, WIDGET_TOUR_SEEN_STORAGE_KEY, WidgetDiscovery, WidgetTour, annotations, applySensitiveRedaction, arrowHeadPoints, beginNativeCapture, bugSeverityLabel, bugStatusStyle, canSubmitBugReportDraft, captureLiveSnapshot, captureView, classificationToBugType, createBugReportDraft, createCompensationPushAdapter, deriveTaskProgress, detectDeviceLanguage, emptyAnnotationDoc, endNativeCapture, engagedMinutes, extractVoiceBug, findAssignmentForTask, formatTpkMoney, getAppSnapshot, getDeviceSnapshot, getEventCounts, getNativeCaptureMode, getSessionStats, getUniqueScreens, hasCompletedOnboarding, hasScreenshotConsent, hasSeenWidgetTour, hasWelcomeBriefBeenSeen, installCrashHandler, installNetworkCapture, loadChecklist, markOnboardingComplete, markWelcomeBriefAsSeen, markWidgetTourSeen, parseLiveAction, parseVersionRange, pathToSvgD, playMoneyLabel, quickDraftBug, readLiveState, readScreenTexts, resetOnboardingState, resetWelcomeBriefAck, resetWidgetTourSeen, runLiveAction, simplifyPath, submitBugReportDraft, subscribeNativeCaptureMode, toStepResults, uploadScreenshotAttachment, useShake, useTaskAnnotation, useTesterPayKit, useTpkDashboard, useTpkEarnings, useTpkLanguage, useTpkStrings, useTpkTheme, useTr, versionSatisfies, widgetDiscovery, withNativeCapture, workSeconds };
|
|
2962
|
+
export type { AnnotatedElementInfo, AnnotatedScreenshotResult, AnnotationColor, AnnotationEvent, AnnotationEventType, AnnotationInteraction, AnnotationListener, AnnotationShape, AnnotationStyle, AnnotationTool, AppSnapshot, ArrowShape, AttachmentQueueFlushOptions, BlurShape, Breadcrumb, BugFix, BugReportDraft, BugReportSheetProps, BuildInfo, CachedCrash, CaptureViewOptions, ChecklistPanelProps, CircleShape, CompensationPushAdapter, CompletionTrigger, CrashHandlerOptions, CrashInfo, CreateBugReportDraftInput, DashboardData, DeviceSnapshot, DiscoverOptions, EarningsData, EngagedMinutesInput, ExpoNotificationsPort, FeedbackCategory, FloatingFeedbackButtonProps, FlushTelemetryResult, FocusArea, GeneralFeedbackDialogProps, InstallNetworkCaptureOptions, InteractionBounds, InteractionType, InviteCodeScreenProps, LiveAction, LiveActionEnv, LiveActionResult, LiveLinkStatus, LiveNoteDialogProps, LiveSnapshotSource, LiveSocket, MoneyOverviewProps, MyBugsSheetProps, NotificationsSheetProps, OnboardingStorage, PathShape, PeriodFilter, PhoneConfirmSheetProps, Point, QueueFlushOptions, QueueFlushResult, QuickActionKind, RecordInteractionDetails, RecordingOptions, RecordingResult, RecordingState, RectShape, RegisterAnnotationInput, ReleaseNote, RetestSheetProps, ScreenText, ScreenshotAnnotationEditorProps, ScreenshotResult, SensitiveMaskingMode, SessionDetailsSheetProps, SessionEndDialogProps, SessionEndStats, SessionStatsSnapshot, StatusStyle, StepDraft, SubmitBugInput, SubmitBugOutcome, SubmitBugResult, TaskAnnotation, TaskInteractionSummary, TaskProgress, TesterDashboardProps, TesterPayKitContextValue, TesterPayKitProviderProps, TesterPayKitWrapperProps, TextShape, TpkAccess, TpkAnnotatedProps, TpkAnnotationOverlayHandle, TpkAnnotationOverlayProps, TpkExpoConfig, TpkIconName, TpkIconOverrideMap, TpkIconProps, TpkLanguage, TpkLiveLinkOptions, TpkLogEntry, TpkLogLevel, TpkOnboardingProps, TpkSensitiveProps, TpkStorage, TpkStrings, TpkTalkerListener, TpkTalkerOptions, TpkTheme, TpkWelcomeSheetProps, UseDashboardResult, UseEarningsResult, UseShakeOptions, UseTaskAnnotationOptions, UseTaskAnnotationResult, VersionRange, VoiceBugInputSheetProps, VoiceBugStrings, VoiceClassification, VoiceExtractAudio, VoiceExtractResult, VoiceNoteFileReader, VoiceNoteRecorderLike, VoiceNoteRecorderOptions, VoiceNoteResult, VoiceNoteState, WelcomeAckStorage, WelcomeBrief, WelcomeTask, WidgetInfo, WidgetTourProps };
|