@rspress-theme-anatole/shared 0.7.21 → 0.7.22-alpha
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.ts +16 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -760,6 +760,17 @@ export declare type SSGConfig = boolean | {
|
|
|
760
760
|
strict?: boolean;
|
|
761
761
|
};
|
|
762
762
|
|
|
763
|
+
export declare interface AuthEndpoints {
|
|
764
|
+
/**
|
|
765
|
+
* Endpoint to sign in user
|
|
766
|
+
*/
|
|
767
|
+
signIn?: string;
|
|
768
|
+
/**
|
|
769
|
+
* Endpoint to get user context (e.g. user info, permissions, roles)
|
|
770
|
+
*/
|
|
771
|
+
userContext?: string;
|
|
772
|
+
}
|
|
773
|
+
|
|
763
774
|
export declare type AuthConfig = {
|
|
764
775
|
/**
|
|
765
776
|
* Enable/disable auth UI entirely.
|
|
@@ -767,16 +778,17 @@ export declare type AuthConfig = {
|
|
|
767
778
|
* @default true
|
|
768
779
|
*/
|
|
769
780
|
enabled?: boolean;
|
|
770
|
-
/**
|
|
771
|
-
* Sign in page URL.
|
|
772
|
-
*/
|
|
773
|
-
signInUrl?: string;
|
|
774
781
|
/**
|
|
775
782
|
* Show/hide the "Sign in" button when user is not logged in.
|
|
776
783
|
* @default true
|
|
777
784
|
*/
|
|
778
785
|
showSignInButton?: boolean;
|
|
786
|
+
/**
|
|
787
|
+
* Auth API endpoints
|
|
788
|
+
*/
|
|
789
|
+
endpoints?: AuthEndpoints;
|
|
779
790
|
}
|
|
791
|
+
|
|
780
792
|
export declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
|
|
781
793
|
/**
|
|
782
794
|
* Auth config for application
|