@corbado/observe 0.7.0-next.56-271d0de → 0.7.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 -22
- package/dist/index.d.ts +2 -22
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ interface SdkInfo {
|
|
|
4
4
|
}
|
|
5
5
|
type EventType = "predefined" | "custom" | "error" | "identify";
|
|
6
6
|
type AuthMethodType = "identifier-email" | "passkey-login-known-identifier" | "passkey-login-no-identifier" | "passkey-login-cui" | "passkey-login-immediate" | "passkey-enrollment" | "password-login-known-identifier" | "password-login-with-identifier" | "password-enrollment" | "email-otp-login" | "email-otp-enrollment" | "email-link-login" | "email-link-enrollment" | "social-google" | "social-apple" | "social-facebook" | "social-other" | "reset-flow";
|
|
7
|
-
type SubflowType = "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sms-otp" | "provide-identifier" | "provide-data" | "password-login" | "password-enrollment" | "totp"
|
|
7
|
+
type SubflowType = "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sms-otp" | "provide-identifier" | "provide-data" | "password-login" | "password-enrollment" | "totp";
|
|
8
8
|
type FlowType = "login" | "signup" | "recovery" | "enrollment" | (string & {});
|
|
9
9
|
type SocialLoginProviderType = "google" | "apple" | "facebook" | "github" | "microsoft" | "other";
|
|
10
10
|
declare enum AuthEventName {
|
|
@@ -625,22 +625,6 @@ declare class SocialLoginOperationFull extends OperationFull {
|
|
|
625
625
|
constructor(tracker: CorbadoTracker);
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
type AppConfirmationOperationSpecType = "qr-code";
|
|
629
|
-
type AppConfirmationOperationStart = {
|
|
630
|
-
explicitSpecType?: AppConfirmationOperationSpecType;
|
|
631
|
-
};
|
|
632
|
-
type AppConfirmationOperationCeremonyTypedError = {
|
|
633
|
-
code: AppConfirmationOperationCeremonyTypedErrorCode;
|
|
634
|
-
};
|
|
635
|
-
type AppConfirmationOperationCeremonyTypedErrorCode = "declined" | "expired";
|
|
636
|
-
type AppConfirmationOperationRetryReason = AppConfirmationOperationCeremonyTypedErrorCode | "technical-error" | "manual";
|
|
637
|
-
declare class AppConfirmationOperationFull extends OperationFull {
|
|
638
|
-
readonly ceremony: StepHelper<{}, {}, AppConfirmationOperationCeremonyTypedError>;
|
|
639
|
-
readonly retry: StepHelper;
|
|
640
|
-
readonly postResponse: StepHelper;
|
|
641
|
-
constructor(tracker: CorbadoTracker, explicitSpecType?: AppConfirmationOperationSpecType);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
628
|
interface TrackerOptions {
|
|
645
629
|
projectId: string;
|
|
646
630
|
apiBaseUrl: string;
|
|
@@ -664,8 +648,6 @@ interface TrackerOptions {
|
|
|
664
648
|
* It will be removed in a future release.
|
|
665
649
|
*/
|
|
666
650
|
flushInterval?: number;
|
|
667
|
-
/** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
|
|
668
|
-
sessionIdGenerator?: () => string;
|
|
669
651
|
}
|
|
670
652
|
declare class CorbadoTracker {
|
|
671
653
|
private options;
|
|
@@ -737,7 +719,6 @@ declare class CorbadoTracker {
|
|
|
737
719
|
*/
|
|
738
720
|
private resolveExperiments;
|
|
739
721
|
private isTrackingBlocked;
|
|
740
|
-
private createSessionId;
|
|
741
722
|
private getSessionId;
|
|
742
723
|
/**
|
|
743
724
|
* Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
|
|
@@ -953,7 +934,6 @@ declare class CorbadoTracker {
|
|
|
953
934
|
smsOtpOperationFull(): SmsOtpOperationFull;
|
|
954
935
|
provideIdentifierOperationFull(inputHtmlField?: HTMLInputElement): OperationFullProvideIdentifierWithCUI;
|
|
955
936
|
socialLoginOperationFull(): SocialLoginOperationFull;
|
|
956
|
-
appConfirmationOperationFull(explicitSpecType?: AppConfirmationOperationSpecType): AppConfirmationOperationFull;
|
|
957
937
|
/**
|
|
958
938
|
* Flush any pending events and release all resources (timers, event listeners).
|
|
959
939
|
*
|
|
@@ -1369,4 +1349,4 @@ declare function clearExperiments(): void;
|
|
|
1369
1349
|
declare function getExperiments(): Record<string, string>;
|
|
1370
1350
|
declare function destroy(): Promise<void>;
|
|
1371
1351
|
|
|
1372
|
-
export { type
|
|
1352
|
+
export { 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 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 TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type UserReference, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, getExperiments, getTracker, init, loadCachedConfig, parseReliabilityConfig, resetSession, setExperiment, setExperiments };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface SdkInfo {
|
|
|
4
4
|
}
|
|
5
5
|
type EventType = "predefined" | "custom" | "error" | "identify";
|
|
6
6
|
type AuthMethodType = "identifier-email" | "passkey-login-known-identifier" | "passkey-login-no-identifier" | "passkey-login-cui" | "passkey-login-immediate" | "passkey-enrollment" | "password-login-known-identifier" | "password-login-with-identifier" | "password-enrollment" | "email-otp-login" | "email-otp-enrollment" | "email-link-login" | "email-link-enrollment" | "social-google" | "social-apple" | "social-facebook" | "social-other" | "reset-flow";
|
|
7
|
-
type SubflowType = "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sms-otp" | "provide-identifier" | "provide-data" | "password-login" | "password-enrollment" | "totp"
|
|
7
|
+
type SubflowType = "passkey-enrollment" | "passkey-login" | "email-otp" | "email-link" | "social-login" | "sms-otp" | "provide-identifier" | "provide-data" | "password-login" | "password-enrollment" | "totp";
|
|
8
8
|
type FlowType = "login" | "signup" | "recovery" | "enrollment" | (string & {});
|
|
9
9
|
type SocialLoginProviderType = "google" | "apple" | "facebook" | "github" | "microsoft" | "other";
|
|
10
10
|
declare enum AuthEventName {
|
|
@@ -625,22 +625,6 @@ declare class SocialLoginOperationFull extends OperationFull {
|
|
|
625
625
|
constructor(tracker: CorbadoTracker);
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
type AppConfirmationOperationSpecType = "qr-code";
|
|
629
|
-
type AppConfirmationOperationStart = {
|
|
630
|
-
explicitSpecType?: AppConfirmationOperationSpecType;
|
|
631
|
-
};
|
|
632
|
-
type AppConfirmationOperationCeremonyTypedError = {
|
|
633
|
-
code: AppConfirmationOperationCeremonyTypedErrorCode;
|
|
634
|
-
};
|
|
635
|
-
type AppConfirmationOperationCeremonyTypedErrorCode = "declined" | "expired";
|
|
636
|
-
type AppConfirmationOperationRetryReason = AppConfirmationOperationCeremonyTypedErrorCode | "technical-error" | "manual";
|
|
637
|
-
declare class AppConfirmationOperationFull extends OperationFull {
|
|
638
|
-
readonly ceremony: StepHelper<{}, {}, AppConfirmationOperationCeremonyTypedError>;
|
|
639
|
-
readonly retry: StepHelper;
|
|
640
|
-
readonly postResponse: StepHelper;
|
|
641
|
-
constructor(tracker: CorbadoTracker, explicitSpecType?: AppConfirmationOperationSpecType);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
628
|
interface TrackerOptions {
|
|
645
629
|
projectId: string;
|
|
646
630
|
apiBaseUrl: string;
|
|
@@ -664,8 +648,6 @@ interface TrackerOptions {
|
|
|
664
648
|
* It will be removed in a future release.
|
|
665
649
|
*/
|
|
666
650
|
flushInterval?: number;
|
|
667
|
-
/** Generates new Observe session ids; returned values must be UUID-compatible. Existing stored sessions are still reused. */
|
|
668
|
-
sessionIdGenerator?: () => string;
|
|
669
651
|
}
|
|
670
652
|
declare class CorbadoTracker {
|
|
671
653
|
private options;
|
|
@@ -737,7 +719,6 @@ declare class CorbadoTracker {
|
|
|
737
719
|
*/
|
|
738
720
|
private resolveExperiments;
|
|
739
721
|
private isTrackingBlocked;
|
|
740
|
-
private createSessionId;
|
|
741
722
|
private getSessionId;
|
|
742
723
|
/**
|
|
743
724
|
* Resolve the session id from localStorage so it survives reloads and is shared across tabs of the
|
|
@@ -953,7 +934,6 @@ declare class CorbadoTracker {
|
|
|
953
934
|
smsOtpOperationFull(): SmsOtpOperationFull;
|
|
954
935
|
provideIdentifierOperationFull(inputHtmlField?: HTMLInputElement): OperationFullProvideIdentifierWithCUI;
|
|
955
936
|
socialLoginOperationFull(): SocialLoginOperationFull;
|
|
956
|
-
appConfirmationOperationFull(explicitSpecType?: AppConfirmationOperationSpecType): AppConfirmationOperationFull;
|
|
957
937
|
/**
|
|
958
938
|
* Flush any pending events and release all resources (timers, event listeners).
|
|
959
939
|
*
|
|
@@ -1369,4 +1349,4 @@ declare function clearExperiments(): void;
|
|
|
1369
1349
|
declare function getExperiments(): Record<string, string>;
|
|
1370
1350
|
declare function destroy(): Promise<void>;
|
|
1371
1351
|
|
|
1372
|
-
export { type
|
|
1352
|
+
export { 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 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 TrackerOptions, type Transport, type TransportMakeRequestResponse, type TransportOptions, type UserReference, cacheConfig, clearExperiment, clearExperiments, createLogger, destroy, getExperiments, getTracker, init, loadCachedConfig, parseReliabilityConfig, resetSession, setExperiment, setExperiments };
|