@teamhanko/hanko-frontend-sdk 2.2.1 → 2.3.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/lib/Dto.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export interface Email {
|
|
|
24
24
|
address: string;
|
|
25
25
|
is_verified: boolean;
|
|
26
26
|
is_primary: boolean;
|
|
27
|
-
identity
|
|
28
|
-
identities
|
|
27
|
+
identity?: Identity;
|
|
28
|
+
identities?: Identity[];
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* @interface
|
|
@@ -45,6 +45,7 @@ export interface Emails extends Array<Email> {
|
|
|
45
45
|
export interface Identity {
|
|
46
46
|
id: string;
|
|
47
47
|
provider: string;
|
|
48
|
+
readonly identity_id?: string;
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
51
|
* Represents the claims associated with a session or token. Includes standard claims such as `subject`, `issued_at`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContinueWithLoginIdentifierInputs, EmailCreateInputs, EmailDeleteInputs, EmailSetPrimaryInputs, EmailVerifyInputs, ExchangeTokenInputs, PasskeyCredentialDeleteInputs, PasskeyCredentialRenameInputs, PasswordRecoveryInputs, PasswordInputs, PatchMetadataInputs, RegisterClientCapabilitiesInputs, RegisterLoginIdentifierInputs, RegisterPasswordInputs, ThirdpartyOauthInputs, UsernameSetInputs, VerifyPasscodeInputs, WebauthnVerifyAssertionResponseInputs, WebauthnVerifyAttestationResponseInputs, SessionDeleteInputs, OTPCodeInputs, SecurityKeyDeleteInputs, RememberMeInputs } from "./input";
|
|
1
|
+
import { ContinueWithLoginIdentifierInputs, EmailCreateInputs, EmailDeleteInputs, EmailSetPrimaryInputs, EmailVerifyInputs, ExchangeTokenInputs, PasskeyCredentialDeleteInputs, PasskeyCredentialRenameInputs, PasswordRecoveryInputs, PasswordInputs, PatchMetadataInputs, RegisterClientCapabilitiesInputs, RegisterLoginIdentifierInputs, RegisterPasswordInputs, ThirdpartyOauthInputs, UsernameSetInputs, VerifyPasscodeInputs, WebauthnVerifyAssertionResponseInputs, WebauthnVerifyAttestationResponseInputs, SessionDeleteInputs, OTPCodeInputs, SecurityKeyDeleteInputs, RememberMeInputs, DisconnectThirdpartyInputs } from "./input";
|
|
2
2
|
export interface Action<TInputs> {
|
|
3
3
|
action: string;
|
|
4
4
|
href: string;
|
|
@@ -37,6 +37,8 @@ export interface ProfileInitActions {
|
|
|
37
37
|
readonly webauthn_credential_delete?: Action<PasskeyCredentialDeleteInputs>;
|
|
38
38
|
readonly webauthn_verify_attestation_response?: Action<WebauthnVerifyAttestationResponseInputs>;
|
|
39
39
|
readonly session_delete?: Action<SessionDeleteInputs>;
|
|
40
|
+
readonly connect_thirdparty_oauth_provider?: Action<ThirdpartyOauthInputs>;
|
|
41
|
+
readonly disconnect_thirdparty_oauth_provider?: Action<DisconnectThirdpartyInputs>;
|
|
40
42
|
}
|
|
41
43
|
export interface LoginMethodChooserActions {
|
|
42
44
|
readonly continue_to_password_login?: Action<null>;
|
|
@@ -84,6 +84,9 @@ export interface ThirdpartyOauthInputs {
|
|
|
84
84
|
readonly redirect_to: Input<string>;
|
|
85
85
|
readonly code_verifier?: Input<string>;
|
|
86
86
|
}
|
|
87
|
+
export interface DisconnectThirdpartyInputs {
|
|
88
|
+
readonly identity_id: Input<string>;
|
|
89
|
+
}
|
|
87
90
|
export interface RememberMeInputs {
|
|
88
91
|
readonly remember_me: Input<boolean>;
|
|
89
92
|
}
|
|
@@ -38,6 +38,7 @@ export interface Username {
|
|
|
38
38
|
export interface Identity {
|
|
39
39
|
readonly id: string;
|
|
40
40
|
readonly provider: string;
|
|
41
|
+
readonly identity_id?: string;
|
|
41
42
|
}
|
|
42
43
|
export interface Email {
|
|
43
44
|
readonly id: string;
|
|
@@ -63,6 +64,7 @@ export interface User {
|
|
|
63
64
|
readonly emails?: Email[];
|
|
64
65
|
readonly username?: Username;
|
|
65
66
|
readonly metadata?: UserMetadata;
|
|
67
|
+
readonly identities?: Identity[];
|
|
66
68
|
readonly created_at: string;
|
|
67
69
|
readonly updated_at: string;
|
|
68
70
|
}
|