@oxvo/browser 7.3.4 → 7.4.23
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/dist/cjs/entry.js +523 -84
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +517 -84
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/debugRedaction.d.ts +11 -0
- package/dist/cjs/main/app/index.d.ts +17 -1
- package/dist/cjs/main/index.d.ts +5 -0
- package/dist/cjs/main/singleton.d.ts +5 -0
- package/dist/lib/entry.js +523 -84
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +517 -84
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/debugRedaction.d.ts +11 -0
- package/dist/lib/main/app/index.d.ts +17 -1
- package/dist/lib/main/index.d.ts +5 -0
- package/dist/lib/main/singleton.d.ts +5 -0
- package/dist/types/main/app/debugRedaction.d.ts +11 -0
- package/dist/types/main/app/index.d.ts +17 -1
- package/dist/types/main/index.d.ts +5 -0
- package/dist/types/main/singleton.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const redactDebugText: (value: string) => string;
|
|
2
|
+
type DebugRedactionState = {
|
|
3
|
+
seen: WeakSet<object>;
|
|
4
|
+
remainingItems: number;
|
|
5
|
+
remainingText: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const redactDebugValue: (value: unknown, state?: DebugRedactionState, depth?: number) => unknown;
|
|
8
|
+
export declare const redactDebugArgs: (values: unknown[]) => unknown[];
|
|
9
|
+
export declare const debugValueText: (value: unknown) => string;
|
|
10
|
+
export declare const redactedErrorFrom: (value: unknown, fallback: string, knownSecrets?: ReadonlyArray<string | null | undefined>) => Error;
|
|
11
|
+
export {};
|
|
@@ -33,7 +33,16 @@ interface OnStartInfo {
|
|
|
33
33
|
assistToken?: string;
|
|
34
34
|
userUUID: string;
|
|
35
35
|
}
|
|
36
|
+
type AssistSessionGrant = Readonly<{
|
|
37
|
+
sessionId: string;
|
|
38
|
+
token: string;
|
|
39
|
+
}>;
|
|
36
40
|
declare const CANCELED: "canceled";
|
|
41
|
+
export type MessengerLinkageChallenge = Readonly<{
|
|
42
|
+
challenge: string;
|
|
43
|
+
sessionId: string;
|
|
44
|
+
expiresIn: number;
|
|
45
|
+
}>;
|
|
37
46
|
type SuccessfulStart = OnStartInfo & {
|
|
38
47
|
success: true;
|
|
39
48
|
};
|
|
@@ -170,6 +179,7 @@ export default class App {
|
|
|
170
179
|
private readonly markerWatcher;
|
|
171
180
|
private readonly bootstrapAttempts;
|
|
172
181
|
private offlineRecordingSessionToken;
|
|
182
|
+
private assistSessionGrant;
|
|
173
183
|
get tagMatcher(): TagMatcher;
|
|
174
184
|
private canStart;
|
|
175
185
|
private rootId;
|
|
@@ -265,12 +275,18 @@ export default class App {
|
|
|
265
275
|
revID: string;
|
|
266
276
|
trackerVersion: string;
|
|
267
277
|
isSnippet: boolean;
|
|
278
|
+
metadata: {
|
|
279
|
+
[x: string]: string;
|
|
280
|
+
};
|
|
268
281
|
sessionID: string | undefined;
|
|
269
|
-
metadata: Record<string, string>;
|
|
270
282
|
userID: string | null;
|
|
271
283
|
timestamp: number;
|
|
272
284
|
projectID?: string;
|
|
273
285
|
};
|
|
286
|
+
requestMessengerLinkageChallenge(): Promise<MessengerLinkageChallenge | null>;
|
|
287
|
+
getAssistSessionGrant(): AssistSessionGrant | null;
|
|
288
|
+
private setAssistSessionGrant;
|
|
289
|
+
private clearAssistSessionGrant;
|
|
274
290
|
getSessionSecret(): string | undefined;
|
|
275
291
|
getSessionKey(): string | undefined;
|
|
276
292
|
getSessionLink(options?: {
|
package/dist/cjs/main/index.d.ts
CHANGED
|
@@ -109,6 +109,11 @@ export default class API {
|
|
|
109
109
|
stop(): string | undefined;
|
|
110
110
|
forceFlushBatch(): void;
|
|
111
111
|
getSessionSecret(): string | null | undefined;
|
|
112
|
+
requestMessengerLinkageChallenge(): Promise<Readonly<{
|
|
113
|
+
challenge: string;
|
|
114
|
+
sessionId: string;
|
|
115
|
+
expiresIn: number;
|
|
116
|
+
}> | null>;
|
|
112
117
|
getSessionMeta(): SessionInfo | null;
|
|
113
118
|
getSessionKey(): string | null | undefined;
|
|
114
119
|
getTabId(): string | null;
|
|
@@ -34,6 +34,11 @@ declare class BrowserSingleton {
|
|
|
34
34
|
}): string | undefined;
|
|
35
35
|
getSessionKey(): string | null | undefined;
|
|
36
36
|
getSessionSecret(): string | null | undefined;
|
|
37
|
+
requestMessengerLinkageChallenge(): Promise<Readonly<{
|
|
38
|
+
challenge: string;
|
|
39
|
+
sessionId: string;
|
|
40
|
+
expiresIn: number;
|
|
41
|
+
}> | null>;
|
|
37
42
|
track(key: string, payload?: any, issue?: boolean): void;
|
|
38
43
|
report(key: string, payload?: any): void;
|
|
39
44
|
handleError(e: Error | ErrorEvent | PromiseRejectionEvent, metadata?: Record<string, any>): void;
|