@corbado/observe 0.9.0-next.68-cf43fc3 → 0.9.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 +1 -1
- package/dist/index.d.mts +2 -12
- package/dist/index.d.ts +2 -12
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -281,8 +281,6 @@ interface SdkReliabilityConfig {
|
|
|
281
281
|
* relevant when `sessionContinuity` is enabled.
|
|
282
282
|
*/
|
|
283
283
|
sessionInactivityMs: number;
|
|
284
|
-
/** Maximum time to wait for the cross-tab sequence Web Lock before allocating without it. */
|
|
285
|
-
seqLockTimeoutMs: number;
|
|
286
284
|
/**
|
|
287
285
|
* Flush-trigger switch: flush pending events when the document becomes hidden
|
|
288
286
|
* (`visibilitychange`). Defaults to true — a missing value can never disable delivery.
|
|
@@ -731,8 +729,6 @@ interface TrackerOptions {
|
|
|
731
729
|
* It will be removed in a future release.
|
|
732
730
|
*/
|
|
733
731
|
flushInterval?: number;
|
|
734
|
-
/** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
|
|
735
|
-
sessionIdGenerator?: () => string;
|
|
736
732
|
}
|
|
737
733
|
declare class CorbadoTracker {
|
|
738
734
|
private options;
|
|
@@ -807,7 +803,6 @@ declare class CorbadoTracker {
|
|
|
807
803
|
*/
|
|
808
804
|
private resolveExperiments;
|
|
809
805
|
private isTrackingBlocked;
|
|
810
|
-
private createSessionId;
|
|
811
806
|
private getSessionId;
|
|
812
807
|
/**
|
|
813
808
|
* Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
|
|
@@ -819,7 +814,7 @@ declare class CorbadoTracker {
|
|
|
819
814
|
* Return the next sequence number. With session continuity the counter is persisted so ordering
|
|
820
815
|
* survives reloads/redirects; the read-increment-write runs under a cross-tab Web Lock
|
|
821
816
|
* ({@link SEQ_LOCK_NAME}) so two tabs sharing the session cannot allocate the same seq (where Web
|
|
822
|
-
* Locks are unavailable or
|
|
817
|
+
* Locks are unavailable or take more than 5ms it degrades to the historical best-effort merge).
|
|
823
818
|
* Lock grants are FIFO, so seq order matches `track()` call order within a tab. Every tracked event also bumps the
|
|
824
819
|
* continuity session's `lastActiveAt`, so the inactivity window measures real user inactivity
|
|
825
820
|
* instead of time-since-page-load (a long-lived active tab must not rotate the session on the next
|
|
@@ -1363,7 +1358,6 @@ declare const CONFIG_STORAGE_KEY = "cbo_sdk_config";
|
|
|
1363
1358
|
declare const CONFIG_REQUEST_HEADER = "X-Corbado-Observe-Config";
|
|
1364
1359
|
/** Built-in flush interval used until the server provides one. Matches the historical default. */
|
|
1365
1360
|
declare const DEFAULT_FLUSH_INTERVAL_MS = 500;
|
|
1366
|
-
declare const DEFAULT_SEQ_LOCK_TIMEOUT_MS = 5;
|
|
1367
1361
|
/**
|
|
1368
1362
|
* Clamping bounds for server-provided config values. They protect the client from a dangerous
|
|
1369
1363
|
* server-side config mistake (e.g. a 0ms flush interval would busy-loop); the server clamps with
|
|
@@ -1386,10 +1380,6 @@ declare const CONFIG_BOUNDS: {
|
|
|
1386
1380
|
readonly min: 60000;
|
|
1387
1381
|
readonly max: 86400000;
|
|
1388
1382
|
};
|
|
1389
|
-
readonly seqLockTimeoutMs: {
|
|
1390
|
-
readonly min: 1;
|
|
1391
|
-
readonly max: 250;
|
|
1392
|
-
};
|
|
1393
1383
|
readonly flushOnEventNames: {
|
|
1394
1384
|
readonly maxEntries: 20;
|
|
1395
1385
|
readonly maxNameLength: 100;
|
|
@@ -1496,4 +1486,4 @@ declare function logInfo(message: string): void;
|
|
|
1496
1486
|
declare function logError(message: string): void;
|
|
1497
1487
|
declare function destroy(): Promise<void>;
|
|
1498
1488
|
|
|
1499
|
-
export { type AppConfirmationOperationCeremonyTypedError, 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 ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG,
|
|
1489
|
+
export { type AppConfirmationOperationCeremonyTypedError, 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 ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG, DEFAULT_SESSION_INACTIVITY_MS, type DeviceInfo, type DeviceInfoCollectionError, type DeviceInfoDataWeb, type DeviceType, EmailLinkOperationFull, type EmailLinkOperationPostResponseStart, type EmailLinkOperationSendStart, type EmailLinkOperationSpecType, type EmailOTPOperationPostResponseStart, type EmailOTPOperationSendOTPStart, type EmailOTPOperationSpecType, EmailOtpOperationFull, type Event, type EventBatch, type EventBatchMeta, type EventMeta, EventStore, type EventType, type FlowAutoFinished, type FlowDecided, type FlowFinished, type FlowReset, type FlowStarted, type FlowType, type JavaScriptHighEntropy, LocalStorage, type Logger, type LowEvent, type MultiFlowReset, type MultiFlowStarted, type NormalizedError, OUTBOX_LOCK_NAME, OUTBOX_STORAGE_KEY, OperationFull, OperationFullProvideIdentifierWithCUI, type OutboxEntry, type PasskeyEnrollmentCeremonyFinished, type PasskeyEnrollmentCeremonyStart, type PasskeyEnrollmentGetOptionsFinished, type PasskeyEnrollmentGetOptionsStart, PasskeyEnrollmentOperationFull, type PasskeyLoginCUIGetOptionsFinished, type PasskeyLoginCUIGetOptionsStart, type PasskeyLoginCUISpecType, type PasskeyLoginCeremonyFinished, type PasskeyLoginCeremonyStart, type PasskeyLoginClientError, type PasskeyLoginFinish, type PasskeyLoginGetOptionsFinished, type PasskeyLoginGetOptionsStart, PasskeyLoginOperationFull, type PasskeyLoginStartable, type PasskeyLoginSubmitted, type PasskeyOperationEnrollmentExplicitSpecType, type PasskeyOperationLoginExplicitSpecType, type PasswordEnrollmentAutoTrackConfig, PasswordEnrollmentOperationFull, type PasswordEnrollmentTypedError, type PasswordLoginAutoTrackConfig, type PasswordLoginCUICeremonyStart, type PasswordLoginCUIGetOptionsFinished, type PasswordLoginCUIGetOptionsStart, type PasswordLoginCUISpecType, type PasswordLoginCUITypedError, PasswordLoginOperationFull, type PasswordLoginTypedError, type PredefinedEvent, type ProvideDataOperationConfig, ProvideDataOperationFull, type ProvideDataOperationPostResponseStart, type ProvideDataOperationSpecType, type ProvideDataOperationStart, type ProvideIdentifierError, type ProvideIdentifierFinish, type ProvideIdentifierPostResponseStart, type ProvideIdentifierSpecType, type ProvideIdentifierStart, type QueueOptions, RequestQueue, SDK_NAME, SDK_VERSION, type SdkInfo, type SdkReliabilityConfig, type SdkRetryConfig, SessionStorage, type SmsOTPOperationPostResponseStart, type SmsOTPOperationSpecType, SmsOtpOperationFull, type SocialLoginExchangeCodeFinished, type SocialLoginExchangeCodeStart, type SocialLoginGetRedirectUrlFinished, type SocialLoginGetRedirectUrlStart, SocialLoginOperationFull, type SocialLoginProviderType, type SocialLoginSpecType, type StepHelper, type StepOptions, type StorageEngine, type SubflowTrigger, type SubflowType, type TelemetryEntry, type TelemetryLevel, type TelemetrySink, type TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type UserReference, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, getExperiments, getTracker, init, loadCachedConfig, logError, logInfo, parseReliabilityConfig, resetSession, setExperiment, setExperiments, telemetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -281,8 +281,6 @@ interface SdkReliabilityConfig {
|
|
|
281
281
|
* relevant when `sessionContinuity` is enabled.
|
|
282
282
|
*/
|
|
283
283
|
sessionInactivityMs: number;
|
|
284
|
-
/** Maximum time to wait for the cross-tab sequence Web Lock before allocating without it. */
|
|
285
|
-
seqLockTimeoutMs: number;
|
|
286
284
|
/**
|
|
287
285
|
* Flush-trigger switch: flush pending events when the document becomes hidden
|
|
288
286
|
* (`visibilitychange`). Defaults to true — a missing value can never disable delivery.
|
|
@@ -731,8 +729,6 @@ interface TrackerOptions {
|
|
|
731
729
|
* It will be removed in a future release.
|
|
732
730
|
*/
|
|
733
731
|
flushInterval?: number;
|
|
734
|
-
/** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
|
|
735
|
-
sessionIdGenerator?: () => string;
|
|
736
732
|
}
|
|
737
733
|
declare class CorbadoTracker {
|
|
738
734
|
private options;
|
|
@@ -807,7 +803,6 @@ declare class CorbadoTracker {
|
|
|
807
803
|
*/
|
|
808
804
|
private resolveExperiments;
|
|
809
805
|
private isTrackingBlocked;
|
|
810
|
-
private createSessionId;
|
|
811
806
|
private getSessionId;
|
|
812
807
|
/**
|
|
813
808
|
* Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
|
|
@@ -819,7 +814,7 @@ declare class CorbadoTracker {
|
|
|
819
814
|
* Return the next sequence number. With session continuity the counter is persisted so ordering
|
|
820
815
|
* survives reloads/redirects; the read-increment-write runs under a cross-tab Web Lock
|
|
821
816
|
* ({@link SEQ_LOCK_NAME}) so two tabs sharing the session cannot allocate the same seq (where Web
|
|
822
|
-
* Locks are unavailable or
|
|
817
|
+
* Locks are unavailable or take more than 5ms it degrades to the historical best-effort merge).
|
|
823
818
|
* Lock grants are FIFO, so seq order matches `track()` call order within a tab. Every tracked event also bumps the
|
|
824
819
|
* continuity session's `lastActiveAt`, so the inactivity window measures real user inactivity
|
|
825
820
|
* instead of time-since-page-load (a long-lived active tab must not rotate the session on the next
|
|
@@ -1363,7 +1358,6 @@ declare const CONFIG_STORAGE_KEY = "cbo_sdk_config";
|
|
|
1363
1358
|
declare const CONFIG_REQUEST_HEADER = "X-Corbado-Observe-Config";
|
|
1364
1359
|
/** Built-in flush interval used until the server provides one. Matches the historical default. */
|
|
1365
1360
|
declare const DEFAULT_FLUSH_INTERVAL_MS = 500;
|
|
1366
|
-
declare const DEFAULT_SEQ_LOCK_TIMEOUT_MS = 5;
|
|
1367
1361
|
/**
|
|
1368
1362
|
* Clamping bounds for server-provided config values. They protect the client from a dangerous
|
|
1369
1363
|
* server-side config mistake (e.g. a 0ms flush interval would busy-loop); the server clamps with
|
|
@@ -1386,10 +1380,6 @@ declare const CONFIG_BOUNDS: {
|
|
|
1386
1380
|
readonly min: 60000;
|
|
1387
1381
|
readonly max: 86400000;
|
|
1388
1382
|
};
|
|
1389
|
-
readonly seqLockTimeoutMs: {
|
|
1390
|
-
readonly min: 1;
|
|
1391
|
-
readonly max: 250;
|
|
1392
|
-
};
|
|
1393
1383
|
readonly flushOnEventNames: {
|
|
1394
1384
|
readonly maxEntries: 20;
|
|
1395
1385
|
readonly maxNameLength: 100;
|
|
@@ -1496,4 +1486,4 @@ declare function logInfo(message: string): void;
|
|
|
1496
1486
|
declare function logError(message: string): void;
|
|
1497
1487
|
declare function destroy(): Promise<void>;
|
|
1498
1488
|
|
|
1499
|
-
export { type AppConfirmationOperationCeremonyTypedError, 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 ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG,
|
|
1489
|
+
export { type AppConfirmationOperationCeremonyTypedError, 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 ClientCapabilities, type ClientEnvHandleMeta, type ClientEnvHandleMetaSource, type Conversion, CookieStorage, CorbadoTracker, type CreateLoggerOptions, type CustomEvent, DEFAULT_FLUSH_INTERVAL_MS, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_SERIALIZED_LENGTH, DEFAULT_RELIABILITY_CONFIG, DEFAULT_SESSION_INACTIVITY_MS, type DeviceInfo, type DeviceInfoCollectionError, type DeviceInfoDataWeb, type DeviceType, EmailLinkOperationFull, type EmailLinkOperationPostResponseStart, type EmailLinkOperationSendStart, type EmailLinkOperationSpecType, type EmailOTPOperationPostResponseStart, type EmailOTPOperationSendOTPStart, type EmailOTPOperationSpecType, EmailOtpOperationFull, type Event, type EventBatch, type EventBatchMeta, type EventMeta, EventStore, type EventType, type FlowAutoFinished, type FlowDecided, type FlowFinished, type FlowReset, type FlowStarted, type FlowType, type JavaScriptHighEntropy, LocalStorage, type Logger, type LowEvent, type MultiFlowReset, type MultiFlowStarted, type NormalizedError, OUTBOX_LOCK_NAME, OUTBOX_STORAGE_KEY, OperationFull, OperationFullProvideIdentifierWithCUI, type OutboxEntry, type PasskeyEnrollmentCeremonyFinished, type PasskeyEnrollmentCeremonyStart, type PasskeyEnrollmentGetOptionsFinished, type PasskeyEnrollmentGetOptionsStart, PasskeyEnrollmentOperationFull, type PasskeyLoginCUIGetOptionsFinished, type PasskeyLoginCUIGetOptionsStart, type PasskeyLoginCUISpecType, type PasskeyLoginCeremonyFinished, type PasskeyLoginCeremonyStart, type PasskeyLoginClientError, type PasskeyLoginFinish, type PasskeyLoginGetOptionsFinished, type PasskeyLoginGetOptionsStart, PasskeyLoginOperationFull, type PasskeyLoginStartable, type PasskeyLoginSubmitted, type PasskeyOperationEnrollmentExplicitSpecType, type PasskeyOperationLoginExplicitSpecType, type PasswordEnrollmentAutoTrackConfig, PasswordEnrollmentOperationFull, type PasswordEnrollmentTypedError, type PasswordLoginAutoTrackConfig, type PasswordLoginCUICeremonyStart, type PasswordLoginCUIGetOptionsFinished, type PasswordLoginCUIGetOptionsStart, type PasswordLoginCUISpecType, type PasswordLoginCUITypedError, PasswordLoginOperationFull, type PasswordLoginTypedError, type PredefinedEvent, type ProvideDataOperationConfig, ProvideDataOperationFull, type ProvideDataOperationPostResponseStart, type ProvideDataOperationSpecType, type ProvideDataOperationStart, type ProvideIdentifierError, type ProvideIdentifierFinish, type ProvideIdentifierPostResponseStart, type ProvideIdentifierSpecType, type ProvideIdentifierStart, type QueueOptions, RequestQueue, SDK_NAME, SDK_VERSION, type SdkInfo, type SdkReliabilityConfig, type SdkRetryConfig, SessionStorage, type SmsOTPOperationPostResponseStart, type SmsOTPOperationSpecType, SmsOtpOperationFull, type SocialLoginExchangeCodeFinished, type SocialLoginExchangeCodeStart, type SocialLoginGetRedirectUrlFinished, type SocialLoginGetRedirectUrlStart, SocialLoginOperationFull, type SocialLoginProviderType, type SocialLoginSpecType, type StepHelper, type StepOptions, type StorageEngine, type SubflowTrigger, type SubflowType, type TelemetryEntry, type TelemetryLevel, type TelemetrySink, type TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type UserReference, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, getExperiments, getTracker, init, loadCachedConfig, logError, logInfo, parseReliabilityConfig, resetSession, setExperiment, setExperiments, telemetry };
|