@burdenoff/microfe-auth 2026.524.1 → 2026.526.1
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/package.json +1 -1
- package/dist/auth/AuthRoot.d.ts +0 -30
- package/dist/auth/AuthRoot.d.ts.map +0 -1
- package/dist/auth/AuthRoutes.d.ts +0 -30
- package/dist/auth/AuthRoutes.d.ts.map +0 -1
- package/dist/auth/components/AuthIcons.d.ts +0 -17
- package/dist/auth/components/AuthIcons.d.ts.map +0 -1
- package/dist/auth/components/AuthLayout.d.ts +0 -17
- package/dist/auth/components/AuthLayout.d.ts.map +0 -1
- package/dist/auth/components/CaptchaV2.d.ts +0 -16
- package/dist/auth/components/CaptchaV2.d.ts.map +0 -1
- package/dist/auth/components/ConfirmActionDialog.d.ts +0 -16
- package/dist/auth/components/ConfirmActionDialog.d.ts.map +0 -1
- package/dist/auth/components/index.d.ts +0 -4
- package/dist/auth/components/index.d.ts.map +0 -1
- package/dist/auth/components/profile/UserProfileMenu.d.ts +0 -42
- package/dist/auth/components/profile/UserProfileMenu.d.ts.map +0 -1
- package/dist/auth/components/workspace/WorkspaceSelector.d.ts +0 -76
- package/dist/auth/components/workspace/WorkspaceSelector.d.ts.map +0 -1
- package/dist/auth/constants/permissions.d.ts +0 -30
- package/dist/auth/constants/permissions.d.ts.map +0 -1
- package/dist/auth/constants/sessionKeys.d.ts +0 -18
- package/dist/auth/constants/sessionKeys.d.ts.map +0 -1
- package/dist/auth/hooks/index.d.ts +0 -18
- package/dist/auth/hooks/index.d.ts.map +0 -1
- package/dist/auth/hooks/useAccountOperations.d.ts +0 -19
- package/dist/auth/hooks/useAccountOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useApiKeyOperations.d.ts +0 -26
- package/dist/auth/hooks/useApiKeyOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useAppOperations.d.ts +0 -30
- package/dist/auth/hooks/useAppOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useAuthOperations.d.ts +0 -57
- package/dist/auth/hooks/useAuthOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useAuthPermissions.d.ts +0 -20
- package/dist/auth/hooks/useAuthPermissions.d.ts.map +0 -1
- package/dist/auth/hooks/useCaptchaV3.d.ts +0 -13
- package/dist/auth/hooks/useCaptchaV3.d.ts.map +0 -1
- package/dist/auth/hooks/useContextSwitcherData.d.ts +0 -106
- package/dist/auth/hooks/useContextSwitcherData.d.ts.map +0 -1
- package/dist/auth/hooks/useDelegationOperations.d.ts +0 -33
- package/dist/auth/hooks/useDelegationOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useMfaOperations.d.ts +0 -18
- package/dist/auth/hooks/useMfaOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useMyWorkspaces.d.ts +0 -45
- package/dist/auth/hooks/useMyWorkspaces.d.ts.map +0 -1
- package/dist/auth/hooks/useOAuthOperations.d.ts +0 -19
- package/dist/auth/hooks/useOAuthOperations.d.ts.map +0 -1
- package/dist/auth/hooks/usePasswordOperations.d.ts +0 -13
- package/dist/auth/hooks/usePasswordOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useSessionOperations.d.ts +0 -52
- package/dist/auth/hooks/useSessionOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useSsoOperations.d.ts +0 -65
- package/dist/auth/hooks/useSsoOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useTokenRefresh.d.ts +0 -56
- package/dist/auth/hooks/useTokenRefresh.d.ts.map +0 -1
- package/dist/auth/hooks/useUserOperations.d.ts +0 -33
- package/dist/auth/hooks/useUserOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useWorkspaceOperations.d.ts +0 -35
- package/dist/auth/hooks/useWorkspaceOperations.d.ts.map +0 -1
- package/dist/auth/hooks/useWorkspaceToken.d.ts +0 -56
- package/dist/auth/hooks/useWorkspaceToken.d.ts.map +0 -1
- package/dist/auth/index.d.ts +0 -63
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/pages/AuditLogPage.d.ts +0 -12
- package/dist/auth/pages/AuditLogPage.d.ts.map +0 -1
- package/dist/auth/pages/EmailVerifyPage.d.ts +0 -5
- package/dist/auth/pages/EmailVerifyPage.d.ts.map +0 -1
- package/dist/auth/pages/LoginPage.d.ts +0 -6
- package/dist/auth/pages/LoginPage.d.ts.map +0 -1
- package/dist/auth/pages/MagicLinkPage.d.ts +0 -6
- package/dist/auth/pages/MagicLinkPage.d.ts.map +0 -1
- package/dist/auth/pages/MfaSetupPage.d.ts +0 -5
- package/dist/auth/pages/MfaSetupPage.d.ts.map +0 -1
- package/dist/auth/pages/MfaVerifyPage.d.ts +0 -7
- package/dist/auth/pages/MfaVerifyPage.d.ts.map +0 -1
- package/dist/auth/pages/OAuthCallbackPage.d.ts +0 -7
- package/dist/auth/pages/OAuthCallbackPage.d.ts.map +0 -1
- package/dist/auth/pages/PasswordResetPage.d.ts +0 -6
- package/dist/auth/pages/PasswordResetPage.d.ts.map +0 -1
- package/dist/auth/pages/ReactivatePage.d.ts +0 -6
- package/dist/auth/pages/ReactivatePage.d.ts.map +0 -1
- package/dist/auth/pages/RegisterPage.d.ts +0 -5
- package/dist/auth/pages/RegisterPage.d.ts.map +0 -1
- package/dist/auth/pages/SSOClearPage.d.ts +0 -22
- package/dist/auth/pages/SSOClearPage.d.ts.map +0 -1
- package/dist/auth/pages/SSODepositPage.d.ts +0 -24
- package/dist/auth/pages/SSODepositPage.d.ts.map +0 -1
- package/dist/auth/pages/SSORelayCallbackPage.d.ts +0 -8
- package/dist/auth/pages/SSORelayCallbackPage.d.ts.map +0 -1
- package/dist/auth/pages/SSORelayPage.d.ts +0 -18
- package/dist/auth/pages/SSORelayPage.d.ts.map +0 -1
- package/dist/auth/pages/SecurityPage.d.ts +0 -5
- package/dist/auth/pages/SecurityPage.d.ts.map +0 -1
- package/dist/auth/pages/SessionBridgePage.d.ts +0 -14
- package/dist/auth/pages/SessionBridgePage.d.ts.map +0 -1
- package/dist/auth/pages/SessionsPage.d.ts +0 -8
- package/dist/auth/pages/SessionsPage.d.ts.map +0 -1
- package/dist/auth/pages/SsoCallbackPage.d.ts +0 -8
- package/dist/auth/pages/SsoCallbackPage.d.ts.map +0 -1
- package/dist/auth/pages/SsoConfigPage.d.ts +0 -13
- package/dist/auth/pages/SsoConfigPage.d.ts.map +0 -1
- package/dist/auth/pages/SsoLoginPage.d.ts +0 -7
- package/dist/auth/pages/SsoLoginPage.d.ts.map +0 -1
- package/dist/auth/pages/UserDetailsPage.d.ts +0 -11
- package/dist/auth/pages/UserDetailsPage.d.ts.map +0 -1
- package/dist/auth/pages/UserProfilePage.d.ts +0 -5
- package/dist/auth/pages/UserProfilePage.d.ts.map +0 -1
- package/dist/auth/pages/UsersPage.d.ts +0 -5
- package/dist/auth/pages/UsersPage.d.ts.map +0 -1
- package/dist/auth/providers/AuthProvider.d.ts +0 -18
- package/dist/auth/providers/AuthProvider.d.ts.map +0 -1
- package/dist/auth/providers/CaptchaProvider.d.ts +0 -13
- package/dist/auth/providers/CaptchaProvider.d.ts.map +0 -1
- package/dist/auth/store/authStore.d.ts +0 -111
- package/dist/auth/store/authStore.d.ts.map +0 -1
- package/dist/auth/types/index.d.ts +0 -643
- package/dist/auth/types/index.d.ts.map +0 -1
- package/dist/auth/utils/captchaConfig.d.ts +0 -4
- package/dist/auth/utils/captchaConfig.d.ts.map +0 -1
- package/dist/auth/utils/formatters.d.ts +0 -37
- package/dist/auth/utils/formatters.d.ts.map +0 -1
- package/dist/auth/utils/gatewayBaseUrls.d.ts +0 -6
- package/dist/auth/utils/gatewayBaseUrls.d.ts.map +0 -1
- package/dist/auth/utils/index.d.ts +0 -3
- package/dist/auth/utils/index.d.ts.map +0 -1
- package/dist/auth/utils/validation.d.ts +0 -30
- package/dist/auth/utils/validation.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -3096
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23529
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -124
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/shared/hooks/index.d.ts +0 -7
- package/dist/shared/hooks/index.d.ts.map +0 -1
- package/dist/shared/index.d.ts +0 -6
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/types/index.d.ts +0 -109
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/translations/en.d.ts +0 -321
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
package/package.json
CHANGED
package/dist/auth/AuthRoot.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { AuthRootProps } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Root component for the Auth microfrontend.
|
|
6
|
-
*
|
|
7
|
-
* This is the main entry point that host applications import and render.
|
|
8
|
-
* It sets up the necessary providers and renders the internal routing.
|
|
9
|
-
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { AuthRoot, type AuthRootProps } from '@burdenoff/microfe-auth';
|
|
14
|
-
*
|
|
15
|
-
* function App() {
|
|
16
|
-
* const props: AuthRootProps = {
|
|
17
|
-
* basePath: '/auth',
|
|
18
|
-
* navigate: (path) => router.push(path),
|
|
19
|
-
* apiGatewayUrl: 'http://localhost:4002',
|
|
20
|
-
* authToken: 'token',
|
|
21
|
-
* onAuthSuccess: (user) => shellLogin(user),
|
|
22
|
-
* onLogout: () => shellLogout(),
|
|
23
|
-
* };
|
|
24
|
-
*
|
|
25
|
-
* return <AuthRoot {...props} />;
|
|
26
|
-
* }
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare const AuthRoot: FC<AuthRootProps>;
|
|
30
|
-
//# sourceMappingURL=AuthRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthRoot.d.ts","sourceRoot":"","sources":["../../src/auth/AuthRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQhC,OAAO,KAAK,EAAW,aAAa,EAAE,MAAM,SAAS,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAgJtC,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal router for the Auth microfrontend.
|
|
3
|
-
* This component handles routing within the microfrontend using React Router v7.
|
|
4
|
-
*
|
|
5
|
-
* When used within a parent route (e.g., <Route path="/auth/*">), all paths are relative:
|
|
6
|
-
* - login → Login page (accessible at /auth/login)
|
|
7
|
-
* - register → Registration page (accessible at /auth/register)
|
|
8
|
-
* - reset-password → Password reset page (accessible at /auth/reset-password)
|
|
9
|
-
* - verify-email → Email verification page (accessible at /auth/verify-email)
|
|
10
|
-
* - mfa-verify → MFA verification page (accessible at /auth/mfa-verify)
|
|
11
|
-
* - magic-link → Magic link authentication page (accessible at /auth/magic-link)
|
|
12
|
-
* - sso/login → SSO login page (accessible at /auth/sso/login)
|
|
13
|
-
* - sso/callback → SSO callback handler (accessible at /auth/sso/callback)
|
|
14
|
-
* - oauth/callback → OAuth callback handler (accessible at /auth/oauth/callback)
|
|
15
|
-
* - security → Security settings (protected, accessible at /auth/security)
|
|
16
|
-
* - sessions → Active sessions (protected, accessible at /auth/sessions)
|
|
17
|
-
* - mfa → MFA setup (protected, accessible at /auth/mfa)
|
|
18
|
-
* - api-keys → API keys management (protected, accessible at /auth/api-keys)
|
|
19
|
-
* - apps → Legacy redirect to Developer Portal app creation
|
|
20
|
-
* - users → Users management (protected, admin only, accessible at /auth/users)
|
|
21
|
-
* - profile → User profile page (protected, accessible at /auth/profile)
|
|
22
|
-
* - audit-log → Security audit log (protected, accessible at /auth/audit-log)
|
|
23
|
-
* - sso → SSO configuration (protected, admin only, accessible at /auth/sso)
|
|
24
|
-
*/
|
|
25
|
-
export declare function AuthRoutes({ basePath: _basePath, enableAdminRoutes, bypassEnterprisePlanGate, }: {
|
|
26
|
-
basePath?: string;
|
|
27
|
-
enableAdminRoutes?: boolean;
|
|
28
|
-
bypassEnterprisePlanGate?: boolean;
|
|
29
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
//# sourceMappingURL=AuthRoutes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthRoutes.d.ts","sourceRoot":"","sources":["../../src/auth/AuthRoutes.tsx"],"names":[],"mappings":"AAmMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EAAE,SAAc,EACxB,iBAAwB,EACxB,wBAAgC,GACjC,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,2CAkQA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
2
|
-
|
|
3
|
-
type IconProps = SVGProps<SVGSVGElement>;
|
|
4
|
-
export declare function EmailIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function LockIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function UserIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function EyeIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function EyeOffIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function CheckIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare function XIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare function AlertIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function SpinnerIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare function GoogleIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function GitHubIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function MicrosoftIcon(props: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=AuthIcons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthIcons.d.ts","sourceRoot":"","sources":["../../../src/auth/components/AuthIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,KAAK,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAEzC,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,2CAgBzC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,2CAgBxC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,2CAgBxC;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,2CAqBvC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,2CAgB1C;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,2CAgBzC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,SAAS,2CAgBrC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,2CAgBzC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,2CAkB3C;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,2CAqB1C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,2CAM1C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,2CAS7C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
interface AuthLayoutProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
productName?: string;
|
|
8
|
-
tagline?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Professional auth layout with split-screen design
|
|
12
|
-
* Left side: Branding with gradient background
|
|
13
|
-
* Right side: Auth form
|
|
14
|
-
*/
|
|
15
|
-
export declare function AuthLayout({ children, title, subtitle, productName, tagline, }: AuthLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=AuthLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthLayout.d.ts","sourceRoot":"","sources":["../../../src/auth/components/AuthLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAaD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,WAAW,EACX,OAAO,GACR,EAAE,eAAe,2CAkOjB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface CaptchaV2Props {
|
|
2
|
-
onVerify: (token: string | null) => void;
|
|
3
|
-
onExpired?: () => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* reCAPTCHA v2 checkbox component.
|
|
7
|
-
* Renders nothing when VITE_CAPTCHA_ENABLED is not "true".
|
|
8
|
-
* Lazily loads the Google reCAPTCHA library only when enabled.
|
|
9
|
-
*/
|
|
10
|
-
export declare function CaptchaV2({ onVerify, onExpired }: CaptchaV2Props): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
/**
|
|
12
|
-
* Check if captcha is enabled in this environment
|
|
13
|
-
*/
|
|
14
|
-
export declare function isCaptchaEnabled(): boolean;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=CaptchaV2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptchaV2.d.ts","sourceRoot":"","sources":["../../../src/auth/components/CaptchaV2.tsx"],"names":[],"mappings":"AAOA,UAAU,cAAc;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAgDD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,kDAqBhE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type ConfirmActionDialogVariant = "default" | "warning" | "danger";
|
|
2
|
-
interface ConfirmActionDialogProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
onOpenChange: (open: boolean) => void;
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
confirmText?: string;
|
|
8
|
-
cancelText?: string;
|
|
9
|
-
variant?: ConfirmActionDialogVariant;
|
|
10
|
-
isPending?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onConfirm: () => void | Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare function ConfirmActionDialog({ open, onOpenChange, title, description, confirmText, cancelText, variant, isPending, disabled, onConfirm, }: ConfirmActionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=ConfirmActionDialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmActionDialog.d.ts","sourceRoot":"","sources":["../../../src/auth/components/ConfirmActionDialog.tsx"],"names":[],"mappings":"AAYA,KAAK,0BAA0B,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnE,UAAU,wBAAwB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAkCD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,WAAuB,EACvB,UAAqB,EACrB,OAAmB,EACnB,SAAiB,EACjB,QAAgB,EAChB,SAAS,GACV,EAAE,wBAAwB,2CA+C1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface UserProfileMenuProps {
|
|
2
|
-
/**
|
|
3
|
-
* Callback when workspace switcher should be shown
|
|
4
|
-
*/
|
|
5
|
-
onSwitchWorkspace?: () => void;
|
|
6
|
-
/**
|
|
7
|
-
* Logout handler (REQUIRED)
|
|
8
|
-
* Should clear auth state and redirect to login
|
|
9
|
-
*/
|
|
10
|
-
onLogout: () => void;
|
|
11
|
-
/**
|
|
12
|
-
* Position of the dropdown menu
|
|
13
|
-
* @default 'right'
|
|
14
|
-
*/
|
|
15
|
-
position?: "left" | "right";
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* User Profile Menu Component
|
|
19
|
-
*
|
|
20
|
-
* Displays user avatar/icon with dropdown menu containing:
|
|
21
|
-
* - User information
|
|
22
|
-
* - Switch Workspace option
|
|
23
|
-
* - Logout button
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* import { UserProfileMenu } from '@burdenoff/microfe-auth';
|
|
28
|
-
*
|
|
29
|
-
* function AppHeader() {
|
|
30
|
-
* return (
|
|
31
|
-
* <div className="header">
|
|
32
|
-
* <UserProfileMenu
|
|
33
|
-
* onSwitchWorkspace={() => setShowWorkspaceSwitcher(true)}
|
|
34
|
-
* position="right"
|
|
35
|
-
* />
|
|
36
|
-
* </div>
|
|
37
|
-
* );
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare function UserProfileMenu({ onSwitchWorkspace, onLogout, position, }: UserProfileMenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
-
//# sourceMappingURL=UserProfileMenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfileMenu.d.ts","sourceRoot":"","sources":["../../../../src/auth/components/profile/UserProfileMenu.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE/B;;;OAGG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,iBAAiB,EACjB,QAAQ,EACR,QAAkB,GACnB,EAAE,oBAAoB,kDAmKtB"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Workspace } from '../../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Organization interface (grouped from workspaces)
|
|
5
|
-
*/
|
|
6
|
-
export interface Organization {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
workspaceCount: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Project interface (optional, for future use)
|
|
13
|
-
*/
|
|
14
|
-
export interface Project {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
workspaceId: string;
|
|
18
|
-
}
|
|
19
|
-
export interface WorkspaceSelectorProps {
|
|
20
|
-
/**
|
|
21
|
-
* Control modal visibility
|
|
22
|
-
*/
|
|
23
|
-
isOpen: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Callback when modal is closed without selection
|
|
26
|
-
*/
|
|
27
|
-
onClose: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* List of workspaces to choose from
|
|
30
|
-
*/
|
|
31
|
-
workspaces: Workspace[];
|
|
32
|
-
/**
|
|
33
|
-
* Optional list of projects (filtered by workspace)
|
|
34
|
-
*/
|
|
35
|
-
projects?: Project[];
|
|
36
|
-
/**
|
|
37
|
-
* Callback when workspace is selected and confirmed
|
|
38
|
-
*/
|
|
39
|
-
onSelect: (workspace: Workspace, project?: Project) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Loading state while issuing workspace token
|
|
42
|
-
*/
|
|
43
|
-
isLoading?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Error message to display
|
|
46
|
-
*/
|
|
47
|
-
error?: string | null;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* WorkspaceSelector Component
|
|
51
|
-
*
|
|
52
|
-
* Multi-level workspace selection modal for use across all Burdenoff products.
|
|
53
|
-
*
|
|
54
|
-
* Features:
|
|
55
|
-
* - Three-tier selection: Organization → Workspace → Project (optional)
|
|
56
|
-
* - Auto-select if only one option at each level
|
|
57
|
-
* - Loading and error states
|
|
58
|
-
* - Clean, accessible UI
|
|
59
|
-
*
|
|
60
|
-
* Usage:
|
|
61
|
-
* ```tsx
|
|
62
|
-
* import { WorkspaceSelector } from '@burdenoff/microfe-auth';
|
|
63
|
-
*
|
|
64
|
-
* <WorkspaceSelector
|
|
65
|
-
* isOpen={showSelector}
|
|
66
|
-
* onClose={() => setShowSelector(false)}
|
|
67
|
-
* workspaces={workspaces}
|
|
68
|
-
* onSelect={async (workspace) => {
|
|
69
|
-
* await issueWorkspaceToken(workspace.id);
|
|
70
|
-
* navigate('/');
|
|
71
|
-
* }}
|
|
72
|
-
* />
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
export declare function WorkspaceSelector({ isOpen, onClose, workspaces, projects, onSelect, isLoading, error, }: WorkspaceSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
76
|
-
//# sourceMappingURL=WorkspaceSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSelector.d.ts","sourceRoot":"","sources":["../../../../src/auth/components/workspace/WorkspaceSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,SAAS,EAAE,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE5D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,OAAO,EACP,UAAU,EACV,QAAa,EACb,QAAQ,EACR,SAAiB,EACjB,KAAY,GACb,EAAE,sBAAsB,kDAyVxB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auth Permission Constants
|
|
3
|
-
*
|
|
4
|
-
* Permission strings matching the @rbac directives on global-auth-svc.
|
|
5
|
-
* Only covers admin-facing operations — public auth flows (login, signup,
|
|
6
|
-
* password reset, MFA verify, OAuth, SSO) don't need RBAC.
|
|
7
|
-
* Self-service operations (own profile, sessions, API keys) are identity-scoped.
|
|
8
|
-
*
|
|
9
|
-
* Resource types and actions from global-rbac-svc seed:
|
|
10
|
-
* user: read, update, delete
|
|
11
|
-
* app: read, create, update
|
|
12
|
-
* sso-config: manage, delete
|
|
13
|
-
* oidc-config: manage, delete
|
|
14
|
-
* auth-method: update
|
|
15
|
-
*/
|
|
16
|
-
export declare const AUTH_PERMISSIONS: {
|
|
17
|
-
readonly USER_READ: "user:read";
|
|
18
|
-
readonly USER_UPDATE: "user:update";
|
|
19
|
-
readonly USER_DELETE: "user:delete";
|
|
20
|
-
readonly APP_READ: "app:read";
|
|
21
|
-
readonly APP_CREATE: "app:create";
|
|
22
|
-
readonly APP_UPDATE: "app:update";
|
|
23
|
-
readonly SSO_CONFIG_MANAGE: "sso-config:manage";
|
|
24
|
-
readonly SSO_CONFIG_DELETE: "sso-config:delete";
|
|
25
|
-
readonly OIDC_CONFIG_MANAGE: "oidc-config:manage";
|
|
26
|
-
readonly OIDC_CONFIG_DELETE: "oidc-config:delete";
|
|
27
|
-
readonly AUTH_METHOD_UPDATE: "auth-method:update";
|
|
28
|
-
};
|
|
29
|
-
export type AuthPermission = (typeof AUTH_PERMISSIONS)[keyof typeof AUTH_PERMISSIONS];
|
|
30
|
-
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/auth/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAqBnB,CAAC;AAEX,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* sessionStorage key constants for auth flows.
|
|
3
|
-
* Centralizing these avoids silent key mismatches across files.
|
|
4
|
-
*/
|
|
5
|
-
export declare const MFA_CHALLENGE_ID = "mfa_challenge_id";
|
|
6
|
-
export declare const MFA_PENDING_TOKEN = "mfa_pending_token";
|
|
7
|
-
export declare const MFA_PENDING_REFRESH = "mfa_pending_refresh";
|
|
8
|
-
export declare const MFA_REDIRECT = "mfa_redirect";
|
|
9
|
-
export declare const OIDC_CODE_VERIFIER = "oidc_code_verifier";
|
|
10
|
-
export declare const OIDC_STATE = "oidc_state";
|
|
11
|
-
export declare const OIDC_NONCE = "oidc_nonce";
|
|
12
|
-
export declare const OIDC_TENANT_ID = "oidc_tenant_id";
|
|
13
|
-
export declare const OIDC_FLOW = "oidc_flow";
|
|
14
|
-
export declare const OIDC_REDIRECT = "oidc_redirect";
|
|
15
|
-
export declare const OIDC_CLIENT_ID = "oidc_client_id";
|
|
16
|
-
export declare const MFA_SESSION_KEYS: readonly ["mfa_challenge_id", "mfa_pending_token", "mfa_pending_refresh", "mfa_redirect"];
|
|
17
|
-
export declare const OIDC_SESSION_KEYS: readonly ["oidc_code_verifier", "oidc_state", "oidc_nonce", "oidc_tenant_id", "oidc_flow", "oidc_redirect"];
|
|
18
|
-
//# sourceMappingURL=sessionKeys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessionKeys.d.ts","sourceRoot":"","sources":["../../../src/auth/constants/sessionKeys.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAG3C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,gBAAgB,2FAKnB,CAAC;AAEX,eAAO,MAAM,iBAAiB,6GAOpB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { useAuthOperations } from './useAuthOperations';
|
|
2
|
-
export { useMfaOperations } from './useMfaOperations';
|
|
3
|
-
export { usePasswordOperations } from './usePasswordOperations';
|
|
4
|
-
export { useSessionOperations } from './useSessionOperations';
|
|
5
|
-
export { useApiKeyOperations } from './useApiKeyOperations';
|
|
6
|
-
export { useAppOperations } from './useAppOperations';
|
|
7
|
-
export { useWorkspaceOperations } from './useWorkspaceOperations';
|
|
8
|
-
export { useMyWorkspaces } from './useMyWorkspaces';
|
|
9
|
-
export { useContextSwitcherData, useWorkspaceSyncEffect, useProjectSyncEffect, } from './useContextSwitcherData';
|
|
10
|
-
export type { UseContextSwitcherDataOptions } from './useContextSwitcherData';
|
|
11
|
-
export { useDelegationOperations } from './useDelegationOperations';
|
|
12
|
-
export { useUserOperations } from './useUserOperations';
|
|
13
|
-
export { useSsoOperations } from './useSsoOperations';
|
|
14
|
-
export { useOAuthOperations } from './useOAuthOperations';
|
|
15
|
-
export { useAccountOperations } from './useAccountOperations';
|
|
16
|
-
export { useAuthPermissions } from './useAuthPermissions';
|
|
17
|
-
export { useAuthStore } from '../store/authStore';
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAG9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AuthResult } from '../types';
|
|
2
|
-
|
|
3
|
-
export interface AccountActionResult {
|
|
4
|
-
success: boolean;
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Hook for account management operations (deactivate, delete, reactivate)
|
|
9
|
-
*/
|
|
10
|
-
export declare function useAccountOperations(): {
|
|
11
|
-
deactivateAccount: (password: string) => Promise<AccountActionResult>;
|
|
12
|
-
deleteAccount: (password: string, confirmPhrase: string) => Promise<AccountActionResult>;
|
|
13
|
-
reactivateAccount: (email: string, password: string) => Promise<AuthResult>;
|
|
14
|
-
isDeactivating: boolean;
|
|
15
|
-
isDeleting: boolean;
|
|
16
|
-
isReactivating: boolean;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=useAccountOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useAccountOperations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAqC3C,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD;;GAEG;AACH,wBAAgB,oBAAoB;kCAqBtB,MAAM,KACf,OAAO,CAAC,mBAAmB,CAAC;8BAyBnB,MAAM,iBACD,MAAM,KACpB,OAAO,CAAC,mBAAmB,CAAC;+BA8BtB,MAAM,YACH,MAAM,KACf,OAAO,CAAC,UAAU,CAAC;;;;;EAuCvB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { GenerateAPIKeyInput, APIKeyResult, APIKeyRotateResult, AuthResult, ApiKey } from '../types';
|
|
2
|
-
|
|
3
|
-
interface MyApiKeysResponse {
|
|
4
|
-
myApiKeys: {
|
|
5
|
-
apiKeys: ApiKey[];
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
totalCount: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Hook for API key operations
|
|
12
|
-
*/
|
|
13
|
-
export declare function useApiKeyOperations(): {
|
|
14
|
-
generateAPIKey: (input: GenerateAPIKeyInput) => Promise<APIKeyResult>;
|
|
15
|
-
revokeAPIKey: (keyId: string) => Promise<boolean>;
|
|
16
|
-
rotateAPIKey: (keyId: string) => Promise<APIKeyRotateResult>;
|
|
17
|
-
authenticateAPIKey: (apiKey: string, apiSecret: string) => Promise<AuthResult>;
|
|
18
|
-
refetchApiKeys: () => Promise<void> | import("@apollo/client").ObservableQuery.ResultPromise<import("@apollo/client").ApolloClient.QueryResult<MyApiKeysResponse>>;
|
|
19
|
-
createApiKey: (input: GenerateAPIKeyInput) => Promise<APIKeyResult>;
|
|
20
|
-
revokeApiKey: (keyId: string) => Promise<boolean>;
|
|
21
|
-
apiKeys: ApiKey[];
|
|
22
|
-
isLoading: boolean;
|
|
23
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=useApiKeyOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiKeyOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useApiKeyOperations.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,MAAM,EACP,MAAM,UAAU,CAAC;AAGlB,UAAU,iBAAiB;IACzB,SAAS,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CACxE;AAoBD;;GAEG;AACH,wBAAgB,mBAAmB;4BAwDxB,mBAAmB,KACzB,OAAO,CAAC,YAAY,CAAC;0BAuBW,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;0BAgBzB,MAAM,KAAG,OAAO,CAAC,kBAAkB,CAAC;iCAqB7D,MAAM,aACH,MAAM,KAChB,OAAO,CAAC,UAAU,CAAC;;0BA/Db,mBAAmB,KACzB,OAAO,CAAC,YAAY,CAAC;0BAuBW,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;;;;EA0E7D"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { App, AppCreateResponse, CreateAppInput, UpdateAppInput, AppTokenResponse, AppAsUserTokenResponse } from '../types';
|
|
2
|
-
|
|
3
|
-
interface CurrentUserAppsResponse {
|
|
4
|
-
currentUserApps: {
|
|
5
|
-
apps: App[];
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
totalCount: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Hook for app management operations
|
|
12
|
-
*/
|
|
13
|
-
export declare function useAppOperations(): {
|
|
14
|
-
getApp: (id: string) => Promise<App | null>;
|
|
15
|
-
refetchApps: () => Promise<void> | import("@apollo/client").ObservableQuery.ResultPromise<import("@apollo/client").ApolloClient.QueryResult<CurrentUserAppsResponse>>;
|
|
16
|
-
createApp: (input: CreateAppInput) => Promise<AppCreateResponse>;
|
|
17
|
-
updateApp: (id: string, input: UpdateAppInput) => Promise<App>;
|
|
18
|
-
deactivateApp: (id: string) => Promise<boolean>;
|
|
19
|
-
rotateAppSecret: (id: string) => Promise<AppCreateResponse>;
|
|
20
|
-
authenticateApp: (clientId: string, clientSecret: string, scopes?: string[]) => Promise<AppTokenResponse>;
|
|
21
|
-
generateAppToken: (clientId: string, clientSecret: string, scopes?: string[]) => Promise<AppTokenResponse>;
|
|
22
|
-
generateAppAsUserToken: (targetUserId: string, scopes?: string[]) => Promise<AppAsUserTokenResponse>;
|
|
23
|
-
exchangeToken: (appId: string, userId: string, scopes?: string[]) => Promise<AppAsUserTokenResponse>;
|
|
24
|
-
apps: App[];
|
|
25
|
-
currentApp: App | null;
|
|
26
|
-
isLoading: boolean;
|
|
27
|
-
error: import('@apollo/client').ErrorLike | undefined;
|
|
28
|
-
};
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=useAppOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAppOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useAppOperations.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,GAAG,EACH,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAMlB,UAAU,uBAAuB;IAC/B,eAAe,EAAE;QAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CACxE;AAoCD;;GAEG;AACH,wBAAgB,gBAAgB;iBA4EJ,MAAM,KAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC;;uBAU7C,cAAc,KACpB,OAAO,CAAC,iBAAiB,CAAC;oBA2BA,MAAM,SAAS,cAAc,KAAG,OAAO,CAAC,GAAG,CAAC;wBA2BxC,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;0BAuBvB,MAAM,KAAG,OAAO,CAAC,iBAAiB,CAAC;gCAwB1D,MAAM,gBACF,MAAM,WACX,MAAM,EAAE,KAChB,OAAO,CAAC,gBAAgB,CAAC;iCAwBhB,MAAM,gBACF,MAAM,WACX,MAAM,EAAE,KAChB,OAAO,CAAC,gBAAgB,CAAC;2CAwBZ,MAAM,WACX,MAAM,EAAE,KAChB,OAAO,CAAC,sBAAsB,CAAC;2BAwBzB,MAAM,UACL,MAAM,WACL,MAAM,EAAE,KAChB,OAAO,CAAC,sBAAsB,CAAC;;;;;EAuCnC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { SignInInput, SignUpInput, User, AuthPayload, AuthResult } from '../types';
|
|
2
|
-
|
|
3
|
-
interface CurrentUserResponse {
|
|
4
|
-
currentUser: User | null;
|
|
5
|
-
}
|
|
6
|
-
interface UseAuthOperationsOptions {
|
|
7
|
-
disableCurrentUserQuery?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook for authentication operations
|
|
11
|
-
* Uses Zustand v5 pattern: selectors for state, getState() for actions
|
|
12
|
-
*/
|
|
13
|
-
export declare function useAuthOperations(options?: UseAuthOperationsOptions): {
|
|
14
|
-
signIn: (input: SignInInput) => Promise<AuthResult>;
|
|
15
|
-
signUp: (input: SignUpInput) => Promise<AuthPayload | {
|
|
16
|
-
requiresEmailVerification: boolean;
|
|
17
|
-
user: User | null;
|
|
18
|
-
accessToken: string | null;
|
|
19
|
-
refreshToken: string | null;
|
|
20
|
-
expiresIn: number | null;
|
|
21
|
-
requiresMFA?: boolean;
|
|
22
|
-
mfaChallengeId?: string;
|
|
23
|
-
mfaMethod?: import('..').MFAMethod;
|
|
24
|
-
}>;
|
|
25
|
-
signOut: () => Promise<void>;
|
|
26
|
-
refreshToken: () => Promise<AuthPayload>;
|
|
27
|
-
verifyEmail: (token: string) => Promise<{
|
|
28
|
-
success: boolean;
|
|
29
|
-
message: string;
|
|
30
|
-
email?: string;
|
|
31
|
-
}>;
|
|
32
|
-
resendVerification: (email: string) => Promise<{
|
|
33
|
-
success: boolean;
|
|
34
|
-
message: string;
|
|
35
|
-
}>;
|
|
36
|
-
refetchCurrentUser: (variables?: Partial<import('@apollo/client').OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<CurrentUserResponse>>;
|
|
37
|
-
login: (input: SignInInput) => Promise<AuthResult>;
|
|
38
|
-
register: (input: SignUpInput) => Promise<AuthPayload | {
|
|
39
|
-
requiresEmailVerification: boolean;
|
|
40
|
-
user: User | null;
|
|
41
|
-
accessToken: string | null;
|
|
42
|
-
refreshToken: string | null;
|
|
43
|
-
expiresIn: number | null;
|
|
44
|
-
requiresMFA?: boolean;
|
|
45
|
-
mfaChallengeId?: string;
|
|
46
|
-
mfaMethod?: import('..').MFAMethod;
|
|
47
|
-
}>;
|
|
48
|
-
logout: () => Promise<void>;
|
|
49
|
-
isLoading: boolean;
|
|
50
|
-
error: string | null;
|
|
51
|
-
errorCode: string | null;
|
|
52
|
-
isAuthenticated: boolean;
|
|
53
|
-
user: User | null;
|
|
54
|
-
accessToken: string | null;
|
|
55
|
-
};
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=useAuthOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuthOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useAuthOperations.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,IAAI,EACJ,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AA6IlB,UAAU,mBAAmB;IAC3B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;CAC1B;AAED,UAAU,wBAAwB;IAChC,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AA4BD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;oBAyCzC,WAAW,KAAG,OAAO,CAAC,UAAU,CAAC;oBAkJjC,WAAW;;;;;;;;;;;;yBAsP/B,MAAM,KACZ,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;gCAyBxB,MAAM;iBA5dpC,OAAO;iBACP,MAAM;;;mBAyDY,WAAW,KAAG,OAAO,CAAC,UAAU,CAAC;sBAkJjC,WAAW;;;;;;;;;;;;;;;;;EAsTzC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for auth admin RBAC permissions.
|
|
3
|
-
*
|
|
4
|
-
* Only covers admin-facing operations. Public auth flows and self-service
|
|
5
|
-
* operations don't need RBAC checks — they're either @rbac(public: true)
|
|
6
|
-
* or scoped to the current user's own data.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useAuthPermissions(): {
|
|
9
|
-
canViewUsers: boolean;
|
|
10
|
-
canUpdateUsers: boolean;
|
|
11
|
-
canDeleteUsers: boolean;
|
|
12
|
-
canViewApps: boolean;
|
|
13
|
-
canCreateApps: boolean;
|
|
14
|
-
canUpdateApps: boolean;
|
|
15
|
-
canManageSsoConfig: boolean;
|
|
16
|
-
canManageOidcConfig: boolean;
|
|
17
|
-
canManageAuthMethods: boolean;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=useAuthPermissions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuthPermissions.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useAuthPermissions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;EAuBjC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for reCAPTCHA v3 invisible verification.
|
|
3
|
-
* Returns a no-op when VITE_CAPTCHA_ENABLED is not "true".
|
|
4
|
-
*
|
|
5
|
-
* When enabled, dynamically imports `react-google-recaptcha-v3` and uses
|
|
6
|
-
* the `useGoogleReCaptcha` hook from the `GoogleReCaptchaProvider` context.
|
|
7
|
-
* The provider must be mounted above this hook in the component tree
|
|
8
|
-
* (handled by CaptchaProvider in AuthRoot).
|
|
9
|
-
*/
|
|
10
|
-
export declare function useCaptchaV3(): {
|
|
11
|
-
executeRecaptcha: (action: string) => Promise<string | undefined>;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useCaptchaV3.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCaptchaV3.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useCaptchaV3.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,YAAY;+BAaT,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;EA8BtD"}
|