@corbado/observe 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/script.global.js +4 -4
- package/dist/index.d.mts +134 -2
- package/dist/index.d.ts +134 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -29,6 +29,11 @@ declare function detectPasswordManagerExtensions(): PasswordManagerExtension[];
|
|
|
29
29
|
interface SdkInfo {
|
|
30
30
|
name: string;
|
|
31
31
|
version: string;
|
|
32
|
+
/**
|
|
33
|
+
* Version of the integration driving the SDK (e.g. an autocapture bundle), from
|
|
34
|
+
* `TrackerOptions.integrationVersion`. Omitted when not set or not a short version-like string.
|
|
35
|
+
*/
|
|
36
|
+
integrationVersion?: string;
|
|
32
37
|
}
|
|
33
38
|
type EventType = "predefined" | "custom" | "error" | "identify";
|
|
34
39
|
type AuthMethodType = "identifier-email"
|
|
@@ -45,7 +50,7 @@ type SetFlowTagsOptions = {
|
|
|
45
50
|
expandToFollowing?: boolean;
|
|
46
51
|
};
|
|
47
52
|
type ProvideIdentifierSpecType = "email" | "phone" | "username";
|
|
48
|
-
type SocialLoginProviderType = "google" | "apple" | "facebook" | "github" | "microsoft" | "line" | "kakao" | "singpass" | "other";
|
|
53
|
+
type SocialLoginProviderType = "google" | "apple" | "facebook" | "github" | "microsoft" | "line" | "kakao" | "singpass" | "naver" | "yahoo" | "other";
|
|
49
54
|
declare enum AuthEventName {
|
|
50
55
|
FlowStarted = "flow_started",
|
|
51
56
|
FlowDecided = "flow_decided",
|
|
@@ -302,6 +307,52 @@ interface TelemetryEntry {
|
|
|
302
307
|
/** Capture time, unix ms. */
|
|
303
308
|
ts: number;
|
|
304
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Context stamped on a probe item: the integration's current state / flow type / step (each ≤ 64 chars).
|
|
312
|
+
*
|
|
313
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
314
|
+
*/
|
|
315
|
+
interface ProbeContext {
|
|
316
|
+
state?: string;
|
|
317
|
+
flowType?: string;
|
|
318
|
+
step?: string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Input of {@link CorbadoTracker.probe}.
|
|
322
|
+
*
|
|
323
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
324
|
+
*/
|
|
325
|
+
interface ProbeInput {
|
|
326
|
+
/** Item kind, `^[a-z][a-z0-9_-]{0,31}$` (e.g. `ui`, `act`, `net`, `page`, `snapshot`). */
|
|
327
|
+
kind: string;
|
|
328
|
+
/** Already redacted JSON object or array; serialized ≤ 16384 bytes, larger items are dropped. */
|
|
329
|
+
payload: Record<string, unknown> | unknown[];
|
|
330
|
+
/** `^[A-Za-z0-9_-]{1,16}$`; defaults to one random id per tracker instance (page). */
|
|
331
|
+
pageId?: string;
|
|
332
|
+
/** Probe config hash, `^[A-Za-z0-9_-]{1,16}$`. */
|
|
333
|
+
cfg?: string;
|
|
334
|
+
ctx?: ProbeContext;
|
|
335
|
+
/** Capture time, unix ms; defaults to now. */
|
|
336
|
+
ts?: number;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* A probe item on the wire (`probes` array of the events endpoint payload).
|
|
340
|
+
*
|
|
341
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
342
|
+
*/
|
|
343
|
+
interface ProbeEntry {
|
|
344
|
+
/** Client-generated idempotency id (uuidv7); kept across retries. */
|
|
345
|
+
id: string;
|
|
346
|
+
kind: string;
|
|
347
|
+
/** Capture time, unix ms. */
|
|
348
|
+
ts: number;
|
|
349
|
+
pageId: string;
|
|
350
|
+
/** Per `pageId`, starting at 0; gaps mean loss. */
|
|
351
|
+
seq: number;
|
|
352
|
+
cfg?: string;
|
|
353
|
+
ctx?: ProbeContext;
|
|
354
|
+
payload: Record<string, unknown> | unknown[];
|
|
355
|
+
}
|
|
305
356
|
/**
|
|
306
357
|
* Why a delivery attempt happened. Each value maps 1:1 to one flush trigger, so server-side
|
|
307
358
|
* analyses can tell which triggers actually carry the traffic and whether the trigger switches and
|
|
@@ -365,6 +416,8 @@ interface EventBatch {
|
|
|
365
416
|
sdk: SdkInfo;
|
|
366
417
|
lows?: LowEvent[];
|
|
367
418
|
telemetry?: TelemetryEntry[];
|
|
419
|
+
/** Probe items (internal diagnostics captured by autocapture bundles); a batch may carry probes only. */
|
|
420
|
+
probes?: ProbeEntry[];
|
|
368
421
|
meta?: EventBatchMeta;
|
|
369
422
|
}
|
|
370
423
|
type DeviceType = "web" | "app" | "other";
|
|
@@ -1554,6 +1607,12 @@ interface TrackerOptions {
|
|
|
1554
1607
|
* sent as `meta.dataPolicy` on every batch (see {@link CorbadoTracker.setDataPolicy}).
|
|
1555
1608
|
*/
|
|
1556
1609
|
dataPolicy?: number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Version of the integration that drives the SDK (e.g. an autocapture bundle `"1.1.22"`), sent as
|
|
1612
|
+
* `sdk.integrationVersion` on every batch so analyses can cohort sessions by integration version.
|
|
1613
|
+
* At most 32 characters of `[0-9A-Za-z.+_-]`; any other value is ignored (logged in debug mode).
|
|
1614
|
+
*/
|
|
1615
|
+
integrationVersion?: string;
|
|
1557
1616
|
applicationId?: string;
|
|
1558
1617
|
/**
|
|
1559
1618
|
* @deprecated The flush interval is server-controlled via the SDK reliability config
|
|
@@ -1604,6 +1663,9 @@ declare class CorbadoTracker {
|
|
|
1604
1663
|
private telemetryReady;
|
|
1605
1664
|
private readonly reportedTelemetryKeys;
|
|
1606
1665
|
private pendingSelfTelemetry;
|
|
1666
|
+
/** Default probe page id (one per tracker instance) and the probe seq counter per page id. */
|
|
1667
|
+
private probePageId?;
|
|
1668
|
+
private readonly probeSeqs;
|
|
1607
1669
|
private windowObserver?;
|
|
1608
1670
|
private passwordManagerSampler?;
|
|
1609
1671
|
/** @internal Shared passive page observation and per-operation context registration. */
|
|
@@ -2013,6 +2075,21 @@ declare class CorbadoTracker {
|
|
|
2013
2075
|
* PII — telemetry is for diagnostics only. Like all SDK entry points, this never throws.
|
|
2014
2076
|
*/
|
|
2015
2077
|
telemetry(level: TelemetryLevel, message: string): void;
|
|
2078
|
+
/**
|
|
2079
|
+
* Queue a probe item (diagnostic capture produced by a Corbado autocapture bundle).
|
|
2080
|
+
*
|
|
2081
|
+
* @remarks
|
|
2082
|
+
* The SDK fills `id` (uuidv7), `seq` (per `pageId`), `pageId` (default: one random id per tracker
|
|
2083
|
+
* instance) and `ts` (default: now). Items are held in memory only (never the durable outbox) and
|
|
2084
|
+
* ride the regular batches; they are the lowest priority at page unload. Invalid input is dropped.
|
|
2085
|
+
* The payload must already be redacted. Blocked user agents are skipped. Never throws.
|
|
2086
|
+
*
|
|
2087
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
2088
|
+
* @internal
|
|
2089
|
+
*/
|
|
2090
|
+
probe(input: ProbeInput): void;
|
|
2091
|
+
private defaultProbePageId;
|
|
2092
|
+
private nextProbeSeq;
|
|
2016
2093
|
/** Convenience wrapper for {@link CorbadoTracker.telemetry} at `info` level. */
|
|
2017
2094
|
logInfo(message: string): void;
|
|
2018
2095
|
/** Convenience wrapper for {@link CorbadoTracker.telemetry} at `error` level. */
|
|
@@ -2259,6 +2336,23 @@ interface TransportOptions {
|
|
|
2259
2336
|
headers?: Record<string, string>;
|
|
2260
2337
|
}
|
|
2261
2338
|
|
|
2339
|
+
/** In-memory probe queue caps (oldest items are dropped beyond them). */
|
|
2340
|
+
declare const PROBE_QUEUE_MAX_ITEMS = 500;
|
|
2341
|
+
declare const PROBE_QUEUE_MAX_BYTES: number;
|
|
2342
|
+
/** Per-request probe caps (the server keeps at most 200 probe items per batch). */
|
|
2343
|
+
declare const PROBE_BATCH_MAX_ITEMS = 200;
|
|
2344
|
+
declare const PROBE_BATCH_MAX_BYTES: number;
|
|
2345
|
+
/** Serialized payload cap per probe item (server rule). */
|
|
2346
|
+
declare const PROBE_PAYLOAD_MAX_BYTES: number;
|
|
2347
|
+
/**
|
|
2348
|
+
* Unload request budget shared by the event beacon and the probe beacon that follows it: unload
|
|
2349
|
+
* transports share a ~64 KB in-flight budget per page (same limit as the fetch keepalive cap).
|
|
2350
|
+
*/
|
|
2351
|
+
declare const UNLOAD_BUDGET_BYTES = 60000;
|
|
2352
|
+
/** Absolute cap of the probe request at pagehide / destroy. */
|
|
2353
|
+
declare const UNLOAD_PROBE_MAX_BYTES = 32000;
|
|
2354
|
+
/** UTF-8 byte length of a string (no TextEncoder dependency). */
|
|
2355
|
+
declare function utf8Length(text: string): number;
|
|
2262
2356
|
interface QueueOptions {
|
|
2263
2357
|
/**
|
|
2264
2358
|
* Maximum number of events per request (payload cap). A backlog larger than this is drained in
|
|
@@ -2324,6 +2418,16 @@ declare class RequestQueue {
|
|
|
2324
2418
|
* the flush timer (it piggybacks), unless `config.flushOnTelemetry` escalates to an immediate flush.
|
|
2325
2419
|
*/
|
|
2326
2420
|
private telemetryQueue;
|
|
2421
|
+
/**
|
|
2422
|
+
* Probe items (`tracker.probe()`): in memory only — never the durable outbox — capped by
|
|
2423
|
+
* {@link PROBE_QUEUE_MAX_ITEMS} / {@link PROBE_QUEUE_MAX_BYTES}. They arm the flush timer, ride
|
|
2424
|
+
* the regular batches (probe-only batches allowed), retry under `config.retry`, and are the lowest
|
|
2425
|
+
* priority at unload (a separate request after the event request, within the remaining budget).
|
|
2426
|
+
*/
|
|
2427
|
+
private probeQueue;
|
|
2428
|
+
private probeBytes;
|
|
2429
|
+
/** Probe items dropped on this load (caps, permanent rejection, exhausted retries, unload budget). */
|
|
2430
|
+
private probesDropped;
|
|
2327
2431
|
private timer;
|
|
2328
2432
|
private isFlushing;
|
|
2329
2433
|
private flushingDone?;
|
|
@@ -2384,6 +2488,30 @@ declare class RequestQueue {
|
|
|
2384
2488
|
* - Any error while enqueueing or triggering the flush: log "Failed to enqueue telemetry"
|
|
2385
2489
|
*/
|
|
2386
2490
|
enqueueTelemetry(entry: TelemetryEntry): void;
|
|
2491
|
+
/**
|
|
2492
|
+
* Queue a probe item (in memory only). The payload is snapshotted (serialized once) so later host
|
|
2493
|
+
* mutations cannot change it; items over {@link PROBE_PAYLOAD_MAX_BYTES} are dropped, and the
|
|
2494
|
+
* oldest items are dropped beyond the queue caps. Arms the normal flush timer.
|
|
2495
|
+
*
|
|
2496
|
+
* Error situations:
|
|
2497
|
+
* - Any error while enqueueing or scheduling the flush timer: log "Failed to enqueue probe"
|
|
2498
|
+
*/
|
|
2499
|
+
enqueueProbe(entry: ProbeEntry, capturedSessionId?: string): void;
|
|
2500
|
+
/** Number of probe items dropped on this load (diagnostics / tests). */
|
|
2501
|
+
droppedProbeCount(): number;
|
|
2502
|
+
private dueProbes;
|
|
2503
|
+
/** Oldest-first selection for one session, within an item and byte cap (at least one item when any fits the item cap). */
|
|
2504
|
+
private selectProbes;
|
|
2505
|
+
private removeProbes;
|
|
2506
|
+
private dropProbes;
|
|
2507
|
+
/** Same policy as events: 2xx delivered, non-retryable dropped, retryable backed off up to `config.retry.maxAttempts`. */
|
|
2508
|
+
private handleProbeSendResult;
|
|
2509
|
+
/**
|
|
2510
|
+
* Unload / final teardown: one probe-only request for the current session within `budget` bytes,
|
|
2511
|
+
* sent after the event request so the events' delivery is unaffected. Leftovers are dropped when
|
|
2512
|
+
* `dropRest` (pagehide, destroy); otherwise they stay queued.
|
|
2513
|
+
*/
|
|
2514
|
+
private sendUnloadProbes;
|
|
2387
2515
|
private scheduleAfterEnqueue;
|
|
2388
2516
|
/**
|
|
2389
2517
|
* Whether this event completes one of the configured priority flow types. Only the two flow
|
|
@@ -2470,6 +2598,10 @@ declare class RequestQueue {
|
|
|
2470
2598
|
*/
|
|
2471
2599
|
flushKeepalive(reason?: FlushReason): void;
|
|
2472
2600
|
private flushSync;
|
|
2601
|
+
/** The event part of the unload flush; returns the serialized size of what it sent (0 = nothing). */
|
|
2602
|
+
private flushSyncEvents;
|
|
2603
|
+
/** Serialized batch size for the unload budget; on failure assume the whole budget was used. */
|
|
2604
|
+
private approximateSize;
|
|
2473
2605
|
/**
|
|
2474
2606
|
* Error situations:
|
|
2475
2607
|
* - Timer clearance or event listener removal throws: log "Failed to destroy queue lifecycle hooks"
|
|
@@ -2730,4 +2862,4 @@ declare function logInfo(message: string): void;
|
|
|
2730
2862
|
declare function logError(message: string): void;
|
|
2731
2863
|
declare function destroy(): Promise<void>;
|
|
2732
2864
|
|
|
2733
|
-
export { type AppConfirmationOperationCeremonyTypedError, type AppConfirmationOperationConfig, AppConfirmationOperationFull, type AppConfirmationOperationRetryReason, type AppConfirmationOperationSpecType, type AppConfirmationOperationStart, type AuthDecisionFinished, type AuthDecisionStarted, AuthEventName, type AuthMethodDecisionFinished, type AuthMethodDecisionStarted, type AuthMethodType, type BaseEvent, CEREMONY_LOW_EVENT_TAIL_MS, CONFIG_BOUNDS, CONFIG_REQUEST_HEADER, CONFIG_STORAGE_KEY, type CaptchaOperationConfig, CaptchaOperationFull, type CaptchaOperationSpecType, type ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_DEVICE_INFO_COLLECTOR_TIMEOUT_MS, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG, DEFAULT_SEQ_LOCK_TIMEOUT_MS, DEFAULT_SESSION_INACTIVITY_MS, type DeviceInfo, type DeviceInfoCollectionError, type DeviceInfoDataWeb, type DeviceType, type EmailLinkContinuationConfig, EmailLinkContinuationOperation, type EmailLinkOperationConfig, EmailLinkOperationFull, type EmailLinkOperationPostResponseStart, type EmailLinkOperationSendStart, type EmailLinkOperationSpecType, type EmailOTPOperationConfig, type EmailOTPOperationPostResponseStart, type EmailOTPOperationSendOTPStart, type EmailOTPOperationSpecType, EmailOtpOperationFull, type ErrorStepOptions, type Event, type EventBatch, type EventBatchMeta, type EventMeta, EventStore, type EventType, type FlowAutoFinished, type FlowDecided, type FlowFinished, type FlowHandle, type FlowReset, type FlowStarted, type FlowType, type FlushReason, type JavaScriptHighEntropy, type KeyOperationConfig, KeyRegistrationOperationFull, KeySigningOperationFull, LocalStorage, type Logger, type LowEvent, type LowEventFieldRole, type LowEventInitiator, type LowEventInputEffect, type LowEventSourceKind, type MultiFlowReset, type MultiFlowStarted, NamespacedStorage, type NormalizedError, OUTBOX_LOCK_NAME, OUTBOX_STORAGE_KEY, type ObserveSdkConfigSnapshot, OperationFull, OperationFullProvideIdentifierWithCUI, type OperationFullProvideIdentifierWithCUIConfig, type OutboxEntry, type PasskeyEnrollmentCeremonyFinished, type PasskeyEnrollmentCeremonyStart, type PasskeyEnrollmentGetOptionsFinished, type PasskeyEnrollmentGetOptionsStart, type PasskeyEnrollmentOperationConfig, PasskeyEnrollmentOperationFull, type PasskeyEnrollmentPostResponseStart, type PasskeyLoginCUIGetOptionsFinished, type PasskeyLoginCUIGetOptionsStart, type PasskeyLoginCUISpecType, type PasskeyLoginCeremonyFinished, type PasskeyLoginCeremonyStart, type PasskeyLoginClientError, type PasskeyLoginFinish, type PasskeyLoginGetOptionsFinished, type PasskeyLoginGetOptionsStart, type PasskeyLoginOperationConfig, PasskeyLoginOperationFull, type PasskeyLoginPostResponseStart, type PasskeyLoginStartable, type PasskeyLoginSubmitted, type PasskeyOperationEnrollmentExplicitSpecType, type PasskeyOperationLoginExplicitSpecType, type PasswordEnrollmentConfig, PasswordEnrollmentOperationFull, type PasswordEnrollmentTypedError, type PasswordLoginCUICeremonyStart, type PasswordLoginCUIGetOptionsFinished, type PasswordLoginCUIGetOptionsStart, type PasswordLoginCUISpecType, type PasswordLoginCUITypedError, type PasswordLoginConfig, type PasswordLoginExplicitSpecType, PasswordLoginOperationFull, type PasswordLoginTypedError, type PasswordManagerExtension, type PasswordManagerExtensionName, type PredefinedEvent, type ProvideDataOperationConfig, ProvideDataOperationFull, type ProvideDataOperationPostResponseStart, type ProvideDataOperationSpecType, type ProvideDataOperationStart, type ProvideIdentifierError, type ProvideIdentifierFinish, type ProvideIdentifierPostResponseStart, type ProvideIdentifierSpecType, type ProvideIdentifierStart, type QueueOptions, RAW_ERROR_BOUNDS, type RawErrorEnvelope, RequestQueue, SDK_NAME, SDK_VERSION, type SdkInfo, type SdkReliabilityConfig, type SdkReliabilityConfigOverrides, type SdkRetryConfig, type SerializeRawErrorOptions, SessionStorage, type SetFlowTagsOptions, type SmsOTPOperationConfig, type SmsOTPOperationPostResponseStart, type SmsOTPOperationSpecType, SmsOtpOperationFull, type SocialLoginExchangeCodeFinished, type SocialLoginExchangeCodeStart, type SocialLoginGetRedirectUrlFinished, type SocialLoginGetRedirectUrlStart, type SocialLoginOperationConfig, SocialLoginOperationFull, type SocialLoginProviderType, type SocialLoginSpecType, type SourcePathQueryMode, type SsoLoginExchangeCodeFinished, type SsoLoginExchangeCodeStart, type SsoLoginGetRedirectUrlFinished, type SsoLoginGetRedirectUrlStart, type SsoLoginOperationConfig, SsoLoginOperationFull, type SsoLoginSpecType, type StepHelper, type StepIdentifier, type StepOptions, type StorageEngine, type SubflowTrigger, type SubflowType, type TelemetryEntry, type TelemetryLevel, type TelemetrySink, type TotpOperationConfig, TotpOperationFull, type TotpOperationPostResponseStart, type TotpOperationSpecType, type TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type TrustedDeviceBindingMetadata, type TrustedDeviceCheckConfig, TrustedDeviceCheckOperationFull, type TrustedDeviceCheckResult, type TrustedDeviceCheckStepResult, type TrustedDeviceCheckTypedError, TrustedDeviceEnrollmentOperationFull, type TrustedDeviceEnrollmentResult, type TrustedDeviceOperationConfig, type TrustedDevicePurpose, type TrustedDeviceStorage, type UserReference, type WebAuthnIdentifierProjector, type WebAuthnIdentifierProjectors, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, detectPasswordManagerExtensions, getExperiments, getSessionId, getTracker, init, loadCachedConfig, logError, logInfo, namespacedKey, parseReliabilityConfig, resetSession, resolveRawErrorLimits, resolveReliabilityConfig, sanitizeAssertionResponse, sanitizeCreationOptions, sanitizeCreationResponse, sanitizeRequestOptions, serializeRawError, setExperiment, setExperiments, setFlowTags, setUser, telemetry };
|
|
2865
|
+
export { type AppConfirmationOperationCeremonyTypedError, type AppConfirmationOperationConfig, AppConfirmationOperationFull, type AppConfirmationOperationRetryReason, type AppConfirmationOperationSpecType, type AppConfirmationOperationStart, type AuthDecisionFinished, type AuthDecisionStarted, AuthEventName, type AuthMethodDecisionFinished, type AuthMethodDecisionStarted, type AuthMethodType, type BaseEvent, CEREMONY_LOW_EVENT_TAIL_MS, CONFIG_BOUNDS, CONFIG_REQUEST_HEADER, CONFIG_STORAGE_KEY, type CaptchaOperationConfig, CaptchaOperationFull, type CaptchaOperationSpecType, type ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_DEVICE_INFO_COLLECTOR_TIMEOUT_MS, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG, DEFAULT_SEQ_LOCK_TIMEOUT_MS, DEFAULT_SESSION_INACTIVITY_MS, type DeviceInfo, type DeviceInfoCollectionError, type DeviceInfoDataWeb, type DeviceType, type EmailLinkContinuationConfig, EmailLinkContinuationOperation, type EmailLinkOperationConfig, EmailLinkOperationFull, type EmailLinkOperationPostResponseStart, type EmailLinkOperationSendStart, type EmailLinkOperationSpecType, type EmailOTPOperationConfig, type EmailOTPOperationPostResponseStart, type EmailOTPOperationSendOTPStart, type EmailOTPOperationSpecType, EmailOtpOperationFull, type ErrorStepOptions, type Event, type EventBatch, type EventBatchMeta, type EventMeta, EventStore, type EventType, type FlowAutoFinished, type FlowDecided, type FlowFinished, type FlowHandle, type FlowReset, type FlowStarted, type FlowType, type FlushReason, type JavaScriptHighEntropy, type KeyOperationConfig, KeyRegistrationOperationFull, KeySigningOperationFull, LocalStorage, type Logger, type LowEvent, type LowEventFieldRole, type LowEventInitiator, type LowEventInputEffect, type LowEventSourceKind, type MultiFlowReset, type MultiFlowStarted, NamespacedStorage, type NormalizedError, OUTBOX_LOCK_NAME, OUTBOX_STORAGE_KEY, type ObserveSdkConfigSnapshot, OperationFull, OperationFullProvideIdentifierWithCUI, type OperationFullProvideIdentifierWithCUIConfig, type OutboxEntry, PROBE_BATCH_MAX_BYTES, PROBE_BATCH_MAX_ITEMS, PROBE_PAYLOAD_MAX_BYTES, PROBE_QUEUE_MAX_BYTES, PROBE_QUEUE_MAX_ITEMS, type PasskeyEnrollmentCeremonyFinished, type PasskeyEnrollmentCeremonyStart, type PasskeyEnrollmentGetOptionsFinished, type PasskeyEnrollmentGetOptionsStart, type PasskeyEnrollmentOperationConfig, PasskeyEnrollmentOperationFull, type PasskeyEnrollmentPostResponseStart, type PasskeyLoginCUIGetOptionsFinished, type PasskeyLoginCUIGetOptionsStart, type PasskeyLoginCUISpecType, type PasskeyLoginCeremonyFinished, type PasskeyLoginCeremonyStart, type PasskeyLoginClientError, type PasskeyLoginFinish, type PasskeyLoginGetOptionsFinished, type PasskeyLoginGetOptionsStart, type PasskeyLoginOperationConfig, PasskeyLoginOperationFull, type PasskeyLoginPostResponseStart, type PasskeyLoginStartable, type PasskeyLoginSubmitted, type PasskeyOperationEnrollmentExplicitSpecType, type PasskeyOperationLoginExplicitSpecType, type PasswordEnrollmentConfig, PasswordEnrollmentOperationFull, type PasswordEnrollmentTypedError, type PasswordLoginCUICeremonyStart, type PasswordLoginCUIGetOptionsFinished, type PasswordLoginCUIGetOptionsStart, type PasswordLoginCUISpecType, type PasswordLoginCUITypedError, type PasswordLoginConfig, type PasswordLoginExplicitSpecType, PasswordLoginOperationFull, type PasswordLoginTypedError, type PasswordManagerExtension, type PasswordManagerExtensionName, type PredefinedEvent, type ProbeContext, type ProbeEntry, type ProbeInput, type ProvideDataOperationConfig, ProvideDataOperationFull, type ProvideDataOperationPostResponseStart, type ProvideDataOperationSpecType, type ProvideDataOperationStart, type ProvideIdentifierError, type ProvideIdentifierFinish, type ProvideIdentifierPostResponseStart, type ProvideIdentifierSpecType, type ProvideIdentifierStart, type QueueOptions, RAW_ERROR_BOUNDS, type RawErrorEnvelope, RequestQueue, SDK_NAME, SDK_VERSION, type SdkInfo, type SdkReliabilityConfig, type SdkReliabilityConfigOverrides, type SdkRetryConfig, type SerializeRawErrorOptions, SessionStorage, type SetFlowTagsOptions, type SmsOTPOperationConfig, type SmsOTPOperationPostResponseStart, type SmsOTPOperationSpecType, SmsOtpOperationFull, type SocialLoginExchangeCodeFinished, type SocialLoginExchangeCodeStart, type SocialLoginGetRedirectUrlFinished, type SocialLoginGetRedirectUrlStart, type SocialLoginOperationConfig, SocialLoginOperationFull, type SocialLoginProviderType, type SocialLoginSpecType, type SourcePathQueryMode, type SsoLoginExchangeCodeFinished, type SsoLoginExchangeCodeStart, type SsoLoginGetRedirectUrlFinished, type SsoLoginGetRedirectUrlStart, type SsoLoginOperationConfig, SsoLoginOperationFull, type SsoLoginSpecType, type StepHelper, type StepIdentifier, type StepOptions, type StorageEngine, type SubflowTrigger, type SubflowType, type TelemetryEntry, type TelemetryLevel, type TelemetrySink, type TotpOperationConfig, TotpOperationFull, type TotpOperationPostResponseStart, type TotpOperationSpecType, type TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type TrustedDeviceBindingMetadata, type TrustedDeviceCheckConfig, TrustedDeviceCheckOperationFull, type TrustedDeviceCheckResult, type TrustedDeviceCheckStepResult, type TrustedDeviceCheckTypedError, TrustedDeviceEnrollmentOperationFull, type TrustedDeviceEnrollmentResult, type TrustedDeviceOperationConfig, type TrustedDevicePurpose, type TrustedDeviceStorage, UNLOAD_BUDGET_BYTES, UNLOAD_PROBE_MAX_BYTES, type UserReference, type WebAuthnIdentifierProjector, type WebAuthnIdentifierProjectors, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, detectPasswordManagerExtensions, getExperiments, getSessionId, getTracker, init, loadCachedConfig, logError, logInfo, namespacedKey, parseReliabilityConfig, resetSession, resolveRawErrorLimits, resolveReliabilityConfig, sanitizeAssertionResponse, sanitizeCreationOptions, sanitizeCreationResponse, sanitizeRequestOptions, serializeRawError, setExperiment, setExperiments, setFlowTags, setUser, telemetry, utf8Length };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ declare function detectPasswordManagerExtensions(): PasswordManagerExtension[];
|
|
|
29
29
|
interface SdkInfo {
|
|
30
30
|
name: string;
|
|
31
31
|
version: string;
|
|
32
|
+
/**
|
|
33
|
+
* Version of the integration driving the SDK (e.g. an autocapture bundle), from
|
|
34
|
+
* `TrackerOptions.integrationVersion`. Omitted when not set or not a short version-like string.
|
|
35
|
+
*/
|
|
36
|
+
integrationVersion?: string;
|
|
32
37
|
}
|
|
33
38
|
type EventType = "predefined" | "custom" | "error" | "identify";
|
|
34
39
|
type AuthMethodType = "identifier-email"
|
|
@@ -45,7 +50,7 @@ type SetFlowTagsOptions = {
|
|
|
45
50
|
expandToFollowing?: boolean;
|
|
46
51
|
};
|
|
47
52
|
type ProvideIdentifierSpecType = "email" | "phone" | "username";
|
|
48
|
-
type SocialLoginProviderType = "google" | "apple" | "facebook" | "github" | "microsoft" | "line" | "kakao" | "singpass" | "other";
|
|
53
|
+
type SocialLoginProviderType = "google" | "apple" | "facebook" | "github" | "microsoft" | "line" | "kakao" | "singpass" | "naver" | "yahoo" | "other";
|
|
49
54
|
declare enum AuthEventName {
|
|
50
55
|
FlowStarted = "flow_started",
|
|
51
56
|
FlowDecided = "flow_decided",
|
|
@@ -302,6 +307,52 @@ interface TelemetryEntry {
|
|
|
302
307
|
/** Capture time, unix ms. */
|
|
303
308
|
ts: number;
|
|
304
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Context stamped on a probe item: the integration's current state / flow type / step (each ≤ 64 chars).
|
|
312
|
+
*
|
|
313
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
314
|
+
*/
|
|
315
|
+
interface ProbeContext {
|
|
316
|
+
state?: string;
|
|
317
|
+
flowType?: string;
|
|
318
|
+
step?: string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Input of {@link CorbadoTracker.probe}.
|
|
322
|
+
*
|
|
323
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
324
|
+
*/
|
|
325
|
+
interface ProbeInput {
|
|
326
|
+
/** Item kind, `^[a-z][a-z0-9_-]{0,31}$` (e.g. `ui`, `act`, `net`, `page`, `snapshot`). */
|
|
327
|
+
kind: string;
|
|
328
|
+
/** Already redacted JSON object or array; serialized ≤ 16384 bytes, larger items are dropped. */
|
|
329
|
+
payload: Record<string, unknown> | unknown[];
|
|
330
|
+
/** `^[A-Za-z0-9_-]{1,16}$`; defaults to one random id per tracker instance (page). */
|
|
331
|
+
pageId?: string;
|
|
332
|
+
/** Probe config hash, `^[A-Za-z0-9_-]{1,16}$`. */
|
|
333
|
+
cfg?: string;
|
|
334
|
+
ctx?: ProbeContext;
|
|
335
|
+
/** Capture time, unix ms; defaults to now. */
|
|
336
|
+
ts?: number;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* A probe item on the wire (`probes` array of the events endpoint payload).
|
|
340
|
+
*
|
|
341
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
342
|
+
*/
|
|
343
|
+
interface ProbeEntry {
|
|
344
|
+
/** Client-generated idempotency id (uuidv7); kept across retries. */
|
|
345
|
+
id: string;
|
|
346
|
+
kind: string;
|
|
347
|
+
/** Capture time, unix ms. */
|
|
348
|
+
ts: number;
|
|
349
|
+
pageId: string;
|
|
350
|
+
/** Per `pageId`, starting at 0; gaps mean loss. */
|
|
351
|
+
seq: number;
|
|
352
|
+
cfg?: string;
|
|
353
|
+
ctx?: ProbeContext;
|
|
354
|
+
payload: Record<string, unknown> | unknown[];
|
|
355
|
+
}
|
|
305
356
|
/**
|
|
306
357
|
* Why a delivery attempt happened. Each value maps 1:1 to one flush trigger, so server-side
|
|
307
358
|
* analyses can tell which triggers actually carry the traffic and whether the trigger switches and
|
|
@@ -365,6 +416,8 @@ interface EventBatch {
|
|
|
365
416
|
sdk: SdkInfo;
|
|
366
417
|
lows?: LowEvent[];
|
|
367
418
|
telemetry?: TelemetryEntry[];
|
|
419
|
+
/** Probe items (internal diagnostics captured by autocapture bundles); a batch may carry probes only. */
|
|
420
|
+
probes?: ProbeEntry[];
|
|
368
421
|
meta?: EventBatchMeta;
|
|
369
422
|
}
|
|
370
423
|
type DeviceType = "web" | "app" | "other";
|
|
@@ -1554,6 +1607,12 @@ interface TrackerOptions {
|
|
|
1554
1607
|
* sent as `meta.dataPolicy` on every batch (see {@link CorbadoTracker.setDataPolicy}).
|
|
1555
1608
|
*/
|
|
1556
1609
|
dataPolicy?: number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Version of the integration that drives the SDK (e.g. an autocapture bundle `"1.1.22"`), sent as
|
|
1612
|
+
* `sdk.integrationVersion` on every batch so analyses can cohort sessions by integration version.
|
|
1613
|
+
* At most 32 characters of `[0-9A-Za-z.+_-]`; any other value is ignored (logged in debug mode).
|
|
1614
|
+
*/
|
|
1615
|
+
integrationVersion?: string;
|
|
1557
1616
|
applicationId?: string;
|
|
1558
1617
|
/**
|
|
1559
1618
|
* @deprecated The flush interval is server-controlled via the SDK reliability config
|
|
@@ -1604,6 +1663,9 @@ declare class CorbadoTracker {
|
|
|
1604
1663
|
private telemetryReady;
|
|
1605
1664
|
private readonly reportedTelemetryKeys;
|
|
1606
1665
|
private pendingSelfTelemetry;
|
|
1666
|
+
/** Default probe page id (one per tracker instance) and the probe seq counter per page id. */
|
|
1667
|
+
private probePageId?;
|
|
1668
|
+
private readonly probeSeqs;
|
|
1607
1669
|
private windowObserver?;
|
|
1608
1670
|
private passwordManagerSampler?;
|
|
1609
1671
|
/** @internal Shared passive page observation and per-operation context registration. */
|
|
@@ -2013,6 +2075,21 @@ declare class CorbadoTracker {
|
|
|
2013
2075
|
* PII — telemetry is for diagnostics only. Like all SDK entry points, this never throws.
|
|
2014
2076
|
*/
|
|
2015
2077
|
telemetry(level: TelemetryLevel, message: string): void;
|
|
2078
|
+
/**
|
|
2079
|
+
* Queue a probe item (diagnostic capture produced by a Corbado autocapture bundle).
|
|
2080
|
+
*
|
|
2081
|
+
* @remarks
|
|
2082
|
+
* The SDK fills `id` (uuidv7), `seq` (per `pageId`), `pageId` (default: one random id per tracker
|
|
2083
|
+
* instance) and `ts` (default: now). Items are held in memory only (never the durable outbox) and
|
|
2084
|
+
* ride the regular batches; they are the lowest priority at page unload. Invalid input is dropped.
|
|
2085
|
+
* The payload must already be redacted. Blocked user agents are skipped. Never throws.
|
|
2086
|
+
*
|
|
2087
|
+
* @experimental Internal: used by Corbado autocapture bundles. Not part of the documented API.
|
|
2088
|
+
* @internal
|
|
2089
|
+
*/
|
|
2090
|
+
probe(input: ProbeInput): void;
|
|
2091
|
+
private defaultProbePageId;
|
|
2092
|
+
private nextProbeSeq;
|
|
2016
2093
|
/** Convenience wrapper for {@link CorbadoTracker.telemetry} at `info` level. */
|
|
2017
2094
|
logInfo(message: string): void;
|
|
2018
2095
|
/** Convenience wrapper for {@link CorbadoTracker.telemetry} at `error` level. */
|
|
@@ -2259,6 +2336,23 @@ interface TransportOptions {
|
|
|
2259
2336
|
headers?: Record<string, string>;
|
|
2260
2337
|
}
|
|
2261
2338
|
|
|
2339
|
+
/** In-memory probe queue caps (oldest items are dropped beyond them). */
|
|
2340
|
+
declare const PROBE_QUEUE_MAX_ITEMS = 500;
|
|
2341
|
+
declare const PROBE_QUEUE_MAX_BYTES: number;
|
|
2342
|
+
/** Per-request probe caps (the server keeps at most 200 probe items per batch). */
|
|
2343
|
+
declare const PROBE_BATCH_MAX_ITEMS = 200;
|
|
2344
|
+
declare const PROBE_BATCH_MAX_BYTES: number;
|
|
2345
|
+
/** Serialized payload cap per probe item (server rule). */
|
|
2346
|
+
declare const PROBE_PAYLOAD_MAX_BYTES: number;
|
|
2347
|
+
/**
|
|
2348
|
+
* Unload request budget shared by the event beacon and the probe beacon that follows it: unload
|
|
2349
|
+
* transports share a ~64 KB in-flight budget per page (same limit as the fetch keepalive cap).
|
|
2350
|
+
*/
|
|
2351
|
+
declare const UNLOAD_BUDGET_BYTES = 60000;
|
|
2352
|
+
/** Absolute cap of the probe request at pagehide / destroy. */
|
|
2353
|
+
declare const UNLOAD_PROBE_MAX_BYTES = 32000;
|
|
2354
|
+
/** UTF-8 byte length of a string (no TextEncoder dependency). */
|
|
2355
|
+
declare function utf8Length(text: string): number;
|
|
2262
2356
|
interface QueueOptions {
|
|
2263
2357
|
/**
|
|
2264
2358
|
* Maximum number of events per request (payload cap). A backlog larger than this is drained in
|
|
@@ -2324,6 +2418,16 @@ declare class RequestQueue {
|
|
|
2324
2418
|
* the flush timer (it piggybacks), unless `config.flushOnTelemetry` escalates to an immediate flush.
|
|
2325
2419
|
*/
|
|
2326
2420
|
private telemetryQueue;
|
|
2421
|
+
/**
|
|
2422
|
+
* Probe items (`tracker.probe()`): in memory only — never the durable outbox — capped by
|
|
2423
|
+
* {@link PROBE_QUEUE_MAX_ITEMS} / {@link PROBE_QUEUE_MAX_BYTES}. They arm the flush timer, ride
|
|
2424
|
+
* the regular batches (probe-only batches allowed), retry under `config.retry`, and are the lowest
|
|
2425
|
+
* priority at unload (a separate request after the event request, within the remaining budget).
|
|
2426
|
+
*/
|
|
2427
|
+
private probeQueue;
|
|
2428
|
+
private probeBytes;
|
|
2429
|
+
/** Probe items dropped on this load (caps, permanent rejection, exhausted retries, unload budget). */
|
|
2430
|
+
private probesDropped;
|
|
2327
2431
|
private timer;
|
|
2328
2432
|
private isFlushing;
|
|
2329
2433
|
private flushingDone?;
|
|
@@ -2384,6 +2488,30 @@ declare class RequestQueue {
|
|
|
2384
2488
|
* - Any error while enqueueing or triggering the flush: log "Failed to enqueue telemetry"
|
|
2385
2489
|
*/
|
|
2386
2490
|
enqueueTelemetry(entry: TelemetryEntry): void;
|
|
2491
|
+
/**
|
|
2492
|
+
* Queue a probe item (in memory only). The payload is snapshotted (serialized once) so later host
|
|
2493
|
+
* mutations cannot change it; items over {@link PROBE_PAYLOAD_MAX_BYTES} are dropped, and the
|
|
2494
|
+
* oldest items are dropped beyond the queue caps. Arms the normal flush timer.
|
|
2495
|
+
*
|
|
2496
|
+
* Error situations:
|
|
2497
|
+
* - Any error while enqueueing or scheduling the flush timer: log "Failed to enqueue probe"
|
|
2498
|
+
*/
|
|
2499
|
+
enqueueProbe(entry: ProbeEntry, capturedSessionId?: string): void;
|
|
2500
|
+
/** Number of probe items dropped on this load (diagnostics / tests). */
|
|
2501
|
+
droppedProbeCount(): number;
|
|
2502
|
+
private dueProbes;
|
|
2503
|
+
/** Oldest-first selection for one session, within an item and byte cap (at least one item when any fits the item cap). */
|
|
2504
|
+
private selectProbes;
|
|
2505
|
+
private removeProbes;
|
|
2506
|
+
private dropProbes;
|
|
2507
|
+
/** Same policy as events: 2xx delivered, non-retryable dropped, retryable backed off up to `config.retry.maxAttempts`. */
|
|
2508
|
+
private handleProbeSendResult;
|
|
2509
|
+
/**
|
|
2510
|
+
* Unload / final teardown: one probe-only request for the current session within `budget` bytes,
|
|
2511
|
+
* sent after the event request so the events' delivery is unaffected. Leftovers are dropped when
|
|
2512
|
+
* `dropRest` (pagehide, destroy); otherwise they stay queued.
|
|
2513
|
+
*/
|
|
2514
|
+
private sendUnloadProbes;
|
|
2387
2515
|
private scheduleAfterEnqueue;
|
|
2388
2516
|
/**
|
|
2389
2517
|
* Whether this event completes one of the configured priority flow types. Only the two flow
|
|
@@ -2470,6 +2598,10 @@ declare class RequestQueue {
|
|
|
2470
2598
|
*/
|
|
2471
2599
|
flushKeepalive(reason?: FlushReason): void;
|
|
2472
2600
|
private flushSync;
|
|
2601
|
+
/** The event part of the unload flush; returns the serialized size of what it sent (0 = nothing). */
|
|
2602
|
+
private flushSyncEvents;
|
|
2603
|
+
/** Serialized batch size for the unload budget; on failure assume the whole budget was used. */
|
|
2604
|
+
private approximateSize;
|
|
2473
2605
|
/**
|
|
2474
2606
|
* Error situations:
|
|
2475
2607
|
* - Timer clearance or event listener removal throws: log "Failed to destroy queue lifecycle hooks"
|
|
@@ -2730,4 +2862,4 @@ declare function logInfo(message: string): void;
|
|
|
2730
2862
|
declare function logError(message: string): void;
|
|
2731
2863
|
declare function destroy(): Promise<void>;
|
|
2732
2864
|
|
|
2733
|
-
export { type AppConfirmationOperationCeremonyTypedError, type AppConfirmationOperationConfig, AppConfirmationOperationFull, type AppConfirmationOperationRetryReason, type AppConfirmationOperationSpecType, type AppConfirmationOperationStart, type AuthDecisionFinished, type AuthDecisionStarted, AuthEventName, type AuthMethodDecisionFinished, type AuthMethodDecisionStarted, type AuthMethodType, type BaseEvent, CEREMONY_LOW_EVENT_TAIL_MS, CONFIG_BOUNDS, CONFIG_REQUEST_HEADER, CONFIG_STORAGE_KEY, type CaptchaOperationConfig, CaptchaOperationFull, type CaptchaOperationSpecType, type ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_DEVICE_INFO_COLLECTOR_TIMEOUT_MS, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG, DEFAULT_SEQ_LOCK_TIMEOUT_MS, DEFAULT_SESSION_INACTIVITY_MS, type DeviceInfo, type DeviceInfoCollectionError, type DeviceInfoDataWeb, type DeviceType, type EmailLinkContinuationConfig, EmailLinkContinuationOperation, type EmailLinkOperationConfig, EmailLinkOperationFull, type EmailLinkOperationPostResponseStart, type EmailLinkOperationSendStart, type EmailLinkOperationSpecType, type EmailOTPOperationConfig, type EmailOTPOperationPostResponseStart, type EmailOTPOperationSendOTPStart, type EmailOTPOperationSpecType, EmailOtpOperationFull, type ErrorStepOptions, type Event, type EventBatch, type EventBatchMeta, type EventMeta, EventStore, type EventType, type FlowAutoFinished, type FlowDecided, type FlowFinished, type FlowHandle, type FlowReset, type FlowStarted, type FlowType, type FlushReason, type JavaScriptHighEntropy, type KeyOperationConfig, KeyRegistrationOperationFull, KeySigningOperationFull, LocalStorage, type Logger, type LowEvent, type LowEventFieldRole, type LowEventInitiator, type LowEventInputEffect, type LowEventSourceKind, type MultiFlowReset, type MultiFlowStarted, NamespacedStorage, type NormalizedError, OUTBOX_LOCK_NAME, OUTBOX_STORAGE_KEY, type ObserveSdkConfigSnapshot, OperationFull, OperationFullProvideIdentifierWithCUI, type OperationFullProvideIdentifierWithCUIConfig, type OutboxEntry, type PasskeyEnrollmentCeremonyFinished, type PasskeyEnrollmentCeremonyStart, type PasskeyEnrollmentGetOptionsFinished, type PasskeyEnrollmentGetOptionsStart, type PasskeyEnrollmentOperationConfig, PasskeyEnrollmentOperationFull, type PasskeyEnrollmentPostResponseStart, type PasskeyLoginCUIGetOptionsFinished, type PasskeyLoginCUIGetOptionsStart, type PasskeyLoginCUISpecType, type PasskeyLoginCeremonyFinished, type PasskeyLoginCeremonyStart, type PasskeyLoginClientError, type PasskeyLoginFinish, type PasskeyLoginGetOptionsFinished, type PasskeyLoginGetOptionsStart, type PasskeyLoginOperationConfig, PasskeyLoginOperationFull, type PasskeyLoginPostResponseStart, type PasskeyLoginStartable, type PasskeyLoginSubmitted, type PasskeyOperationEnrollmentExplicitSpecType, type PasskeyOperationLoginExplicitSpecType, type PasswordEnrollmentConfig, PasswordEnrollmentOperationFull, type PasswordEnrollmentTypedError, type PasswordLoginCUICeremonyStart, type PasswordLoginCUIGetOptionsFinished, type PasswordLoginCUIGetOptionsStart, type PasswordLoginCUISpecType, type PasswordLoginCUITypedError, type PasswordLoginConfig, type PasswordLoginExplicitSpecType, PasswordLoginOperationFull, type PasswordLoginTypedError, type PasswordManagerExtension, type PasswordManagerExtensionName, type PredefinedEvent, type ProvideDataOperationConfig, ProvideDataOperationFull, type ProvideDataOperationPostResponseStart, type ProvideDataOperationSpecType, type ProvideDataOperationStart, type ProvideIdentifierError, type ProvideIdentifierFinish, type ProvideIdentifierPostResponseStart, type ProvideIdentifierSpecType, type ProvideIdentifierStart, type QueueOptions, RAW_ERROR_BOUNDS, type RawErrorEnvelope, RequestQueue, SDK_NAME, SDK_VERSION, type SdkInfo, type SdkReliabilityConfig, type SdkReliabilityConfigOverrides, type SdkRetryConfig, type SerializeRawErrorOptions, SessionStorage, type SetFlowTagsOptions, type SmsOTPOperationConfig, type SmsOTPOperationPostResponseStart, type SmsOTPOperationSpecType, SmsOtpOperationFull, type SocialLoginExchangeCodeFinished, type SocialLoginExchangeCodeStart, type SocialLoginGetRedirectUrlFinished, type SocialLoginGetRedirectUrlStart, type SocialLoginOperationConfig, SocialLoginOperationFull, type SocialLoginProviderType, type SocialLoginSpecType, type SourcePathQueryMode, type SsoLoginExchangeCodeFinished, type SsoLoginExchangeCodeStart, type SsoLoginGetRedirectUrlFinished, type SsoLoginGetRedirectUrlStart, type SsoLoginOperationConfig, SsoLoginOperationFull, type SsoLoginSpecType, type StepHelper, type StepIdentifier, type StepOptions, type StorageEngine, type SubflowTrigger, type SubflowType, type TelemetryEntry, type TelemetryLevel, type TelemetrySink, type TotpOperationConfig, TotpOperationFull, type TotpOperationPostResponseStart, type TotpOperationSpecType, type TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type TrustedDeviceBindingMetadata, type TrustedDeviceCheckConfig, TrustedDeviceCheckOperationFull, type TrustedDeviceCheckResult, type TrustedDeviceCheckStepResult, type TrustedDeviceCheckTypedError, TrustedDeviceEnrollmentOperationFull, type TrustedDeviceEnrollmentResult, type TrustedDeviceOperationConfig, type TrustedDevicePurpose, type TrustedDeviceStorage, type UserReference, type WebAuthnIdentifierProjector, type WebAuthnIdentifierProjectors, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, detectPasswordManagerExtensions, getExperiments, getSessionId, getTracker, init, loadCachedConfig, logError, logInfo, namespacedKey, parseReliabilityConfig, resetSession, resolveRawErrorLimits, resolveReliabilityConfig, sanitizeAssertionResponse, sanitizeCreationOptions, sanitizeCreationResponse, sanitizeRequestOptions, serializeRawError, setExperiment, setExperiments, setFlowTags, setUser, telemetry };
|
|
2865
|
+
export { type AppConfirmationOperationCeremonyTypedError, type AppConfirmationOperationConfig, AppConfirmationOperationFull, type AppConfirmationOperationRetryReason, type AppConfirmationOperationSpecType, type AppConfirmationOperationStart, type AuthDecisionFinished, type AuthDecisionStarted, AuthEventName, type AuthMethodDecisionFinished, type AuthMethodDecisionStarted, type AuthMethodType, type BaseEvent, CEREMONY_LOW_EVENT_TAIL_MS, CONFIG_BOUNDS, CONFIG_REQUEST_HEADER, CONFIG_STORAGE_KEY, type CaptchaOperationConfig, CaptchaOperationFull, type CaptchaOperationSpecType, type ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_DEVICE_INFO_COLLECTOR_TIMEOUT_MS, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG, DEFAULT_SEQ_LOCK_TIMEOUT_MS, DEFAULT_SESSION_INACTIVITY_MS, type DeviceInfo, type DeviceInfoCollectionError, type DeviceInfoDataWeb, type DeviceType, type EmailLinkContinuationConfig, EmailLinkContinuationOperation, type EmailLinkOperationConfig, EmailLinkOperationFull, type EmailLinkOperationPostResponseStart, type EmailLinkOperationSendStart, type EmailLinkOperationSpecType, type EmailOTPOperationConfig, type EmailOTPOperationPostResponseStart, type EmailOTPOperationSendOTPStart, type EmailOTPOperationSpecType, EmailOtpOperationFull, type ErrorStepOptions, type Event, type EventBatch, type EventBatchMeta, type EventMeta, EventStore, type EventType, type FlowAutoFinished, type FlowDecided, type FlowFinished, type FlowHandle, type FlowReset, type FlowStarted, type FlowType, type FlushReason, type JavaScriptHighEntropy, type KeyOperationConfig, KeyRegistrationOperationFull, KeySigningOperationFull, LocalStorage, type Logger, type LowEvent, type LowEventFieldRole, type LowEventInitiator, type LowEventInputEffect, type LowEventSourceKind, type MultiFlowReset, type MultiFlowStarted, NamespacedStorage, type NormalizedError, OUTBOX_LOCK_NAME, OUTBOX_STORAGE_KEY, type ObserveSdkConfigSnapshot, OperationFull, OperationFullProvideIdentifierWithCUI, type OperationFullProvideIdentifierWithCUIConfig, type OutboxEntry, PROBE_BATCH_MAX_BYTES, PROBE_BATCH_MAX_ITEMS, PROBE_PAYLOAD_MAX_BYTES, PROBE_QUEUE_MAX_BYTES, PROBE_QUEUE_MAX_ITEMS, type PasskeyEnrollmentCeremonyFinished, type PasskeyEnrollmentCeremonyStart, type PasskeyEnrollmentGetOptionsFinished, type PasskeyEnrollmentGetOptionsStart, type PasskeyEnrollmentOperationConfig, PasskeyEnrollmentOperationFull, type PasskeyEnrollmentPostResponseStart, type PasskeyLoginCUIGetOptionsFinished, type PasskeyLoginCUIGetOptionsStart, type PasskeyLoginCUISpecType, type PasskeyLoginCeremonyFinished, type PasskeyLoginCeremonyStart, type PasskeyLoginClientError, type PasskeyLoginFinish, type PasskeyLoginGetOptionsFinished, type PasskeyLoginGetOptionsStart, type PasskeyLoginOperationConfig, PasskeyLoginOperationFull, type PasskeyLoginPostResponseStart, type PasskeyLoginStartable, type PasskeyLoginSubmitted, type PasskeyOperationEnrollmentExplicitSpecType, type PasskeyOperationLoginExplicitSpecType, type PasswordEnrollmentConfig, PasswordEnrollmentOperationFull, type PasswordEnrollmentTypedError, type PasswordLoginCUICeremonyStart, type PasswordLoginCUIGetOptionsFinished, type PasswordLoginCUIGetOptionsStart, type PasswordLoginCUISpecType, type PasswordLoginCUITypedError, type PasswordLoginConfig, type PasswordLoginExplicitSpecType, PasswordLoginOperationFull, type PasswordLoginTypedError, type PasswordManagerExtension, type PasswordManagerExtensionName, type PredefinedEvent, type ProbeContext, type ProbeEntry, type ProbeInput, type ProvideDataOperationConfig, ProvideDataOperationFull, type ProvideDataOperationPostResponseStart, type ProvideDataOperationSpecType, type ProvideDataOperationStart, type ProvideIdentifierError, type ProvideIdentifierFinish, type ProvideIdentifierPostResponseStart, type ProvideIdentifierSpecType, type ProvideIdentifierStart, type QueueOptions, RAW_ERROR_BOUNDS, type RawErrorEnvelope, RequestQueue, SDK_NAME, SDK_VERSION, type SdkInfo, type SdkReliabilityConfig, type SdkReliabilityConfigOverrides, type SdkRetryConfig, type SerializeRawErrorOptions, SessionStorage, type SetFlowTagsOptions, type SmsOTPOperationConfig, type SmsOTPOperationPostResponseStart, type SmsOTPOperationSpecType, SmsOtpOperationFull, type SocialLoginExchangeCodeFinished, type SocialLoginExchangeCodeStart, type SocialLoginGetRedirectUrlFinished, type SocialLoginGetRedirectUrlStart, type SocialLoginOperationConfig, SocialLoginOperationFull, type SocialLoginProviderType, type SocialLoginSpecType, type SourcePathQueryMode, type SsoLoginExchangeCodeFinished, type SsoLoginExchangeCodeStart, type SsoLoginGetRedirectUrlFinished, type SsoLoginGetRedirectUrlStart, type SsoLoginOperationConfig, SsoLoginOperationFull, type SsoLoginSpecType, type StepHelper, type StepIdentifier, type StepOptions, type StorageEngine, type SubflowTrigger, type SubflowType, type TelemetryEntry, type TelemetryLevel, type TelemetrySink, type TotpOperationConfig, TotpOperationFull, type TotpOperationPostResponseStart, type TotpOperationSpecType, type TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type TrustedDeviceBindingMetadata, type TrustedDeviceCheckConfig, TrustedDeviceCheckOperationFull, type TrustedDeviceCheckResult, type TrustedDeviceCheckStepResult, type TrustedDeviceCheckTypedError, TrustedDeviceEnrollmentOperationFull, type TrustedDeviceEnrollmentResult, type TrustedDeviceOperationConfig, type TrustedDevicePurpose, type TrustedDeviceStorage, UNLOAD_BUDGET_BYTES, UNLOAD_PROBE_MAX_BYTES, type UserReference, type WebAuthnIdentifierProjector, type WebAuthnIdentifierProjectors, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, detectPasswordManagerExtensions, getExperiments, getSessionId, getTracker, init, loadCachedConfig, logError, logInfo, namespacedKey, parseReliabilityConfig, resetSession, resolveRawErrorLimits, resolveReliabilityConfig, sanitizeAssertionResponse, sanitizeCreationOptions, sanitizeCreationResponse, sanitizeRequestOptions, serializeRawError, setExperiment, setExperiments, setFlowTags, setUser, telemetry, utf8Length };
|