@corbado/observe 0.9.1-next.72-1fbd890 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/script.global.js +1 -1
- package/dist/index.d.mts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -481,13 +481,10 @@ type SmsOTPOperationSpecType = "sms-otp-login" | "sms-otp-enrollment";
|
|
|
481
481
|
type SmsOTPOperationPostResponseStart = {
|
|
482
482
|
explicitSpecType?: SmsOTPOperationSpecType;
|
|
483
483
|
};
|
|
484
|
-
type SmsOTPOperationConfig = {
|
|
485
|
-
explicitSpecType?: SmsOTPOperationSpecType;
|
|
486
|
-
};
|
|
487
484
|
declare class SmsOtpOperationFull extends OperationFull {
|
|
488
485
|
readonly postResponse: StepHelper<SmsOTPOperationPostResponseStart>;
|
|
489
486
|
readonly resend: StepHelper;
|
|
490
|
-
constructor(tracker: CorbadoTracker
|
|
487
|
+
constructor(tracker: CorbadoTracker);
|
|
491
488
|
}
|
|
492
489
|
|
|
493
490
|
type EmailLinkOperationSpecType = "email-link-login" | "email-link-enrollment";
|
|
@@ -520,15 +517,12 @@ type PasskeyEnrollmentCeremonyStart = {
|
|
|
520
517
|
type PasskeyEnrollmentCeremonyFinished = {
|
|
521
518
|
attestationResponse: string;
|
|
522
519
|
};
|
|
523
|
-
type PasskeyEnrollmentOperationConfig = {
|
|
524
|
-
explicitSpecType?: PasskeyOperationEnrollmentExplicitSpecType;
|
|
525
|
-
};
|
|
526
520
|
declare class PasskeyEnrollmentOperationFull extends OperationFull {
|
|
527
521
|
readonly getOptions: StepHelper<PasskeyEnrollmentGetOptionsStart, PasskeyEnrollmentGetOptionsFinished>;
|
|
528
522
|
readonly ceremony: StepHelper<PasskeyEnrollmentCeremonyStart, PasskeyEnrollmentCeremonyFinished>;
|
|
529
523
|
readonly postResponse: StepHelper;
|
|
530
524
|
private lowEventTracker;
|
|
531
|
-
constructor(tracker: CorbadoTracker
|
|
525
|
+
constructor(tracker: CorbadoTracker);
|
|
532
526
|
destroy(): void;
|
|
533
527
|
}
|
|
534
528
|
|
|
@@ -737,8 +731,6 @@ interface TrackerOptions {
|
|
|
737
731
|
* It will be removed in a future release.
|
|
738
732
|
*/
|
|
739
733
|
flushInterval?: number;
|
|
740
|
-
/** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
|
|
741
|
-
sessionIdGenerator?: () => string;
|
|
742
734
|
}
|
|
743
735
|
declare class CorbadoTracker {
|
|
744
736
|
private options;
|
|
@@ -813,7 +805,6 @@ declare class CorbadoTracker {
|
|
|
813
805
|
*/
|
|
814
806
|
private resolveExperiments;
|
|
815
807
|
private isTrackingBlocked;
|
|
816
|
-
private createSessionId;
|
|
817
808
|
private getSessionId;
|
|
818
809
|
/**
|
|
819
810
|
* Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
|
|
@@ -1049,12 +1040,12 @@ declare class CorbadoTracker {
|
|
|
1049
1040
|
*/
|
|
1050
1041
|
lowEventFlushKeepalive(): void;
|
|
1051
1042
|
passkeyLoginFullOperation(): PasskeyLoginOperationFull;
|
|
1052
|
-
passkeyEnrollmentFullOperation(
|
|
1043
|
+
passkeyEnrollmentFullOperation(): PasskeyEnrollmentOperationFull;
|
|
1053
1044
|
passwordLoginFullOperation(autoTrackConfig?: PasswordLoginAutoTrackConfig): PasswordLoginOperationFull;
|
|
1054
1045
|
passwordEnrollmentFullOperation(autoTrackConfig?: PasswordEnrollmentAutoTrackConfig): PasswordEnrollmentOperationFull;
|
|
1055
1046
|
emailLinkOperationFull(): EmailLinkOperationFull;
|
|
1056
1047
|
emailOtpOperationFull(): EmailOtpOperationFull;
|
|
1057
|
-
smsOtpOperationFull(
|
|
1048
|
+
smsOtpOperationFull(): SmsOtpOperationFull;
|
|
1058
1049
|
provideIdentifierOperationFull(inputHtmlField?: HTMLInputElement): OperationFullProvideIdentifierWithCUI;
|
|
1059
1050
|
provideDataOperationFull(config?: ProvideDataOperationConfig): ProvideDataOperationFull;
|
|
1060
1051
|
socialLoginOperationFull(): SocialLoginOperationFull;
|
|
@@ -1502,4 +1493,4 @@ declare function logInfo(message: string): void;
|
|
|
1502
1493
|
declare function logError(message: string): void;
|
|
1503
1494
|
declare function destroy(): Promise<void>;
|
|
1504
1495
|
|
|
1505
|
-
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_SEQ_LOCK_TIMEOUT_MS, 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,
|
|
1496
|
+
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_SEQ_LOCK_TIMEOUT_MS, 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
|
@@ -481,13 +481,10 @@ type SmsOTPOperationSpecType = "sms-otp-login" | "sms-otp-enrollment";
|
|
|
481
481
|
type SmsOTPOperationPostResponseStart = {
|
|
482
482
|
explicitSpecType?: SmsOTPOperationSpecType;
|
|
483
483
|
};
|
|
484
|
-
type SmsOTPOperationConfig = {
|
|
485
|
-
explicitSpecType?: SmsOTPOperationSpecType;
|
|
486
|
-
};
|
|
487
484
|
declare class SmsOtpOperationFull extends OperationFull {
|
|
488
485
|
readonly postResponse: StepHelper<SmsOTPOperationPostResponseStart>;
|
|
489
486
|
readonly resend: StepHelper;
|
|
490
|
-
constructor(tracker: CorbadoTracker
|
|
487
|
+
constructor(tracker: CorbadoTracker);
|
|
491
488
|
}
|
|
492
489
|
|
|
493
490
|
type EmailLinkOperationSpecType = "email-link-login" | "email-link-enrollment";
|
|
@@ -520,15 +517,12 @@ type PasskeyEnrollmentCeremonyStart = {
|
|
|
520
517
|
type PasskeyEnrollmentCeremonyFinished = {
|
|
521
518
|
attestationResponse: string;
|
|
522
519
|
};
|
|
523
|
-
type PasskeyEnrollmentOperationConfig = {
|
|
524
|
-
explicitSpecType?: PasskeyOperationEnrollmentExplicitSpecType;
|
|
525
|
-
};
|
|
526
520
|
declare class PasskeyEnrollmentOperationFull extends OperationFull {
|
|
527
521
|
readonly getOptions: StepHelper<PasskeyEnrollmentGetOptionsStart, PasskeyEnrollmentGetOptionsFinished>;
|
|
528
522
|
readonly ceremony: StepHelper<PasskeyEnrollmentCeremonyStart, PasskeyEnrollmentCeremonyFinished>;
|
|
529
523
|
readonly postResponse: StepHelper;
|
|
530
524
|
private lowEventTracker;
|
|
531
|
-
constructor(tracker: CorbadoTracker
|
|
525
|
+
constructor(tracker: CorbadoTracker);
|
|
532
526
|
destroy(): void;
|
|
533
527
|
}
|
|
534
528
|
|
|
@@ -737,8 +731,6 @@ interface TrackerOptions {
|
|
|
737
731
|
* It will be removed in a future release.
|
|
738
732
|
*/
|
|
739
733
|
flushInterval?: number;
|
|
740
|
-
/** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
|
|
741
|
-
sessionIdGenerator?: () => string;
|
|
742
734
|
}
|
|
743
735
|
declare class CorbadoTracker {
|
|
744
736
|
private options;
|
|
@@ -813,7 +805,6 @@ declare class CorbadoTracker {
|
|
|
813
805
|
*/
|
|
814
806
|
private resolveExperiments;
|
|
815
807
|
private isTrackingBlocked;
|
|
816
|
-
private createSessionId;
|
|
817
808
|
private getSessionId;
|
|
818
809
|
/**
|
|
819
810
|
* Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
|
|
@@ -1049,12 +1040,12 @@ declare class CorbadoTracker {
|
|
|
1049
1040
|
*/
|
|
1050
1041
|
lowEventFlushKeepalive(): void;
|
|
1051
1042
|
passkeyLoginFullOperation(): PasskeyLoginOperationFull;
|
|
1052
|
-
passkeyEnrollmentFullOperation(
|
|
1043
|
+
passkeyEnrollmentFullOperation(): PasskeyEnrollmentOperationFull;
|
|
1053
1044
|
passwordLoginFullOperation(autoTrackConfig?: PasswordLoginAutoTrackConfig): PasswordLoginOperationFull;
|
|
1054
1045
|
passwordEnrollmentFullOperation(autoTrackConfig?: PasswordEnrollmentAutoTrackConfig): PasswordEnrollmentOperationFull;
|
|
1055
1046
|
emailLinkOperationFull(): EmailLinkOperationFull;
|
|
1056
1047
|
emailOtpOperationFull(): EmailOtpOperationFull;
|
|
1057
|
-
smsOtpOperationFull(
|
|
1048
|
+
smsOtpOperationFull(): SmsOtpOperationFull;
|
|
1058
1049
|
provideIdentifierOperationFull(inputHtmlField?: HTMLInputElement): OperationFullProvideIdentifierWithCUI;
|
|
1059
1050
|
provideDataOperationFull(config?: ProvideDataOperationConfig): ProvideDataOperationFull;
|
|
1060
1051
|
socialLoginOperationFull(): SocialLoginOperationFull;
|
|
@@ -1502,4 +1493,4 @@ declare function logInfo(message: string): void;
|
|
|
1502
1493
|
declare function logError(message: string): void;
|
|
1503
1494
|
declare function destroy(): Promise<void>;
|
|
1504
1495
|
|
|
1505
|
-
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_SEQ_LOCK_TIMEOUT_MS, 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,
|
|
1496
|
+
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_SEQ_LOCK_TIMEOUT_MS, 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 };
|