@orangecheck/auth-client 2.5.1 → 2.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/index.d.mts CHANGED
@@ -106,9 +106,31 @@ interface OcSignInProps {
106
106
  wallet?: boolean;
107
107
  email?: boolean;
108
108
  };
109
+ linkPrompt?: boolean;
109
110
  className?: string;
110
111
  }
111
- declare function OcSignIn({ audience, returnTo, onSuccess, resolveReturnTo, authOrigin, initialPath, paths, className, }: OcSignInProps): React.ReactElement;
112
+ declare function OcSignIn({ audience, returnTo, onSuccess, resolveReturnTo, linkPrompt, authOrigin, initialPath, paths, className, }: OcSignInProps): React.ReactElement;
113
+
114
+ interface OcLinkedIdentity {
115
+ id: string;
116
+ kind: 'email' | 'btc';
117
+ value: string | null;
118
+ verified_at: string | null;
119
+ verification_method: 'email-otp' | 'bip322' | null;
120
+ is_primary: boolean;
121
+ }
122
+ interface OcLinkedIdentitiesProps {
123
+ authOrigin?: string;
124
+ className?: string;
125
+ onChange?: () => void;
126
+ }
127
+ declare function OcLinkedIdentities({ authOrigin, className, onChange, }: OcLinkedIdentitiesProps): React.ReactElement;
128
+ interface OcIdentityBondProps {
129
+ didOc: string;
130
+ btc: string;
131
+ className?: string;
132
+ }
133
+ declare function OcIdentityBond({ didOc, btc, className, }: OcIdentityBondProps): React.ReactElement;
112
134
 
113
135
  interface WebAuthnCredentialPublic {
114
136
  id: string;
@@ -192,4 +214,4 @@ declare function handleSudoRequired(body: {
192
214
  returnTo?: string;
193
215
  }): boolean;
194
216
 
195
- export { DEFAULT_CONFIG, type OcAccount, OcAccountChip, type OcAccountChipProps, OcAccountPill, type OcAccountPillProps, OcAddressInput, type OcAddressInputProps, type OcAuthConfig, OcSessionProvider, type OcSessionState, type OcSessionStatus, OcSignIn, OcSignInButton, type OcSignInButtonProps, type OcSignInProps, type RedirectToSudoArgs, type UseOcAddressSuggestionOptions, type UseOcAddressSuggestionReturn, type UseStepUpAuthReturn, type UseWebAuthnListReturn, type UseWebAuthnRegisterReturn, type WebAuthnAssertionStatus, type WebAuthnCredentialPublic, type WebAuthnListStatus, type WebAuthnRegisterResult, type WebAuthnRegisterStatus, type WebAuthnRemoveResult, type WebAuthnRenameResult, type WebAuthnStepUpResult, buildSignInUrl, handleSudoRequired, redirectToSudo, useOcAddressSuggestion, useOcSession, useOptionalOcSession, useStepUpAuth, useWebAuthnList, useWebAuthnRegister };
217
+ export { DEFAULT_CONFIG, type OcAccount, OcAccountChip, type OcAccountChipProps, OcAccountPill, type OcAccountPillProps, OcAddressInput, type OcAddressInputProps, type OcAuthConfig, OcIdentityBond, type OcIdentityBondProps, OcLinkedIdentities, type OcLinkedIdentitiesProps, type OcLinkedIdentity, OcSessionProvider, type OcSessionState, type OcSessionStatus, OcSignIn, OcSignInButton, type OcSignInButtonProps, type OcSignInProps, type RedirectToSudoArgs, type UseOcAddressSuggestionOptions, type UseOcAddressSuggestionReturn, type UseStepUpAuthReturn, type UseWebAuthnListReturn, type UseWebAuthnRegisterReturn, type WebAuthnAssertionStatus, type WebAuthnCredentialPublic, type WebAuthnListStatus, type WebAuthnRegisterResult, type WebAuthnRegisterStatus, type WebAuthnRemoveResult, type WebAuthnRenameResult, type WebAuthnStepUpResult, buildSignInUrl, handleSudoRequired, redirectToSudo, useOcAddressSuggestion, useOcSession, useOptionalOcSession, useStepUpAuth, useWebAuthnList, useWebAuthnRegister };
package/dist/index.d.ts CHANGED
@@ -106,9 +106,31 @@ interface OcSignInProps {
106
106
  wallet?: boolean;
107
107
  email?: boolean;
108
108
  };
109
+ linkPrompt?: boolean;
109
110
  className?: string;
110
111
  }
