@burdenoff/microfe-auth 2026.523.1 → 2026.525.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/dist/auth/hooks/useOAuthOperations.js +35 -18
- package/dist/auth/hooks/useOAuthOperations.js.map +1 -1
- package/dist/auth/pages/LoginPage.js +177 -156
- package/dist/auth/pages/LoginPage.js.map +1 -1
- 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
|
@@ -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"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Organization, Workspace, Project } from '../types';
|
|
2
|
-
|
|
3
|
-
export interface UseContextSwitcherDataOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Optional Global API Gateway base URL override.
|
|
6
|
-
* If not provided, uses GATEWAYS config from fe-libs.
|
|
7
|
-
*/
|
|
8
|
-
globalBaseUrl?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Optional Workspaces API Gateway base URL override.
|
|
11
|
-
* If not provided, uses GATEWAYS config from fe-libs.
|
|
12
|
-
*/
|
|
13
|
-
workspaceBaseUrl?: string;
|
|
14
|
-
/** Disable initial organization/workspace bootstrap fetches */
|
|
15
|
-
disableBootstrap?: boolean;
|
|
16
|
-
/** Disable the workspace sync effect */
|
|
17
|
-
disableWorkspaceSync?: boolean;
|
|
18
|
-
/** Disable the project sync effect */
|
|
19
|
-
disableProjectSync?: boolean;
|
|
20
|
-
/** Only hydrate the workspace token; do not eagerly fetch projects */
|
|
21
|
-
skipProjectFetch?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Hook for managing the context switcher data (organizations, workspaces, projects)
|
|
25
|
-
*
|
|
26
|
-
* Data flow:
|
|
27
|
-
* 1. fetchOrganizations() - Get all orgs user has access to (Global Gateway)
|
|
28
|
-
* 2. selectOrganization(org) - Set current org & fetch workspaces for that org
|
|
29
|
-
* 3. selectWorkspace(ws) - Issue workspace token & fetch projects
|
|
30
|
-
* 4. selectProject(proj) - Set current project
|
|
31
|
-
*
|
|
32
|
-
* All GraphQL calls go through graphqlFetch from fe-libs which automatically
|
|
33
|
-
* resolves gateway URLs and injects auth + locale headers.
|
|
34
|
-
*
|
|
35
|
-
* @param options - Optional configuration (gateway base URL overrides)
|
|
36
|
-
*/
|
|
37
|
-
export declare function useContextSwitcherData(options?: UseContextSwitcherDataOptions): {
|
|
38
|
-
organizations: Organization[];
|
|
39
|
-
workspaces: Workspace[];
|
|
40
|
-
projects: Project[];
|
|
41
|
-
currentOrganizationId: string | null;
|
|
42
|
-
currentWorkspaceId: string | null;
|
|
43
|
-
currentProjectId: string | null;
|
|
44
|
-
currentOrganization: Organization | undefined;
|
|
45
|
-
currentWorkspace: Workspace | undefined;
|
|
46
|
-
currentProject: Project | undefined;
|
|
47
|
-
workspaceToken: string | null;
|
|
48
|
-
isLoadingOrganizations: boolean;
|
|
49
|
-
isLoadingWorkspaces: boolean;
|
|
50
|
-
isLoadingProjects: boolean;
|
|
51
|
-
isLoading: boolean;
|
|
52
|
-
error: string | null;
|
|
53
|
-
fetchOrganizations: () => Promise<Organization[]>;
|
|
54
|
-
fetchWorkspacesForOrg: (organizationId: string) => Promise<Workspace[]>;
|
|
55
|
-
issueWorkspaceToken: (organizationId: string, workspaceId?: string) => Promise<{
|
|
56
|
-
success: boolean;
|
|
57
|
-
token?: string;
|
|
58
|
-
resolvedWorkspaceId?: string;
|
|
59
|
-
error?: string;
|
|
60
|
-
}>;
|
|
61
|
-
fetchProjects: () => Promise<Project[]>;
|
|
62
|
-
selectOrganization: (org: Organization) => Promise<Workspace[]>;
|
|
63
|
-
selectWorkspace: (workspace: Workspace) => Promise<{
|
|
64
|
-
success: boolean;
|
|
65
|
-
projects?: Project[];
|
|
66
|
-
error?: string;
|
|
67
|
-
}>;
|
|
68
|
-
selectProject: (project: Project) => void;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Hook to reactively ensure workspaces are synced with the current organization.
|
|
72
|
-
*
|
|
73
|
-
* This handles edge cases where the organization changes but workspaces
|
|
74
|
-
* from a different org are still in the store (e.g., stale data, race conditions).
|
|
75
|
-
*
|
|
76
|
-
* Usage:
|
|
77
|
-
* ```tsx
|
|
78
|
-
* import { useWorkspaceSyncEffect } from '@burdenoff/microfe-auth';
|
|
79
|
-
*
|
|
80
|
-
* function MyComponent() {
|
|
81
|
-
* useWorkspaceSyncEffect(); // Ensures workspaces stay in sync
|
|
82
|
-
* // ...
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
export declare function useWorkspaceSyncEffect(options?: UseContextSwitcherDataOptions): void;
|
|
87
|
-
/**
|
|
88
|
-
* Hook to reactively ensure projects are loaded when a workspace is selected.
|
|
89
|
-
*
|
|
90
|
-
* This handles the case where a workspace is auto-selected (from URL/localStorage)
|
|
91
|
-
* but projects haven't been fetched yet. It will:
|
|
92
|
-
* 1. Issue a workspace token if not present
|
|
93
|
-
* 2. Fetch projects for the selected workspace
|
|
94
|
-
*
|
|
95
|
-
* Usage:
|
|
96
|
-
* ```tsx
|
|
97
|
-
* import { useProjectSyncEffect } from '@burdenoff/microfe-auth';
|
|
98
|
-
*
|
|
99
|
-
* function MyComponent() {
|
|
100
|
-
* useProjectSyncEffect(); // Ensures projects are loaded for selected workspace
|
|
101
|
-
* // ...
|
|
102
|
-
* }
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
export declare function useProjectSyncEffect(options?: UseContextSwitcherDataOptions): void;
|
|
106
|
-
//# sourceMappingURL=useContextSwitcherData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useContextSwitcherData.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useContextSwitcherData.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAOjE,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wCAAwC;IACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAiWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,6BAA6B;;;;;;;;;;;;;;;;8BA4IU,OAAO,CAAC,YAAY,EAAE,CAAC;4CAmT/C,MAAM,KAAG,OAAO,CAAC,SAAS,EAAE,CAAC;0CAoElC,MAAM,gBACR,MAAM,KACnB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;yBAuEwC,OAAO,CAAC,OAAO,EAAE,CAAC;8BA8DhD,YAAY,KAAG,OAAO,CAAC,SAAS,EAAE,CAAC;iCAiBlC,SAAS,KACnB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;6BAiDwC,OAAO,KAAG,IAAI;EAqD3D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,6BAA6B,QA4DxC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,6BAA6B,QAoR3E"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AppUserDelegation, GrantDelegationInput } from '../types';
|
|
2
|
-
|
|
3
|
-
interface CurrentUserDelegationsResponse {
|
|
4
|
-
currentUserDelegations: {
|
|
5
|
-
delegations: AppUserDelegation[];
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
totalCount: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
interface CurrentUserGrantedDelegationsResponse {
|
|
11
|
-
currentUserGrantedDelegations: {
|
|
12
|
-
delegations: AppUserDelegation[];
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
totalCount: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Hook for app-user delegation operations
|
|
19
|
-
*/
|
|
20
|
-
export declare function useDelegationOperations(): {
|
|
21
|
-
grantDelegation: (input: GrantDelegationInput) => Promise<AppUserDelegation>;
|
|
22
|
-
revokeDelegation: (id: string, reason?: string) => Promise<boolean>;
|
|
23
|
-
getDelegationsForApp: (appId: string) => AppUserDelegation[];
|
|
24
|
-
hasWorkspaceDelegation: (appId: string, workspaceId: string) => boolean;
|
|
25
|
-
refetchDelegations: (variables?: Partial<import('@apollo/client').OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<CurrentUserDelegationsResponse>>;
|
|
26
|
-
refetchGrantedDelegations: (variables?: Partial<import('@apollo/client').OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<CurrentUserGrantedDelegationsResponse>>;
|
|
27
|
-
delegations: AppUserDelegation[];
|
|
28
|
-
grantedDelegations: AppUserDelegation[];
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
error: string | null;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=useDelegationOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDelegationOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useDelegationOperations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAYxE,UAAU,8BAA8B;IACtC,sBAAsB,EAAE;QACtB,WAAW,EAAE,iBAAiB,EAAE,CAAC;QACjC,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,UAAU,qCAAqC;IAC7C,6BAA6B,EAAE;QAC7B,WAAW,EAAE,iBAAiB,EAAE,CAAC;QACjC,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAuBD;;GAEG;AACH,wBAAgB,uBAAuB;6BAsF5B,oBAAoB,KAC1B,OAAO,CAAC,iBAAiB,CAAC;2BA0BvB,MAAM,WACD,MAAM,KACd,OAAO,CAAC,OAAO,CAAC;kCAsBkB,MAAM,KAAG,iBAAiB,EAAE;oCAUxD,MAAM,eACA,MAAM,KAClB,OAAO;;;;;;;EAgCX"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MFAMethod, MFASetupResult, MFAVerifyInput, AuthResult } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Hook for MFA operations
|
|
5
|
-
*/
|
|
6
|
-
export declare function useMfaOperations(): {
|
|
7
|
-
setupMFA: (method: MFAMethod) => Promise<MFASetupResult>;
|
|
8
|
-
enableMFA: (code: string) => Promise<boolean>;
|
|
9
|
-
verifyMFA: (input: MFAVerifyInput) => Promise<AuthResult>;
|
|
10
|
-
disableMFA: () => Promise<boolean>;
|
|
11
|
-
enableMfa: (code: string) => Promise<boolean>;
|
|
12
|
-
verifyMfa: (input: MFAVerifyInput) => Promise<AuthResult>;
|
|
13
|
-
disableMfa: () => Promise<boolean>;
|
|
14
|
-
mfaRequired: boolean;
|
|
15
|
-
mfaChallengeId: string | null;
|
|
16
|
-
isLoading: boolean;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=useMfaOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMfaOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useMfaOperations.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EAEX,MAAM,UAAU,CAAC;AA2DlB;;GAEG;AACH,wBAAgB,gBAAgB;uBAqBE,SAAS,KAAG,OAAO,CAAC,cAAc,CAAC;sBAsBpC,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;uBA0BxB,cAAc,KAAG,OAAO,CAAC,UAAU,CAAC;sBAgEvC,OAAO,CAAC,OAAO,CAAC;sBA1Fd,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;uBA0BxB,cAAc,KAAG,OAAO,CAAC,UAAU,CAAC;sBAgEvC,OAAO,CAAC,OAAO,CAAC;;;;EAwC9C"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Workspace } from '../types';
|
|
2
|
-
|
|
3
|
-
interface MyWorkspacesResponse {
|
|
4
|
-
myWorkspaces: {
|
|
5
|
-
total: number;
|
|
6
|
-
items: Workspace[];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook for fetching user's workspaces and issuing workspace tokens
|
|
11
|
-
*
|
|
12
|
-
* This hook provides:
|
|
13
|
-
* - Fetch workspaces: Query to get all workspaces the user has access to
|
|
14
|
-
* - Issue workspace token: Get a workspace-scoped token for API access
|
|
15
|
-
* - Complete auth flow: Fetch workspaces + auto-select + issue token
|
|
16
|
-
*
|
|
17
|
-
* Uses the shell's Apollo client (via GatewayRoute) for useQuery, and
|
|
18
|
-
* graphqlFetch from fe-libs for imperative calls that need explicit tokens.
|
|
19
|
-
*/
|
|
20
|
-
export declare function useMyWorkspaces(): {
|
|
21
|
-
workspaces: Workspace[];
|
|
22
|
-
totalWorkspaces: number;
|
|
23
|
-
currentWorkspaceId: string | null;
|
|
24
|
-
workspaceToken: string | null;
|
|
25
|
-
isLoading: boolean;
|
|
26
|
-
error: string | null;
|
|
27
|
-
fetchWorkspaces: (accessToken?: string) => Promise<Workspace[]>;
|
|
28
|
-
issueWorkspaceToken: (workspaceId: string, organizationId: string, accessToken?: string) => Promise<{
|
|
29
|
-
success: boolean;
|
|
30
|
-
token?: string;
|
|
31
|
-
error?: string;
|
|
32
|
-
}>;
|
|
33
|
-
selectWorkspace: (workspace: Workspace) => Promise<{
|
|
34
|
-
success: boolean;
|
|
35
|
-
error?: string;
|
|
36
|
-
}>;
|
|
37
|
-
completeAuthFlow: (accessToken?: string) => Promise<{
|
|
38
|
-
success: boolean;
|
|
39
|
-
workspace?: Workspace;
|
|
40
|
-
error?: string;
|
|
41
|
-
}>;
|
|
42
|
-
refetch: (variables?: Partial<import('@apollo/client').OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<MyWorkspacesResponse>>;
|
|
43
|
-
};
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=useMyWorkspaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMyWorkspaces.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useMyWorkspaces.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAM1C,UAAU,oBAAoB;IAC5B,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,SAAS,EAAE,CAAC;KACpB,CAAC;CACH;AAoDD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe;;;;;;;oCAoEN,MAAM,KAAG,OAAO,CAAC,SAAS,EAAE,CAAC;uCA8CnC,MAAM,kBACH,MAAM,gBACR,MAAM,KACnB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;iCAkEnD,SAAS,KACnB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;qCAchC,MAAM,KACnB,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;;EAoGL"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AuthResult } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Supported OAuth providers
|
|
5
|
-
*/
|
|
6
|
-
export type OAuthProvider = "google" | "github" | "microsoft";
|
|
7
|
-
/**
|
|
8
|
-
* Hook for OAuth authentication operations
|
|
9
|
-
*/
|
|
10
|
-
export declare function useOAuthOperations(): {
|
|
11
|
-
initiateOAuth: (provider: OAuthProvider) => void;
|
|
12
|
-
completeOAuth: (code: string, state: string) => Promise<AuthResult>;
|
|
13
|
-
initiateGoogleOAuth: () => void;
|
|
14
|
-
initiateGitHubOAuth: () => void;
|
|
15
|
-
initiateMicrosoftOAuth: () => void;
|
|
16
|
-
isProviderConfigured: (provider: OAuthProvider) => boolean;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=useOAuthOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOAuthOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useOAuthOperations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,UAAU,CAAC;AAgBvD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAyC9D;;GAEG;AACH,wBAAgB,kBAAkB;8BAWC,aAAa;0BAuDtC,MAAM,SACL,MAAM,KACZ,OAAO,CAAC,UAAU,CAAC;;;;qCAmGkB,aAAa,KAAG,OAAO;;EAoBhE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChangePasswordInput, PasswordResetRequestResult } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Hook for password management operations
|
|
5
|
-
* Uses Zustand v5 pattern: selectors for state, getState() for actions
|
|
6
|
-
*/
|
|
7
|
-
export declare function usePasswordOperations(): {
|
|
8
|
-
changePassword: (input: ChangePasswordInput) => Promise<boolean>;
|
|
9
|
-
requestPasswordReset: (email: string, recaptchaToken?: string) => Promise<PasswordResetRequestResult>;
|
|
10
|
-
resetPassword: (token: string, newPassword: string) => Promise<boolean>;
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=usePasswordOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePasswordOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/usePasswordOperations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAoChF;;;GAGG;AACH,wBAAgB,qBAAqB;4BAqB1B,mBAAmB,KACzB,OAAO,CAAC,OAAO,CAAC;kCAsBV,MAAM,mBACI,MAAM,KACtB,OAAO,CAAC,0BAA0B,CAAC;2BAsB7B,MAAM,eACA,MAAM,KAClB,OAAO,CAAC,OAAO,CAAC;;EA2DpB"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ActiveSessionsQuery } from '../../generated/global-operations';
|
|
2
|
-
import { TokenValidationResponse, ValidateTokensInput } from '../types';
|
|
3
|
-
|
|
4
|
-
interface TokenInfoQueryResponse {
|
|
5
|
-
tokenInfo: TokenValidationResponse;
|
|
6
|
-
}
|
|
7
|
-
interface UseSessionOperationsOptions {
|
|
8
|
-
disableTokenInfoQuery?: boolean;
|
|
9
|
-
/** Number of sessions to load per page (default: 10) */
|
|
10
|
-
pageSize?: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Hook for session/token management operations
|
|
14
|
-
*/
|
|
15
|
-
export declare function useSessionOperations(options?: UseSessionOperationsOptions): {
|
|
16
|
-
validateTokens: (input: ValidateTokensInput) => Promise<TokenValidationResponse>;
|
|
17
|
-
isTokenExpired: () => boolean;
|
|
18
|
-
getTokenRemainingTime: () => number;
|
|
19
|
-
tokenInfo: TokenValidationResponse | undefined;
|
|
20
|
-
revokeSession: (sessionId: string) => Promise<boolean>;
|
|
21
|
-
revokeAllSessions: () => Promise<{
|
|
22
|
-
success: boolean;
|
|
23
|
-
revokedCount: number;
|
|
24
|
-
}>;
|
|
25
|
-
activeSessions: {
|
|
26
|
-
__typename?: "Session";
|
|
27
|
-
id: string;
|
|
28
|
-
status: import('../../generated/global-types').SessionStatus;
|
|
29
|
-
ipAddress?: string | null;
|
|
30
|
-
userAgent?: string | null;
|
|
31
|
-
location?: string | null;
|
|
32
|
-
lastActivityAt: string;
|
|
33
|
-
expiresAt: string;
|
|
34
|
-
createdAt: string;
|
|
35
|
-
isCurrent: boolean;
|
|
36
|
-
}[];
|
|
37
|
-
sessionsLoading: boolean;
|
|
38
|
-
refetchSessions: (variables?: Partial<import('../../generated/global-types').Exact<{
|
|
39
|
-
pagination?: import('../../generated/global-types').InputMaybe<import('../../generated/global-types').PaginationInput>;
|
|
40
|
-
}>> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<ActiveSessionsQuery>>;
|
|
41
|
-
page: number;
|
|
42
|
-
pageSize: number;
|
|
43
|
-
totalCount: number;
|
|
44
|
-
totalPages: number;
|
|
45
|
-
hasMore: boolean;
|
|
46
|
-
goToNextPage: () => void;
|
|
47
|
-
goToPrevPage: () => void;
|
|
48
|
-
isLoading: boolean;
|
|
49
|
-
refetch: (variables?: Partial<import('@apollo/client').OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloClient.QueryResult<TokenInfoQueryResponse>>;
|
|
50
|
-
};
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=useSessionOperations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSessionOperations.d.ts","sourceRoot":"","sources":["../../../src/auth/hooks/useSessionOperations.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,mBAAmB,EAMpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAM7E,UAAU,sBAAsB;IAC9B,SAAS,EAAE,uBAAuB,CAAC;CACpC;AAUD,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,2BAAgC;4BAsEhC,mBAAmB,KACzB,OAAO,CAAC,uBAAuB,CAAC;0BAaR,OAAO;iCAQA,MAAM;;+BASA,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;6BAmB7B,OAAO,CAAC;QAC1C,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDH"}
|