@tern-secure/types 1.1.0-canary.v20251003134325 → 1.1.0-canary.v20251008131428
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 +23 -9
- package/dist/index.d.ts +23 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -123,6 +123,10 @@ interface TernSecureAPIError {
|
|
|
123
123
|
code: string;
|
|
124
124
|
message: string;
|
|
125
125
|
}
|
|
126
|
+
interface TernSecureFireRestError extends TernSecureAPIError {
|
|
127
|
+
domain: string;
|
|
128
|
+
reason: string;
|
|
129
|
+
}
|
|
126
130
|
|
|
127
131
|
interface CookieStore {
|
|
128
132
|
get(name: string): Promise<{
|
|
@@ -132,11 +136,14 @@ interface CookieStore {
|
|
|
132
136
|
delete(name: string): Promise<void>;
|
|
133
137
|
}
|
|
134
138
|
interface CookieOptions {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
httpOnly?: boolean | undefined;
|
|
140
|
+
path?: string | undefined;
|
|
141
|
+
partitioned?: boolean | undefined;
|
|
142
|
+
maxAge?: number | undefined;
|
|
143
|
+
expires?: Date | undefined;
|
|
144
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
145
|
+
sameSite?: 'strict' | 'lax' | 'none' | undefined;
|
|
146
|
+
secure?: boolean | undefined;
|
|
140
147
|
}
|
|
141
148
|
|
|
142
149
|
type AuthErrorCode = keyof typeof ERRORS;
|
|
@@ -187,22 +194,25 @@ interface CorsOptions {
|
|
|
187
194
|
skipSameOrigin?: boolean;
|
|
188
195
|
}
|
|
189
196
|
interface SessionCookieConfig {
|
|
190
|
-
domain?: string;
|
|
191
197
|
path?: string;
|
|
192
198
|
httpOnly?: boolean;
|
|
193
199
|
sameSite?: 'strict' | 'lax' | 'none';
|
|
200
|
+
partitioned?: boolean;
|
|
194
201
|
maxAge?: number;
|
|
202
|
+
priority?: 'low' | 'medium' | 'high';
|
|
195
203
|
}
|
|
196
204
|
interface TokenCookieConfig {
|
|
197
|
-
domain?: string;
|
|
198
205
|
path: string;
|
|
199
206
|
httpOnly: boolean;
|
|
200
207
|
sameSite: 'strict' | 'lax' | 'none';
|
|
208
|
+
partitioned?: boolean;
|
|
201
209
|
maxAge: number;
|
|
210
|
+
expires?: Date;
|
|
211
|
+
priority?: 'low' | 'medium' | 'high';
|
|
202
212
|
}
|
|
203
213
|
interface CookieOpts extends CookieOptions {
|
|
204
|
-
namePrefix?: string;
|
|
205
214
|
domain?: string;
|
|
215
|
+
namePrefix?: string;
|
|
206
216
|
session?: SessionCookieConfig;
|
|
207
217
|
}
|
|
208
218
|
interface RateLimitOptions {
|
|
@@ -1092,6 +1102,10 @@ interface TernSecureApiErrorJSON {
|
|
|
1092
1102
|
code: string;
|
|
1093
1103
|
message: string;
|
|
1094
1104
|
}
|
|
1105
|
+
interface TernSecureFireRestErrorJSON extends TernSecureApiErrorJSON {
|
|
1106
|
+
domain: string;
|
|
1107
|
+
reason: string;
|
|
1108
|
+
}
|
|
1095
1109
|
|
|
1096
1110
|
type UseAuthReturn = {
|
|
1097
1111
|
userId: string | null | undefined;
|
|
@@ -1128,4 +1142,4 @@ type DomainOrProxyUrl = {
|
|
|
1128
1142
|
*/
|
|
1129
1143
|
type Autocomplete<U extends T, T = string> = U | (T & Record<never, never>);
|
|
1130
1144
|
|
|
1131
|
-
export { type ActiveSession, type AdminConfigValidationResult, type AfterSignOutUrl, type Appearance, type AuthActions, type AuthEndpoint, type AuthError, type AuthErrorCode, type AuthErrorResponse, type AuthErrorTree, type AuthProviderStatus, type Autocomplete, type BaseAuthUIConfig, type CheckAuthorizationFromSessionClaims, type CheckCustomClaims, type ConfigValidationResult, type CookieOptions, type CookieOpts, type CookieStore, type CorsOptions, DEFAULT_TERN_SECURE_STATE, type DecodedIdToken, type DomainOrProxyUrl, ERRORS, type EndpointConfig, type ErrorCode, type ExpiredSession, type FirebaseClaims, type FirebaseState, type IdTokenResult, type InitialState, type InstanceType, type JWTPayload, type JWTProtectedHeader, type Jwt, type ListenerCallback, type ParsedToken, type PendingSession, type Persistence, type RateLimitOptions, type RedirectConfig, type RedirectOptions, type ResendEmailVerification, type SecurityOptions, type ServerConfigValidationResult, type SessionCookieConfig, type SessionEndpointConfig, type SessionParams, type SessionResult, type SessionStatus, type SessionSubEndpoint, type SharedSignInAuthObjectProperties, type SignInFormValuesTree, type SignInInitialValue, type SignInInitialValueTree, type SignInProps, type SignInPropsTree, type SignInRedirectOptions, type SignInRedirectUrl, type SignInResource, type SignInResponse, type SignInResponseTree, type SignInStatus, type SignInUIConfig, type SignOut, type SignOutOptions, type SignOutOptionsTree, type SignUpFormValuesTree, type SignUpInitialValue, type SignUpInitialValueTree, type SignUpProps, type SignUpPropsTree, type SignUpRedirectOptions, type SignUpRedirectUrl, type SignUpResource, type SignUpStatus, type SignUpUIConfig, type SignedInSession, type TernAuthEventPayload, type TernAuthListenerEvent, type TernAuthListenerEventPayload, type TernAuthSDK, type TernSecureAPIError, type TernSecureAdminConfig, type TernSecureApiErrorJSON, type TernSecureAuth, type TernSecureAuthFactory, type TernSecureAuthOptions, type TernSecureAuthProvider, type TernSecureAuthStatus, type TernSecureConfig, type TernSecureHandlerOptions, type TernSecureInstance, type TernSecureInstanceOld, type TernSecureInstanceTree, type TernSecureInstanceTreeOptions, type TernSecureInstanceTreeStatus, type TernSecureOptions, type TernSecureResources, type TernSecureSDK, type TernSecureServerConfig, type TernSecureSession, type TernSecureSessionTree, type TernSecureState, type TernSecureUser, type TernSecureUserData, type TernVerificationResult, type ThemeBorderRadius, type ThemeColors, type ThemeComponentStyles, type ThemeFonts, type ThemeSpacing, type TokenCookieConfig, type UnsubscribeCallback, type UseAuthReturn, type UseSignInReturn, type UserInfo, type VerifiedTokens, isSignInResponse, isSignInResponseTree };
|
|
1145
|
+
export { type ActiveSession, type AdminConfigValidationResult, type AfterSignOutUrl, type Appearance, type AuthActions, type AuthEndpoint, type AuthError, type AuthErrorCode, type AuthErrorResponse, type AuthErrorTree, type AuthProviderStatus, type Autocomplete, type BaseAuthUIConfig, type CheckAuthorizationFromSessionClaims, type CheckCustomClaims, type ConfigValidationResult, type CookieOptions, type CookieOpts, type CookieStore, type CorsOptions, DEFAULT_TERN_SECURE_STATE, type DecodedIdToken, type DomainOrProxyUrl, ERRORS, type EndpointConfig, type ErrorCode, type ExpiredSession, type FirebaseClaims, type FirebaseState, type IdTokenResult, type InitialState, type InstanceType, type JWTPayload, type JWTProtectedHeader, type Jwt, type ListenerCallback, type ParsedToken, type PendingSession, type Persistence, type RateLimitOptions, type RedirectConfig, type RedirectOptions, type ResendEmailVerification, type SecurityOptions, type ServerConfigValidationResult, type SessionCookieConfig, type SessionEndpointConfig, type SessionParams, type SessionResult, type SessionStatus, type SessionSubEndpoint, type SharedSignInAuthObjectProperties, type SignInFormValuesTree, type SignInInitialValue, type SignInInitialValueTree, type SignInProps, type SignInPropsTree, type SignInRedirectOptions, type SignInRedirectUrl, type SignInResource, type SignInResponse, type SignInResponseTree, type SignInStatus, type SignInUIConfig, type SignOut, type SignOutOptions, type SignOutOptionsTree, type SignUpFormValuesTree, type SignUpInitialValue, type SignUpInitialValueTree, type SignUpProps, type SignUpPropsTree, type SignUpRedirectOptions, type SignUpRedirectUrl, type SignUpResource, type SignUpStatus, type SignUpUIConfig, type SignedInSession, type TernAuthEventPayload, type TernAuthListenerEvent, type TernAuthListenerEventPayload, type TernAuthSDK, type TernSecureAPIError, type TernSecureAdminConfig, type TernSecureApiErrorJSON, type TernSecureAuth, type TernSecureAuthFactory, type TernSecureAuthOptions, type TernSecureAuthProvider, type TernSecureAuthStatus, type TernSecureConfig, type TernSecureFireRestError, type TernSecureFireRestErrorJSON, type TernSecureHandlerOptions, type TernSecureInstance, type TernSecureInstanceOld, type TernSecureInstanceTree, type TernSecureInstanceTreeOptions, type TernSecureInstanceTreeStatus, type TernSecureOptions, type TernSecureResources, type TernSecureSDK, type TernSecureServerConfig, type TernSecureSession, type TernSecureSessionTree, type TernSecureState, type TernSecureUser, type TernSecureUserData, type TernVerificationResult, type ThemeBorderRadius, type ThemeColors, type ThemeComponentStyles, type ThemeFonts, type ThemeSpacing, type TokenCookieConfig, type UnsubscribeCallback, type UseAuthReturn, type UseSignInReturn, type UserInfo, type VerifiedTokens, isSignInResponse, isSignInResponseTree };
|
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ interface TernSecureAPIError {
|
|
|
123
123
|
code: string;
|
|
124
124
|
message: string;
|
|
125
125
|
}
|
|
126
|
+
interface TernSecureFireRestError extends TernSecureAPIError {
|
|
127
|
+
domain: string;
|
|
128
|
+
reason: string;
|
|
129
|
+
}
|
|
126
130
|
|
|
127
131
|
interface CookieStore {
|
|
128
132
|
get(name: string): Promise<{
|
|
@@ -132,11 +136,14 @@ interface CookieStore {
|
|
|
132
136
|
delete(name: string): Promise<void>;
|
|
133
137
|
}
|
|
134
138
|
interface CookieOptions {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
httpOnly?: boolean | undefined;
|
|
140
|
+
path?: string | undefined;
|
|
141
|
+
partitioned?: boolean | undefined;
|
|
142
|
+
maxAge?: number | undefined;
|
|
143
|
+
expires?: Date | undefined;
|
|
144
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
145
|
+
sameSite?: 'strict' | 'lax' | 'none' | undefined;
|
|
146
|
+
secure?: boolean | undefined;
|
|
140
147
|
}
|
|
141
148
|
|
|
142
149
|
type AuthErrorCode = keyof typeof ERRORS;
|
|
@@ -187,22 +194,25 @@ interface CorsOptions {
|
|
|
187
194
|
skipSameOrigin?: boolean;
|
|
188
195
|
}
|
|
189
196
|
interface SessionCookieConfig {
|
|
190
|
-
domain?: string;
|
|
191
197
|
path?: string;
|
|
192
198
|
httpOnly?: boolean;
|
|
193
199
|
sameSite?: 'strict' | 'lax' | 'none';
|
|
200
|
+
partitioned?: boolean;
|
|
194
201
|
maxAge?: number;
|
|
202
|
+
priority?: 'low' | 'medium' | 'high';
|
|
195
203
|
}
|
|
196
204
|
interface TokenCookieConfig {
|
|
197
|
-
domain?: string;
|
|
198
205
|
path: string;
|
|
199
206
|
httpOnly: boolean;
|
|
200
207
|
sameSite: 'strict' | 'lax' | 'none';
|
|
208
|
+
partitioned?: boolean;
|
|
201
209
|
maxAge: number;
|
|
210
|
+
expires?: Date;
|
|
211
|
+
priority?: 'low' | 'medium' | 'high';
|
|
202
212
|
}
|
|
203
213
|
interface CookieOpts extends CookieOptions {
|
|
204
|
-
namePrefix?: string;
|
|
205
214
|
domain?: string;
|
|
215
|
+
namePrefix?: string;
|
|
206
216
|
session?: SessionCookieConfig;
|
|
207
217
|
}
|
|
208
218
|
interface RateLimitOptions {
|
|
@@ -1092,6 +1102,10 @@ interface TernSecureApiErrorJSON {
|
|
|
1092
1102
|
code: string;
|
|
1093
1103
|
message: string;
|
|
1094
1104
|
}
|
|
1105
|
+
interface TernSecureFireRestErrorJSON extends TernSecureApiErrorJSON {
|
|
1106
|
+
domain: string;
|
|
1107
|
+
reason: string;
|
|
1108
|
+
}
|
|
1095
1109
|
|
|
1096
1110
|
type UseAuthReturn = {
|
|
1097
1111
|
userId: string | null | undefined;
|
|
@@ -1128,4 +1142,4 @@ type DomainOrProxyUrl = {
|
|
|
1128
1142
|
*/
|
|
1129
1143
|
type Autocomplete<U extends T, T = string> = U | (T & Record<never, never>);
|
|
1130
1144
|
|
|
1131
|
-
export { type ActiveSession, type AdminConfigValidationResult, type AfterSignOutUrl, type Appearance, type AuthActions, type AuthEndpoint, type AuthError, type AuthErrorCode, type AuthErrorResponse, type AuthErrorTree, type AuthProviderStatus, type Autocomplete, type BaseAuthUIConfig, type CheckAuthorizationFromSessionClaims, type CheckCustomClaims, type ConfigValidationResult, type CookieOptions, type CookieOpts, type CookieStore, type CorsOptions, DEFAULT_TERN_SECURE_STATE, type DecodedIdToken, type DomainOrProxyUrl, ERRORS, type EndpointConfig, type ErrorCode, type ExpiredSession, type FirebaseClaims, type FirebaseState, type IdTokenResult, type InitialState, type InstanceType, type JWTPayload, type JWTProtectedHeader, type Jwt, type ListenerCallback, type ParsedToken, type PendingSession, type Persistence, type RateLimitOptions, type RedirectConfig, type RedirectOptions, type ResendEmailVerification, type SecurityOptions, type ServerConfigValidationResult, type SessionCookieConfig, type SessionEndpointConfig, type SessionParams, type SessionResult, type SessionStatus, type SessionSubEndpoint, type SharedSignInAuthObjectProperties, type SignInFormValuesTree, type SignInInitialValue, type SignInInitialValueTree, type SignInProps, type SignInPropsTree, type SignInRedirectOptions, type SignInRedirectUrl, type SignInResource, type SignInResponse, type SignInResponseTree, type SignInStatus, type SignInUIConfig, type SignOut, type SignOutOptions, type SignOutOptionsTree, type SignUpFormValuesTree, type SignUpInitialValue, type SignUpInitialValueTree, type SignUpProps, type SignUpPropsTree, type SignUpRedirectOptions, type SignUpRedirectUrl, type SignUpResource, type SignUpStatus, type SignUpUIConfig, type SignedInSession, type TernAuthEventPayload, type TernAuthListenerEvent, type TernAuthListenerEventPayload, type TernAuthSDK, type TernSecureAPIError, type TernSecureAdminConfig, type TernSecureApiErrorJSON, type TernSecureAuth, type TernSecureAuthFactory, type TernSecureAuthOptions, type TernSecureAuthProvider, type TernSecureAuthStatus, type TernSecureConfig, type TernSecureHandlerOptions, type TernSecureInstance, type TernSecureInstanceOld, type TernSecureInstanceTree, type TernSecureInstanceTreeOptions, type TernSecureInstanceTreeStatus, type TernSecureOptions, type TernSecureResources, type TernSecureSDK, type TernSecureServerConfig, type TernSecureSession, type TernSecureSessionTree, type TernSecureState, type TernSecureUser, type TernSecureUserData, type TernVerificationResult, type ThemeBorderRadius, type ThemeColors, type ThemeComponentStyles, type ThemeFonts, type ThemeSpacing, type TokenCookieConfig, type UnsubscribeCallback, type UseAuthReturn, type UseSignInReturn, type UserInfo, type VerifiedTokens, isSignInResponse, isSignInResponseTree };
|
|
1145
|
+
export { type ActiveSession, type AdminConfigValidationResult, type AfterSignOutUrl, type Appearance, type AuthActions, type AuthEndpoint, type AuthError, type AuthErrorCode, type AuthErrorResponse, type AuthErrorTree, type AuthProviderStatus, type Autocomplete, type BaseAuthUIConfig, type CheckAuthorizationFromSessionClaims, type CheckCustomClaims, type ConfigValidationResult, type CookieOptions, type CookieOpts, type CookieStore, type CorsOptions, DEFAULT_TERN_SECURE_STATE, type DecodedIdToken, type DomainOrProxyUrl, ERRORS, type EndpointConfig, type ErrorCode, type ExpiredSession, type FirebaseClaims, type FirebaseState, type IdTokenResult, type InitialState, type InstanceType, type JWTPayload, type JWTProtectedHeader, type Jwt, type ListenerCallback, type ParsedToken, type PendingSession, type Persistence, type RateLimitOptions, type RedirectConfig, type RedirectOptions, type ResendEmailVerification, type SecurityOptions, type ServerConfigValidationResult, type SessionCookieConfig, type SessionEndpointConfig, type SessionParams, type SessionResult, type SessionStatus, type SessionSubEndpoint, type SharedSignInAuthObjectProperties, type SignInFormValuesTree, type SignInInitialValue, type SignInInitialValueTree, type SignInProps, type SignInPropsTree, type SignInRedirectOptions, type SignInRedirectUrl, type SignInResource, type SignInResponse, type SignInResponseTree, type SignInStatus, type SignInUIConfig, type SignOut, type SignOutOptions, type SignOutOptionsTree, type SignUpFormValuesTree, type SignUpInitialValue, type SignUpInitialValueTree, type SignUpProps, type SignUpPropsTree, type SignUpRedirectOptions, type SignUpRedirectUrl, type SignUpResource, type SignUpStatus, type SignUpUIConfig, type SignedInSession, type TernAuthEventPayload, type TernAuthListenerEvent, type TernAuthListenerEventPayload, type TernAuthSDK, type TernSecureAPIError, type TernSecureAdminConfig, type TernSecureApiErrorJSON, type TernSecureAuth, type TernSecureAuthFactory, type TernSecureAuthOptions, type TernSecureAuthProvider, type TernSecureAuthStatus, type TernSecureConfig, type TernSecureFireRestError, type TernSecureFireRestErrorJSON, type TernSecureHandlerOptions, type TernSecureInstance, type TernSecureInstanceOld, type TernSecureInstanceTree, type TernSecureInstanceTreeOptions, type TernSecureInstanceTreeStatus, type TernSecureOptions, type TernSecureResources, type TernSecureSDK, type TernSecureServerConfig, type TernSecureSession, type TernSecureSessionTree, type TernSecureState, type TernSecureUser, type TernSecureUserData, type TernVerificationResult, type ThemeBorderRadius, type ThemeColors, type ThemeComponentStyles, type ThemeFonts, type ThemeSpacing, type TokenCookieConfig, type UnsubscribeCallback, type UseAuthReturn, type UseSignInReturn, type UserInfo, type VerifiedTokens, isSignInResponse, isSignInResponseTree };
|