@corbado/observe 1.5.1 → 1.6.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 +103 -6
- package/dist/index.d.ts +103 -6
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,7 +39,7 @@ type EventType = "predefined" | "custom" | "error" | "identify";
|
|
|
39
39
|
type AuthMethodType = "identifier-email"
|
|
40
40
|
/** Neutral "enter an identifier" choice; the identifier kind is the provide-identifier spec type. */
|
|
41
41
|
| "identifier" | "passkey-login-known-identifier" | "passkey-login-no-identifier" | "passkey-login-cui" | "passkey-login-immediate" | "passkey-enrollment" | "password-login" | "password-login-known-identifier" | "password-login-with-identifier" | "password-enrollment" | "email-otp" | "email-otp-login" | "email-otp-enrollment" | "email-link" | "email-link-login" | "email-link-enrollment" | "sms-otp" | "sms-otp-login" | "sms-otp-enrollment" | "totp" | "totp-login" | "totp-enrollment" | "app-confirmation" | "social-google" | "social-apple" | "social-facebook" | "social-other" | "sso-login" | "reset-flow" | "provide-data";
|
|
42
|
-
type SubflowType = "key-signing" | "key-registration" | "trusted-device-check" | "trusted-device-enrollment" | "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sso-login" | "sms-otp" | "provide-identifier" | "provide-data" | "password-login" | "password-enrollment" | "totp" | "app-confirmation" | "captcha";
|
|
42
|
+
type SubflowType = "key-signing" | "key-registration" | "trusted-device-check" | "trusted-device-enrollment" | "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sso-login" | "sms-otp" | "provide-identifier" | "provide-data" | "form" | "password-login" | "password-enrollment" | "totp" | "app-confirmation" | "captcha";
|
|
43
43
|
type FlowType = "login" | "signup" | "recovery" | "enrollment" | (string & {});
|
|
44
44
|
type SetFlowTagsOptions = {
|
|
45
45
|
/** Flow type to tag; defaults to `"*"` (the innermost open flow of any type). */
|
|
@@ -418,6 +418,11 @@ interface EventBatch {
|
|
|
418
418
|
telemetry?: TelemetryEntry[];
|
|
419
419
|
/** Probe items (internal diagnostics captured by autocapture bundles); a batch may carry probes only. */
|
|
420
420
|
probes?: ProbeEntry[];
|
|
421
|
+
/**
|
|
422
|
+
* A device info snapshot no event of this page carried (e.g. the late privateMode update after the page's
|
|
423
|
+
* last event); a batch may carry only this.
|
|
424
|
+
*/
|
|
425
|
+
deviceInfo?: DeviceInfo;
|
|
421
426
|
meta?: EventBatchMeta;
|
|
422
427
|
}
|
|
423
428
|
type DeviceType = "web" | "app" | "other";
|
|
@@ -569,7 +574,7 @@ interface SdkReliabilityConfig {
|
|
|
569
574
|
* When true (and `telemetry` is enabled), device info collection emits `info` telemetry entries:
|
|
570
575
|
* the fast snapshot's total and per-field durations in milliseconds, the late fields' outcome, the
|
|
571
576
|
* `privateMode` source (cache age, detection duration or timeout) and how the update was delivered
|
|
572
|
-
* (
|
|
577
|
+
* (with an event, or on its own). Defaults to false: this is a diagnostic
|
|
573
578
|
* stream to switch on while investigating slow collection, not something to run permanently.
|
|
574
579
|
*/
|
|
575
580
|
deviceInfoTiming: boolean;
|
|
@@ -1493,6 +1498,45 @@ declare class CaptchaOperationFull extends OperationFull {
|
|
|
1493
1498
|
constructor(tracker: CorbadoTracker, config?: CaptchaOperationConfig);
|
|
1494
1499
|
}
|
|
1495
1500
|
|
|
1501
|
+
type FormOperationConfig = {
|
|
1502
|
+
/**
|
|
1503
|
+
* Stable name of the form, e.g. `"personal-details"`. Identifies the form in the process funnel, so
|
|
1504
|
+
* use the same name for every visit of the same form. The backend normalizes it (lower-case, words
|
|
1505
|
+
* joined by `-`, at most 40 characters), so `"personalDetails"` and `"personal_details"` are one form.
|
|
1506
|
+
* Without a name the form is not counted.
|
|
1507
|
+
*/
|
|
1508
|
+
name: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* Names of the fields the form collects, e.g. `["firstName", "lastName"]`. Names only, never values:
|
|
1511
|
+
* entries outside `[A-Za-z0-9._-]` or longer than 40 characters are dropped, and at most 50 are sent.
|
|
1512
|
+
*/
|
|
1513
|
+
fields?: string[];
|
|
1514
|
+
/**
|
|
1515
|
+
* When the form became visible (epoch ms), if that was earlier than this call — for example when
|
|
1516
|
+
* an integration confirms a screen only after it stayed up for a moment. Must not lie in the future
|
|
1517
|
+
* or more than a minute back; otherwise it is ignored with a warning and the call time is used.
|
|
1518
|
+
*/
|
|
1519
|
+
startedAt?: number;
|
|
1520
|
+
/**
|
|
1521
|
+
* The form's input fields, for low-level interaction signals (focus, typing, paste, autofill —
|
|
1522
|
+
* never values). They make the form's first interaction the first touch of a field rather than its
|
|
1523
|
+
* submit. Rebind with {@link FormOperationFull.setInputFields} when the form renders other fields.
|
|
1524
|
+
*/
|
|
1525
|
+
inputHtmlFields?: HTMLInputElement[];
|
|
1526
|
+
};
|
|
1527
|
+
/** Tracks one form of a process flow from being shown to being submitted or skipped. */
|
|
1528
|
+
declare class FormOperationFull extends OperationFull {
|
|
1529
|
+
/** The application accepts the submitted form. */
|
|
1530
|
+
readonly submit: StepHelper;
|
|
1531
|
+
/** The user leaves the form forward without submitting it. */
|
|
1532
|
+
readonly skip: StepHelper;
|
|
1533
|
+
private readonly inputBinding?;
|
|
1534
|
+
constructor(tracker: CorbadoTracker, config: FormOperationConfig);
|
|
1535
|
+
/** Bind the fields the form shows now, without starting a new subflow. An empty list detaches all. */
|
|
1536
|
+
setInputFields(fields: readonly HTMLInputElement[]): void;
|
|
1537
|
+
destroy(): void;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1496
1540
|
type TrustedDevicePurpose = "additional-verification" | "mfa-exemption";
|
|
1497
1541
|
type TrustedDeviceStorage = "cookie" | "indexeddb" | "localstore" | "sessionstore";
|
|
1498
1542
|
/** Metadata about the accepted binding. Never report cookie values, proofs or key material. */
|
|
@@ -1844,6 +1888,8 @@ declare class CorbadoTracker {
|
|
|
1844
1888
|
* @param experiments - Optional per-call experiment overrides.
|
|
1845
1889
|
* @param contexts - Optional structured event context (e.g. technical metadata that is not an
|
|
1846
1890
|
* analytical dimension). Written to the event's `contexts` field verbatim.
|
|
1891
|
+
* @param options - Optional `explicitTimestamp` (epoch ms) when the flow became visible earlier than
|
|
1892
|
+
* this call, e.g. because an integration confirms a screen only after it stayed up for a while.
|
|
1847
1893
|
*
|
|
1848
1894
|
* @example
|
|
1849
1895
|
* ```typescript
|
|
@@ -1854,7 +1900,7 @@ declare class CorbadoTracker {
|
|
|
1854
1900
|
* });
|
|
1855
1901
|
* ```
|
|
1856
1902
|
*/
|
|
1857
|
-
flowStarted(data: FlowStarted | MultiFlowStarted, tags?: Record<string, string>, experiments?: Record<string, string>, contexts?: Record<string, unknown>): FlowHandle;
|
|
1903
|
+
flowStarted(data: FlowStarted | MultiFlowStarted, tags?: Record<string, string>, experiments?: Record<string, string>, contexts?: Record<string, unknown>, options?: Pick<StepOptions, "explicitTimestamp">): FlowHandle;
|
|
1858
1904
|
/**
|
|
1859
1905
|
* Track when the user commits to a specific flow.
|
|
1860
1906
|
*
|
|
@@ -2094,8 +2140,8 @@ declare class CorbadoTracker {
|
|
|
2094
2140
|
* Queue hook run right before an event batch is sent: a device info snapshot that no event carried
|
|
2095
2141
|
* yet (typically the fast snapshot after a burst of events at page load, or the privateMode update)
|
|
2096
2142
|
* rides the first event of this page in the batch that has none. Events of other pages (outbox
|
|
2097
|
-
* replays) are never touched
|
|
2098
|
-
*
|
|
2143
|
+
* replays) are never touched. A snapshot no event can carry goes as the batch's request-level device
|
|
2144
|
+
* info instead (queue option `standaloneDeviceInfo`).
|
|
2099
2145
|
*
|
|
2100
2146
|
* Error situations:
|
|
2101
2147
|
* - Any error: log "Failed to attach device info to batch" and send the batch unchanged
|
|
@@ -2162,6 +2208,33 @@ declare class CorbadoTracker {
|
|
|
2162
2208
|
totpOperationFull(config?: TotpOperationConfig): TotpOperationFull;
|
|
2163
2209
|
provideIdentifierOperationFull(config?: OperationFullProvideIdentifierWithCUIConfig): OperationFullProvideIdentifierWithCUI;
|
|
2164
2210
|
provideDataOperationFull(config?: ProvideDataOperationConfig): ProvideDataOperationFull;
|
|
2211
|
+
/**
|
|
2212
|
+
* Track one form: a page, step or modal where the user provides one coherent set of data and submits
|
|
2213
|
+
* it, typically as one step of a custom process flow such as an onboarding.
|
|
2214
|
+
*
|
|
2215
|
+
* @param config - The form's stable `name` (required); optionally the names of its `fields`, the
|
|
2216
|
+
* `inputHtmlFields` to collect interaction signals from, and `startedAt` when the form became
|
|
2217
|
+
* visible earlier than this call.
|
|
2218
|
+
* @remarks
|
|
2219
|
+
* Create the operation when the form is shown; one operation per visit, so going back to a form
|
|
2220
|
+
* creates a new one with the same name. Report `submit` when the application accepted the form, or
|
|
2221
|
+
* `skip` when the user left it forward without submitting (e.g. "Do it later"). A form that ends with
|
|
2222
|
+
* neither counts as abandoned; one whose last submit failed counts as failed. Without a name the form
|
|
2223
|
+
* is not counted. Send field names only, never values. A form spread over several pages stays one
|
|
2224
|
+
* operation: bind each page's inputs with `setInputFields`.
|
|
2225
|
+
* @example
|
|
2226
|
+
* ```ts
|
|
2227
|
+
* const form = tracker.formOperationFull({ name: "personal-details", fields: ["firstName", "lastName"] });
|
|
2228
|
+
* form.submit.start({});
|
|
2229
|
+
* try {
|
|
2230
|
+
* await savePersonalDetails(values);
|
|
2231
|
+
* form.submit.finished({});
|
|
2232
|
+
* } catch (error) {
|
|
2233
|
+
* form.submit.error(error);
|
|
2234
|
+
* }
|
|
2235
|
+
* ```
|
|
2236
|
+
*/
|
|
2237
|
+
formOperationFull(config: FormOperationConfig): FormOperationFull;
|
|
2165
2238
|
socialLoginOperationFull(config?: SocialLoginOperationConfig): SocialLoginOperationFull;
|
|
2166
2239
|
/**
|
|
2167
2240
|
* Track enterprise SSO (SAML/OIDC) through the organization's identity provider.
|
|
@@ -2397,7 +2470,18 @@ interface QueueOptions {
|
|
|
2397
2470
|
* without events.
|
|
2398
2471
|
*/
|
|
2399
2472
|
beforeEventBatchSend?: (events: Event[], reason: FlushReason) => void;
|
|
2473
|
+
/**
|
|
2474
|
+
* Source of a device info snapshot no event carried: every batch of the current session takes it (after
|
|
2475
|
+
* {@link QueueOptions.beforeEventBatchSend} had the chance to attach it to an event) and sends it as the
|
|
2476
|
+
* request-level `deviceInfo`. Best effort: never persisted, not retried. Announced by {@link notifyDeviceInfo}.
|
|
2477
|
+
*/
|
|
2478
|
+
standaloneDeviceInfo?: StandaloneDeviceInfoSource;
|
|
2400
2479
|
}
|
|
2480
|
+
type StandaloneDeviceInfoSource = {
|
|
2481
|
+
has(): boolean;
|
|
2482
|
+
/** The snapshot, marked as delivered; undefined when there is none. */
|
|
2483
|
+
take(): DeviceInfo | undefined;
|
|
2484
|
+
};
|
|
2401
2485
|
/**
|
|
2402
2486
|
* @remarks When `window` is defined, `visibilitychange` (when the document becomes hidden) and `pagehide`
|
|
2403
2487
|
* trigger a synchronous unload flush (`flushSync`). Any thrown error in that path is logged as
|
|
@@ -2462,6 +2546,7 @@ declare class RequestQueue {
|
|
|
2462
2546
|
private readonly onConfigReceived?;
|
|
2463
2547
|
private readonly getDataPolicy?;
|
|
2464
2548
|
private readonly beforeEventBatchSend?;
|
|
2549
|
+
private readonly standaloneDeviceInfo?;
|
|
2465
2550
|
/** Current delivery policy, including live updates. */
|
|
2466
2551
|
private config;
|
|
2467
2552
|
/**
|
|
@@ -2491,6 +2576,15 @@ declare class RequestQueue {
|
|
|
2491
2576
|
* - Any error while enqueueing or scheduling the flush timer: log "Failed to enqueue low event"
|
|
2492
2577
|
*/
|
|
2493
2578
|
enqueueLow(low: LowEvent, capturedSessionId?: string): void;
|
|
2579
|
+
/**
|
|
2580
|
+
* A device info snapshot that no event carried is waiting ({@link QueueOptions.standaloneDeviceInfo}): arm the
|
|
2581
|
+
* ordinary flush timer so it goes out even when no event follows, and let the next unload flush pick it up.
|
|
2582
|
+
* An event tracked before the timer fires carries it instead.
|
|
2583
|
+
*
|
|
2584
|
+
* Error situations:
|
|
2585
|
+
* - Any error while scheduling the flush: log "Failed to schedule device info flush"
|
|
2586
|
+
*/
|
|
2587
|
+
notifyDeviceInfo(): void;
|
|
2494
2588
|
/**
|
|
2495
2589
|
* Buffer a diagnostic telemetry entry for delivery with the next event batch.
|
|
2496
2590
|
*
|
|
@@ -2571,6 +2665,9 @@ declare class RequestQueue {
|
|
|
2571
2665
|
private removeLowEntries;
|
|
2572
2666
|
private handleLowSendResult;
|
|
2573
2667
|
private deferLowEntries;
|
|
2668
|
+
private hasStandaloneDeviceInfo;
|
|
2669
|
+
/** The snapshot for the request-level `deviceInfo`; a throwing source must never break a flush. */
|
|
2670
|
+
private takeStandaloneDeviceInfo;
|
|
2574
2671
|
private takeTelemetry;
|
|
2575
2672
|
private shouldRequestConfig;
|
|
2576
2673
|
/**
|
|
@@ -2879,4 +2976,4 @@ declare function logInfo(message: string): void;
|
|
|
2879
2976
|
declare function logError(message: string): void;
|
|
2880
2977
|
declare function destroy(): Promise<void>;
|
|
2881
2978
|
|
|
2882
|
-
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 };
|
|
2979
|
+
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 FormOperationConfig, FormOperationFull, 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 StandaloneDeviceInfoSource, 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
|
@@ -39,7 +39,7 @@ type EventType = "predefined" | "custom" | "error" | "identify";
|
|
|
39
39
|
type AuthMethodType = "identifier-email"
|
|
40
40
|
/** Neutral "enter an identifier" choice; the identifier kind is the provide-identifier spec type. */
|
|
41
41
|
| "identifier" | "passkey-login-known-identifier" | "passkey-login-no-identifier" | "passkey-login-cui" | "passkey-login-immediate" | "passkey-enrollment" | "password-login" | "password-login-known-identifier" | "password-login-with-identifier" | "password-enrollment" | "email-otp" | "email-otp-login" | "email-otp-enrollment" | "email-link" | "email-link-login" | "email-link-enrollment" | "sms-otp" | "sms-otp-login" | "sms-otp-enrollment" | "totp" | "totp-login" | "totp-enrollment" | "app-confirmation" | "social-google" | "social-apple" | "social-facebook" | "social-other" | "sso-login" | "reset-flow" | "provide-data";
|
|
42
|
-
type SubflowType = "key-signing" | "key-registration" | "trusted-device-check" | "trusted-device-enrollment" | "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sso-login" | "sms-otp" | "provide-identifier" | "provide-data" | "password-login" | "password-enrollment" | "totp" | "app-confirmation" | "captcha";
|
|
42
|
+
type SubflowType = "key-signing" | "key-registration" | "trusted-device-check" | "trusted-device-enrollment" | "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sso-login" | "sms-otp" | "provide-identifier" | "provide-data" | "form" | "password-login" | "password-enrollment" | "totp" | "app-confirmation" | "captcha";
|
|
43
43
|
type FlowType = "login" | "signup" | "recovery" | "enrollment" | (string & {});
|
|
44
44
|
type SetFlowTagsOptions = {
|
|
45
45
|
/** Flow type to tag; defaults to `"*"` (the innermost open flow of any type). */
|
|
@@ -418,6 +418,11 @@ interface EventBatch {
|
|
|
418
418
|
telemetry?: TelemetryEntry[];
|
|
419
419
|
/** Probe items (internal diagnostics captured by autocapture bundles); a batch may carry probes only. */
|
|
420
420
|
probes?: ProbeEntry[];
|
|
421
|
+
/**
|
|
422
|
+
* A device info snapshot no event of this page carried (e.g. the late privateMode update after the page's
|
|
423
|
+
* last event); a batch may carry only this.
|
|
424
|
+
*/
|
|
425
|
+
deviceInfo?: DeviceInfo;
|
|
421
426
|
meta?: EventBatchMeta;
|
|
422
427
|
}
|
|
423
428
|
type DeviceType = "web" | "app" | "other";
|
|
@@ -569,7 +574,7 @@ interface SdkReliabilityConfig {
|
|
|
569
574
|
* When true (and `telemetry` is enabled), device info collection emits `info` telemetry entries:
|
|
570
575
|
* the fast snapshot's total and per-field durations in milliseconds, the late fields' outcome, the
|
|
571
576
|
* `privateMode` source (cache age, detection duration or timeout) and how the update was delivered
|
|
572
|
-
* (
|
|
577
|
+
* (with an event, or on its own). Defaults to false: this is a diagnostic
|
|
573
578
|
* stream to switch on while investigating slow collection, not something to run permanently.
|
|
574
579
|
*/
|
|
575
580
|
deviceInfoTiming: boolean;
|
|
@@ -1493,6 +1498,45 @@ declare class CaptchaOperationFull extends OperationFull {
|
|
|
1493
1498
|
constructor(tracker: CorbadoTracker, config?: CaptchaOperationConfig);
|
|
1494
1499
|
}
|
|
1495
1500
|
|
|
1501
|
+
type FormOperationConfig = {
|
|
1502
|
+
/**
|
|
1503
|
+
* Stable name of the form, e.g. `"personal-details"`. Identifies the form in the process funnel, so
|
|
1504
|
+
* use the same name for every visit of the same form. The backend normalizes it (lower-case, words
|
|
1505
|
+
* joined by `-`, at most 40 characters), so `"personalDetails"` and `"personal_details"` are one form.
|
|
1506
|
+
* Without a name the form is not counted.
|
|
1507
|
+
*/
|
|
1508
|
+
name: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* Names of the fields the form collects, e.g. `["firstName", "lastName"]`. Names only, never values:
|
|
1511
|
+
* entries outside `[A-Za-z0-9._-]` or longer than 40 characters are dropped, and at most 50 are sent.
|
|
1512
|
+
*/
|
|
1513
|
+
fields?: string[];
|
|
1514
|
+
/**
|
|
1515
|
+
* When the form became visible (epoch ms), if that was earlier than this call — for example when
|
|
1516
|
+
* an integration confirms a screen only after it stayed up for a moment. Must not lie in the future
|
|
1517
|
+
* or more than a minute back; otherwise it is ignored with a warning and the call time is used.
|
|
1518
|
+
*/
|
|
1519
|
+
startedAt?: number;
|
|
1520
|
+
/**
|
|
1521
|
+
* The form's input fields, for low-level interaction signals (focus, typing, paste, autofill —
|
|
1522
|
+
* never values). They make the form's first interaction the first touch of a field rather than its
|
|
1523
|
+
* submit. Rebind with {@link FormOperationFull.setInputFields} when the form renders other fields.
|
|
1524
|
+
*/
|
|
1525
|
+
inputHtmlFields?: HTMLInputElement[];
|
|
1526
|
+
};
|
|
1527
|
+
/** Tracks one form of a process flow from being shown to being submitted or skipped. */
|
|
1528
|
+
declare class FormOperationFull extends OperationFull {
|
|
1529
|
+
/** The application accepts the submitted form. */
|
|
1530
|
+
readonly submit: StepHelper;
|
|
1531
|
+
/** The user leaves the form forward without submitting it. */
|
|
1532
|
+
readonly skip: StepHelper;
|
|
1533
|
+
private readonly inputBinding?;
|
|
1534
|
+
constructor(tracker: CorbadoTracker, config: FormOperationConfig);
|
|
1535
|
+
/** Bind the fields the form shows now, without starting a new subflow. An empty list detaches all. */
|
|
1536
|
+
setInputFields(fields: readonly HTMLInputElement[]): void;
|
|
1537
|
+
destroy(): void;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1496
1540
|
type TrustedDevicePurpose = "additional-verification" | "mfa-exemption";
|
|
1497
1541
|
type TrustedDeviceStorage = "cookie" | "indexeddb" | "localstore" | "sessionstore";
|
|
1498
1542
|
/** Metadata about the accepted binding. Never report cookie values, proofs or key material. */
|
|
@@ -1844,6 +1888,8 @@ declare class CorbadoTracker {
|
|
|
1844
1888
|
* @param experiments - Optional per-call experiment overrides.
|
|
1845
1889
|
* @param contexts - Optional structured event context (e.g. technical metadata that is not an
|
|
1846
1890
|
* analytical dimension). Written to the event's `contexts` field verbatim.
|
|
1891
|
+
* @param options - Optional `explicitTimestamp` (epoch ms) when the flow became visible earlier than
|
|
1892
|
+
* this call, e.g. because an integration confirms a screen only after it stayed up for a while.
|
|
1847
1893
|
*
|
|
1848
1894
|
* @example
|
|
1849
1895
|
* ```typescript
|
|
@@ -1854,7 +1900,7 @@ declare class CorbadoTracker {
|
|
|
1854
1900
|
* });
|
|
1855
1901
|
* ```
|
|
1856
1902
|
*/
|
|
1857
|
-
flowStarted(data: FlowStarted | MultiFlowStarted, tags?: Record<string, string>, experiments?: Record<string, string>, contexts?: Record<string, unknown>): FlowHandle;
|
|
1903
|
+
flowStarted(data: FlowStarted | MultiFlowStarted, tags?: Record<string, string>, experiments?: Record<string, string>, contexts?: Record<string, unknown>, options?: Pick<StepOptions, "explicitTimestamp">): FlowHandle;
|
|
1858
1904
|
/**
|
|
1859
1905
|
* Track when the user commits to a specific flow.
|
|
1860
1906
|
*
|
|
@@ -2094,8 +2140,8 @@ declare class CorbadoTracker {
|
|
|
2094
2140
|
* Queue hook run right before an event batch is sent: a device info snapshot that no event carried
|
|
2095
2141
|
* yet (typically the fast snapshot after a burst of events at page load, or the privateMode update)
|
|
2096
2142
|
* rides the first event of this page in the batch that has none. Events of other pages (outbox
|
|
2097
|
-
* replays) are never touched
|
|
2098
|
-
*
|
|
2143
|
+
* replays) are never touched. A snapshot no event can carry goes as the batch's request-level device
|
|
2144
|
+
* info instead (queue option `standaloneDeviceInfo`).
|
|
2099
2145
|
*
|
|
2100
2146
|
* Error situations:
|
|
2101
2147
|
* - Any error: log "Failed to attach device info to batch" and send the batch unchanged
|
|
@@ -2162,6 +2208,33 @@ declare class CorbadoTracker {
|
|
|
2162
2208
|
totpOperationFull(config?: TotpOperationConfig): TotpOperationFull;
|
|
2163
2209
|
provideIdentifierOperationFull(config?: OperationFullProvideIdentifierWithCUIConfig): OperationFullProvideIdentifierWithCUI;
|
|
2164
2210
|
provideDataOperationFull(config?: ProvideDataOperationConfig): ProvideDataOperationFull;
|
|
2211
|
+
/**
|
|
2212
|
+
* Track one form: a page, step or modal where the user provides one coherent set of data and submits
|
|
2213
|
+
* it, typically as one step of a custom process flow such as an onboarding.
|
|
2214
|
+
*
|
|
2215
|
+
* @param config - The form's stable `name` (required); optionally the names of its `fields`, the
|
|
2216
|
+
* `inputHtmlFields` to collect interaction signals from, and `startedAt` when the form became
|
|
2217
|
+
* visible earlier than this call.
|
|
2218
|
+
* @remarks
|
|
2219
|
+
* Create the operation when the form is shown; one operation per visit, so going back to a form
|
|
2220
|
+
* creates a new one with the same name. Report `submit` when the application accepted the form, or
|
|
2221
|
+
* `skip` when the user left it forward without submitting (e.g. "Do it later"). A form that ends with
|
|
2222
|
+
* neither counts as abandoned; one whose last submit failed counts as failed. Without a name the form
|
|
2223
|
+
* is not counted. Send field names only, never values. A form spread over several pages stays one
|
|
2224
|
+
* operation: bind each page's inputs with `setInputFields`.
|
|
2225
|
+
* @example
|
|
2226
|
+
* ```ts
|
|
2227
|
+
* const form = tracker.formOperationFull({ name: "personal-details", fields: ["firstName", "lastName"] });
|
|
2228
|
+
* form.submit.start({});
|
|
2229
|
+
* try {
|
|
2230
|
+
* await savePersonalDetails(values);
|
|
2231
|
+
* form.submit.finished({});
|
|
2232
|
+
* } catch (error) {
|
|
2233
|
+
* form.submit.error(error);
|
|
2234
|
+
* }
|
|
2235
|
+
* ```
|
|
2236
|
+
*/
|
|
2237
|
+
formOperationFull(config: FormOperationConfig): FormOperationFull;
|
|
2165
2238
|
socialLoginOperationFull(config?: SocialLoginOperationConfig): SocialLoginOperationFull;
|
|
2166
2239
|
/**
|
|
2167
2240
|
* Track enterprise SSO (SAML/OIDC) through the organization's identity provider.
|
|
@@ -2397,7 +2470,18 @@ interface QueueOptions {
|
|
|
2397
2470
|
* without events.
|
|
2398
2471
|
*/
|
|
2399
2472
|
beforeEventBatchSend?: (events: Event[], reason: FlushReason) => void;
|
|
2473
|
+
/**
|
|
2474
|
+
* Source of a device info snapshot no event carried: every batch of the current session takes it (after
|
|
2475
|
+
* {@link QueueOptions.beforeEventBatchSend} had the chance to attach it to an event) and sends it as the
|
|
2476
|
+
* request-level `deviceInfo`. Best effort: never persisted, not retried. Announced by {@link notifyDeviceInfo}.
|
|
2477
|
+
*/
|
|
2478
|
+
standaloneDeviceInfo?: StandaloneDeviceInfoSource;
|
|
2400
2479
|
}
|
|
2480
|
+
type StandaloneDeviceInfoSource = {
|
|
2481
|
+
has(): boolean;
|
|
2482
|
+
/** The snapshot, marked as delivered; undefined when there is none. */
|
|
2483
|
+
take(): DeviceInfo | undefined;
|
|
2484
|
+
};
|
|
2401
2485
|
/**
|
|
2402
2486
|
* @remarks When `window` is defined, `visibilitychange` (when the document becomes hidden) and `pagehide`
|
|
2403
2487
|
* trigger a synchronous unload flush (`flushSync`). Any thrown error in that path is logged as
|
|
@@ -2462,6 +2546,7 @@ declare class RequestQueue {
|
|
|
2462
2546
|
private readonly onConfigReceived?;
|
|
2463
2547
|
private readonly getDataPolicy?;
|
|
2464
2548
|
private readonly beforeEventBatchSend?;
|
|
2549
|
+
private readonly standaloneDeviceInfo?;
|
|
2465
2550
|
/** Current delivery policy, including live updates. */
|
|
2466
2551
|
private config;
|
|
2467
2552
|
/**
|
|
@@ -2491,6 +2576,15 @@ declare class RequestQueue {
|
|
|
2491
2576
|
* - Any error while enqueueing or scheduling the flush timer: log "Failed to enqueue low event"
|
|
2492
2577
|
*/
|
|
2493
2578
|
enqueueLow(low: LowEvent, capturedSessionId?: string): void;
|
|
2579
|
+
/**
|
|
2580
|
+
* A device info snapshot that no event carried is waiting ({@link QueueOptions.standaloneDeviceInfo}): arm the
|
|
2581
|
+
* ordinary flush timer so it goes out even when no event follows, and let the next unload flush pick it up.
|
|
2582
|
+
* An event tracked before the timer fires carries it instead.
|
|
2583
|
+
*
|
|
2584
|
+
* Error situations:
|
|
2585
|
+
* - Any error while scheduling the flush: log "Failed to schedule device info flush"
|
|
2586
|
+
*/
|
|
2587
|
+
notifyDeviceInfo(): void;
|
|
2494
2588
|
/**
|
|
2495
2589
|
* Buffer a diagnostic telemetry entry for delivery with the next event batch.
|
|
2496
2590
|
*
|
|
@@ -2571,6 +2665,9 @@ declare class RequestQueue {
|
|
|
2571
2665
|
private removeLowEntries;
|
|
2572
2666
|
private handleLowSendResult;
|
|
2573
2667
|
private deferLowEntries;
|
|
2668
|
+
private hasStandaloneDeviceInfo;
|
|
2669
|
+
/** The snapshot for the request-level `deviceInfo`; a throwing source must never break a flush. */
|
|
2670
|
+
private takeStandaloneDeviceInfo;
|
|
2574
2671
|
private takeTelemetry;
|
|
2575
2672
|
private shouldRequestConfig;
|
|
2576
2673
|
/**
|
|
@@ -2879,4 +2976,4 @@ declare function logInfo(message: string): void;
|
|
|
2879
2976
|
declare function logError(message: string): void;
|
|
2880
2977
|
declare function destroy(): Promise<void>;
|
|
2881
2978
|
|
|
2882
|
-
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 };
|
|
2979
|
+
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 FormOperationConfig, FormOperationFull, 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 StandaloneDeviceInfoSource, 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 };
|