111
- declare function OcSignIn({ audience, returnTo, onSuccess, resolveReturnTo, authOrigin, initialPath, paths, className, }: OcSignInProps): React.ReactElement;
112
+ declare function OcSignIn({ audience, returnTo, onSuccess, resolveReturnTo, linkPrompt, authOrigin, initialPath, paths, className, }: OcSignInProps): React.ReactElement;
113
+
114
+ interface OcLinkedIdentity {
115
+ id: string;
116
+ kind: 'email' | 'btc';
117
+ value: string | null;
118
+ verified_at: string | null;
119
+ verification_method: 'email-otp' | 'bip322' | null;
120
+ is_primary: boolean;
121
+ }
122
+ interface OcLinkedIdentitiesProps {
123
+ authOrigin?: string;
124
+ className?: string;
125
+ onChange?: () => void;
126
+ }
127
+ declare function OcLinkedIdentities({ authOrigin, className, onChange, }: OcLinkedIdentitiesProps): React.ReactElement;
128
+ interface OcIdentityBondProps {
129
+ didOc: string;
130
+ btc: string;
131
+ className?: string;
132
+ }
133
+ declare function OcIdentityBond({ didOc, btc, className, }: OcIdentityBondProps): React.ReactElement;
112
134
 
113
135
  interface WebAuthnCredentialPublic {
114
136
  id: string;
@@ -192,4 +214,4 @@ declare function handleSudoRequired(body: {
192
214
  returnTo?: string;
193
215
  }): boolean;
194
216
 
195
- export { DEFAULT_CONFIG, type OcAccount, OcAccountChip, type OcAccountChipProps, OcAccountPill, type OcAccountPillProps, OcAddressInput, type OcAddressInputProps, type OcAuthConfig, OcSessionProvider, type OcSessionState, type OcSessionStatus, OcSignIn, OcSignInButton, type OcSignInButtonProps, type OcSignInProps, type RedirectToSudoArgs, type UseOcAddressSuggestionOptions, type UseOcAddressSuggestionReturn, type UseStepUpAuthReturn, type UseWebAuthnListReturn, type UseWebAuthnRegisterReturn, type WebAuthnAssertionStatus, type WebAuthnCredentialPublic, type WebAuthnListStatus, type WebAuthnRegisterResult, type WebAuthnRegisterStatus, type WebAuthnRemoveResult, type WebAuthnRenameResult, type WebAuthnStepUpResult, buildSignInUrl, handleSudoRequired, redirectToSudo, useOcAddressSuggestion, useOcSession, useOptionalOcSession, useStepUpAuth, useWebAuthnList, useWebAuthnRegister };
217
+ export { DEFAULT_CONFIG, type OcAccount, OcAccountChip, type OcAccountChipProps, OcAccountPill, type OcAccountPillProps, OcAddressInput, type OcAddressInputProps, type OcAuthConfig, OcIdentityBond, type OcIdentityBondProps, OcLinkedIdentities, type OcLinkedIdentitiesProps, type OcLinkedIdentity, OcSessionProvider, type OcSessionState, type OcSessionStatus, OcSignIn, OcSignInButton, type OcSignInButtonProps, type OcSignInProps, type RedirectToSudoArgs, type UseOcAddressSuggestionOptions, type UseOcAddressSuggestionReturn, type UseStepUpAuthReturn, type UseWebAuthnListReturn, type UseWebAuthnRegisterReturn, type WebAuthnAssertionStatus, type WebAuthnCredentialPublic, type WebAuthnListStatus, type WebAuthnRegisterResult, type WebAuthnRegisterStatus, type WebAuthnRemoveResult, type WebAuthnRenameResult, type WebAuthnStepUpResult, buildSignInUrl, handleSudoRequired, redirectToSudo, useOcAddressSuggestion, useOcSession, useOptionalOcSession, useStepUpAuth, useWebAuthnList, useWebAuthnRegister };